本文共 2597 字,大约阅读时间需要 8 分钟。
本文介绍了tez ui的安装配置。在上一篇源代码编译安装tez的时候,已经生成了tez-ui-0.9.0.war文件,具体配置过程如下:
1、Tomcat的配置[hadoop@hdp01 ~]$ wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-9/v9.0.2/bin/apache-tomcat-9.0.2.tar.gz[hadoop@hdp01 u01]$ tar -xzf /home/hadoop/apache-tomcat-9.0.2.tar.gz;mv apache-tomcat-9.0.2 tomcat--编辑bin/catalina.sh,加入下面的内容:[hadoop@hdp01 u01]$ vi tomcat/bin/catalina.shexport CATALINA_BASE=/u01/tomcatexport CATALINA_HOME=/u01/tomcatexport CATALINA_TMPDIR=/u01/tomcat/temp
2、解压war文件
[hadoop@hdp01 ~]$ mkdir /u01/tomcat/webapps/tez-ui[hadoop@hdp01 ~]$ cd /u01/tomcat/webapps/tez-ui[hadoop@hdp01 tez-ui]$ unzip /u01/tez/tez-ui-0.9.0.war--编辑config目录下的configs.env,更改以下内容:[hadoop@hdp01 tez-ui]$ vi config/configs.envtimeline: "http://192.168.120.96:8188",rm: "http://192.168.120.96:8088",
3、配置timelineserver
3.1 编辑yarn-site.xml加入以下内容:yarn.timeline-service.enabled true yarn.timeline-service.hostname hdp01 yarn.timeline-service.http-cross-origin.enabled true yarn.resourcemanager.system-metrics-publisher.enabled true yarn.timeline-service.generic-application-history.enabled true Address for the Timeline server to start the RPC server. yarn.timeline-service.address hdp01:10201 The http address of the Timeline service web application. yarn.timeline-service.webapp.address hdp01:8188 The https address of the Timeline service web application. yarn.timeline-service.webapp.https.address hdp01:2191 yarn.timeline-service.handler-thread-count 24
3.2 编辑tez-site.xml
加入以下内容:tez.history.logging.service.class org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService tez.tez-ui.history-url.base http://hdp01:8080/tez-ui/
3.3 启动timelineserver
[hadoop@hdp01 ~]$ yarn-daemon.sh start timelineserver
4、启动Tomcat服务
[hadoop@hdp01 ~]$ /u01/tomcat/bin/startup.sh &
5、测试访问
通过访问指定主机的8080端口即可访问tez ui界面。转载于:https://blog.51cto.com/candon123/2055102