Hadoop的Pig脚本错误

时间:2014-11-09 22:07:29

标签: hadoop apache-pig

我的Pig脚本无法运行,因为我收到此错误消息:

ls: cannot access /hadoop/yarn/local/usercache/hue/appcache/application_1415547956892_0004/container_1415547956892_0004_01_000002/hive.tar.gz/hive/lib/slf4j-api-*.jar: No such file or directory
ls: cannot access /hadoop/yarn/local/usercache/hue/appcache/application_1415547956892_0004/container_1415547956892_0004_01_000002/hive.tar.gz/hive/lib/commons-lang3-*.jar: No such file or directory
ls: cannot access /hadoop/yarn/local/usercache/hue/appcache/application_1415547956892_0004/container_1415547956892_0004_01_000002/hive.tar.gz/hive/hcatalog/lib/*hbase-storage-handler-*.jar: No such file or directory
Error: Could not find or load main class hive.metastore.sasl.enabled=false

谁能告诉我究竟要做什么?

任何帮助都会受到赞赏,因为我整天都在处理这个问题。

1 个答案:

答案 0 :(得分:0)

这样做,

1)将这些文件复制到HADOOP图书馆。

sudo cp /usr/lib/hive/lib/hive-common-0.7.0-cdh3u0.jar  /usr/lib/hadoop/lib/
sudo cp /usr/lib/hive/lib/hbase-0.90.1-cdh3u0.jar  /usr/lib/hadoop/lib/ 
sudo cp /usr/lib/hive/lib/hbase-0.90.1-cdh3u0.jar  /usr/lib/hadoop/lib/

2)使用以下方式关闭HBASE和HADOOP

/usr/lib/hadoop/bin/stop-all.sh
/usr/lib/hbase/bin/stop-hbase.sh

3)使用COMMOND重新启动HBASE和HADOOP

 /usr/lib/hadoop/bin/start-all.sh
/usr/lib/hadoop/bin/start-hbase.sh

现在使用Hbase存储处理程序在hive中创建表。

在hive-site.xml中编写此属性

<configuration>
<property>
  <name>hive.metastore.schema.verification</name>
  <value>false</value>
</property>