我正在尝试使用PIG脚本读取hive表,但是当我运行一个pig代码来读取hive中的表时,它给了我以下错误:
2014-02-12 15:48:36,143 [main] WARN org.apache.hadoop.hive.conf.HiveConf
-hive-site.xml not found on CLASSPATH 2014-02-12 15:49:10,781 [main] ERROR
org.apache.pig.tools.grunt.Grunt - ERROR 2997: Unable to recreate
exception from backed error: Error: Found class
org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected
(为了便于阅读而忽略添加的换行符和空格)
Hadoop版本 1.1.1
Hive版本 0.9.0
猪版 0.10.0
Pig code
a = LOAD '/user/hive/warehouse/test' USING
org.apache.pig.piggybank.storage.HiveColumnarLoader('name string');
是否由于某些版本不匹配?