一、在tez-ui的config.js文件里面修改:
(修改为yarn主节点ip)
timelineBaseUrl: 'http://192.168.1.101:8188',
RMWebUrl: 'http://192.168.1.101:8088',
二、配置yarn的timeline服务:修改 文件,添加如下配置并重启 yarn服务。
<!-- conf timeline server -->
(存在,不用修改)
<property>
<name>yarn.timeline-service.enabled</name>
<value>true</value>
</property>
<property>
<name> yarn.resourcemanager.system-metrics-publisher.enabled</name>
<value>true</value>
</property>
添加:
<property>
<name>yarn.timeline-service.hostname</name>
<value>192.168.1.101</value>(yarn主节点ip)
</property>
<property>
<name>yarn.timeline-service.http-cross-origin.enabled</name>
<value>true</value>
</property>
三、修改tez-site.xml文件,并重启tez
修改
<property>
<name>tez.history.logging.service.class</name>
<value>org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService</value>
</property>
添加
<property>
<name>tez.allow.disabled.timeline-domains</name>
<value>true</value>
</property>