CDH4+hive报错

 在hive查询时报了这个错误:java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/util/HostUtil

环境是CDH4使用MRv1的hadoop2.0。hive是cloudera定制的hive-0.8.1+61-1.cdh4.0.1

貌似cloudera把yarn的东西加进hive了~~~

解决方法:cp /usr/lib/hadoop-mapreduce/hadoop-mapreduce-client-core.jar /usr/lib/hadoop-0.20-mapreduce/

你可能感兴趣的:(hive,CDH4)