tez 整合timeline server

第一步 修改tez-site.xml配置文件

要求是tez 0.6.0 版本以上

tez-site.xml

<property>
  <description>Enable Tez to use the Timeline Server for History Logging</description>
  <name>tez.history.logging.service.class</name>
  <value>org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService</value>
</property>

<property>
  <description>URL for where the Tez UI is hosted</description>
  <name>tez.tez-ui.history-url.base</name>
  <value>http://<webserver-host:9999/tez-ui/</value>
</property>
第二步 下载war包 

下载tez-ui.war ,若是你不想编译的话 直接通过这个地址下载已经编译好的包

http://pan.baidu.com/s/1kVwhaN9

把tez-ui.war 方到tomcat 下面 ,若是你的rm和timeline server 部署在其他机器的话。需要修改


webapps/tez-ui/scripts # grep 8188 *

configs.js:     * By default TEZ UI looks for timeline server at http://localhost:8188, uncomment and change

configs.js:    // timelineBaseUrl: 'http://localhost:8188',

main.js:  return constructDefaultUrl(window.location, 8188);

# grep 8088 *

configs.js:     * By default RM web interface is expected to be at http://localhost:8088, uncomment and change

configs.js:    // RMWebUrl: 'http://localhost:8088',

main.js:  return constructDefaultUrl(window.location, 8088);

把localhost 改成相应的地址 。

重启tomcat 就可以

第三步 修改timeline server 配置

要求hadoop 版本是2.6.0以上

yarn-site.xml

<property>
  <description>Indicate to clients whether Timeline service is enabled or not.
  If enabled, the TimelineClient library used by end-users will post entities
  and events to the Timeline server.</description>
  <name>yarn.timeline-service.enabled</name>
  <value>true</value>
</property>

<property>
  <description>The hostname of the Timeline service web application.</description>
  <name>yarn.timeline-service.hostname</name>
  <value>localhost</value>
</property>

<property>
  <description>Enables cross-origin support (CORS) for web services where
  cross-origin web response headers are needed. For example, javascript making
  a web services request to the timeline server.</description>
  <name>yarn.timeline-service.http-cross-origin.enabled</name>
  <value>true</value>
</property>

<property>
  <description>Publish YARN information to Timeline Server</description>
  <name> yarn.resourcemanager.system-metrics-publisher.enabled</name>
  <value>true</value>
</property>

参考资料

1.https://tez.apache.org/tez-ui.html

2.https://tez.apache.org/tez_yarn_timeline.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注