Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hadoop TEZ没有';如果tez.lib.uris==tez.tar.gz,则无法工作_Hadoop_Hdfs_Yarn_Ambari_Apache Tez - Fatal编程技术网

Hadoop TEZ没有';如果tez.lib.uris==tez.tar.gz,则无法工作

Hadoop TEZ没有';如果tez.lib.uris==tez.tar.gz,则无法工作,hadoop,hdfs,yarn,ambari,apache-tez,Hadoop,Hdfs,Yarn,Ambari,Apache Tez,我通过Ambari 2.6.1安装了Tez 0.9.1。tez.tar.gz已成功复制到hdfs。但是当服务检查时,我得到了错误。通过纱线日志-applicationId APP\u ID潜入日志中,我发现错误:无法找到或加载主类org.apache.tez.dag.APP.DAGAppMaster。虽然DAG罐子在tar.gz中。tez.lib.uris=${fs.default.name}/hdp/apps/${hdp.version}/tez/tez.tar.gz。如果我将其解压为hdfs

我通过Ambari 2.6.1安装了Tez 0.9.1。tez.tar.gz已成功复制到hdfs。但是当服务检查时,我得到了错误。通过
纱线日志-applicationId APP\u ID潜入日志中,我发现
错误:无法找到或加载主类org.apache.tez.dag.APP.DAGAppMaster
。虽然DAG罐子在tar.gz中。tez.lib.uris=${fs.default.name}/hdp/apps/${hdp.version}/tez/tez.tar.gz。如果我将其解压为hdfs并更改:
tez.lib.uris==${fs.default.name}/hdp/apps/${hdp.version}/tez,${fs.default.name}/hdp/apps/${hdp.version}/tez/lib
一切正常,服务检查正常。 尝试:手动copping tar.gz,将chmod 777设置为它,各种tez.lib.uris.classpath值-没有任何效果

谢谢你的帮助! 提前感谢

找到了解决方案。 需要在Thread-site.xml中扩展warn.application.classpath,使用:
/usr/hdp/current/tez-client/*,/usr/hdp/current/tez-client/lib/*
在我的案例中,最终价值是:

{{hadoop_home}}/conf,{{hadoop_home}}/*,{{hadoop_home}}/lib/*,/usr/hdp/current/hadoop-hdfs-client/*,/usr/hdp/current/hadoop-hdfs-client/lib/*,/usr/hdp/current/hadoop-yarn-client/*,/usr/hdp/current/hadoop-yarn-client/lib/*,/usr/hdp/current/ext/hadoop/*,/usr/hdp/current/tez-client/*,/usr/hdp/current/tez-client/lib/*

发生这种情况是因为tar.gz没有被解压缩!但描述中说,
指定单个.tar.gz或.tgz假设使用的是tez libs的压缩版本。当运行容器和tezlibs/时,这将解压缩到tezlibs目录中;tezlibs/lib/被添加到类路径中(在.and.*之后)。
但这不会发生。为什么?