tez不起作用

c8ib6hqw  于 2021-05-27  发布在  Hadoop
关注(0)|答案(1)|浏览(917)

我通过ambari2.6.1安装了tez0.9.1。tez.tar.gz已成功复制到hdfs。但是,当服务检查-我得到错误。潜入原木 yarn logs -applicationId APP_ID 我发现 Error: Could not find or load main class org.apache.tez.dag.app.DAGAppMaster . 虽然dag jar在tar.gz中。tiz.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值-什么都不起作用。
谢谢你的帮助!提前谢谢

bfrts1fy

bfrts1fy1#

找到了解决办法。需要使用以下内容扩展yarn-site.xml中的yarn.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/*

相关问题