嗨,我尝试在Apache Zeppelin上运行一个猪脚本,这给了我错误

时间:2018-07-12 06:00:02

标签: java hadoop apache-pig apache-zeppelin

  

org.apache.pig.backend.executionengine.ExecException:错误4010:   在类路径中找不到hadoop配置   在类路径中找到hadoop-site.xml或core-site.xml。如果你   计划使用本地模式,请在命令行中将-x local选项放在   org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.getExecConf(HExecutionEngine.java:157)   在   org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:194)   在   org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:111)   在org.apache.pig.impl.PigContext.connect(PigContext.java:310)处   org.apache.pig.PigServer。(PigServer.java:232)在   org.apache.pig.PigServer。(PigServer.java:220)在   org.apache.pig.PigServer。(PigServer.java:193)在   org.apache.pig.PigServer。(PigServer.java:185)在   org.apache.zeppelin.pig.PigInterpreter.open(PigInterpreter.java:61)在   org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)   在   org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer $ InterpretJob.jobRun(RemoteInterpreterServer.java:617)   在org.apache.zeppelin.scheduler.Job.run(Job.java:188)处   org.apache.zeppelin.scheduler.FIFOScheduler $ 1.run(FIFOScheduler.java:140)   在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)   在java.util.concurrent.FutureTask.run(FutureTask.java:266)在   java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:180)   在   java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)   在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)   在   java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)   在java.lang.Thread.run(Thread.java:748)

我已经检查了所有配置和设置,但无法解决。

1 个答案:

答案 0 :(得分:0)

请在此处检查文档。 https://zeppelin.apache.org/docs/0.8.0/interpreter/pig.html 您很可能将执行模式设置为mapreduce,但未配置HADOOP_CONF_DIR