【问题标题】:Unable to run Pig latin script on Apache Tez无法在 Apache Tez 上运行 Pig latin 脚本
【发布时间】:2015-11-10 01:41:54
【问题描述】:

我有一台伪分布式单集群 Ubuntu 机器。我编写了一个简单的猪拉丁脚本,在使用 mapreduce 作为执行模式时运行良好。但是当我使用 tez 作为执行模式使用 -x 开关时,我得到了以下错误

2015-08-17 17:12:22,344 [PigTezLauncher-0] 错误 org.apache.pig.backend.hadoop.executionengine.tez.TezJob - 不能 提交 DAG org.apache.tez.dag.api.SessionNotRunning: TezSession 有 已经关闭 org.apache.tez.client.TezClient.waitTillReady(TezClient.java:603) 在 org.apache.pig.backend.hadoop.executionengine.tez.TezSessionManager.createSession(TezSessionManager.java:100) 在 org.apache.pig.backend.hadoop.executionengine.tez.TezSessionManager.getClient(TezSessionManager.java:195) 在 org.apache.pig.backend.hadoop.executionengine.tez.TezJob.run(TezJob.java:159) 在 org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher$1.run(TezLauncher.java:167) 在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 在 java.util.concurrent.FutureTask.run(FutureTask.java:262) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread.run(Thread.java:745)

我想知道这个异常的含义以及如何解决这个问题。

已解决: 问题在于 pig 和 tez 的版本。用 pig 0.14 安装了 tez 0.5,它工作了。

【问题讨论】:

    标签: hadoop apache-pig apache-tez


    【解决方案1】:

    你使用了哪个命令

     pig -x local <file name> or pig -x local -x tez <file name>
    

    【讨论】:

    • 感谢您的回复。问题出在 tez 和 pig 的版本上。
    猜你喜欢
    • 2018-12-20
    • 1970-01-01
    • 2014-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多