1.修改Hadoop目录下/conf/hadoop-env.sh时,添加HADOOP_CLASSPATH变量覆盖了原有的变量,改成如下的形式即可:
Hadoop_CLASSPATH=$HADOOP_CLASSPATH:hadoop的路径
2.把hive/lib下所有的hive-*文件拷贝到hadoop的lib下也可以解决
相关文章
- Andriod测试错误 Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter 解决
- Exception in thread "main" java.lang.NoClassDefFoundError错误总结
- Exception in thread "main" java.lang.NoClassDefFoundError错误解决
- 基于Web的Kafka管理器工具之Kafka-manager启动时出现Exception in thread "main" java.lang.UnsupportedClassVersionError错误解决办法(图文详解)
- Hive启动报错:Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.io.
- jar运行时出现错误:Exception in thread "main" java.lang.NoClassDefFoundError
- "Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPLoggerFactory"错误解决方
- "Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPLoggerFactory"错误解决方法
- hive启动时报Exception in thread "main" java.lang.NoClassDefFoundError错误
- hive启动时报Exception in thread "main" java.lang.NoClassDefFoundError错误