tez-ui安裝

1.hadoop集羣中需要啓動timelineserver

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 setting that controls whether yarn system metrics is
  published on the timeline server or not by RM.</description>
  <name>yarn.resourcemanager.system-metrics-publisher.enabled</name>
  <value>true</value>
</property>

<property>
  <description>Indicate to clients whether to query generic application
  data from timeline history-service or not. If not enabled then application
  data is queried only from Resource Manager.</description>
  <name>yarn.timeline-service.generic-application-history.enabled</name>
  <value>true</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>
  <name>yarn.timeline-service.hostname</name>
  <value>mtime-bigdata00</value><!--更改爲實際的host地址-->
</property>

<property>
  <name>yarn.resourcemanager.webapp.cross-origin.enabled</name>
  <value>true</value>
</property>

core-site.xml
   <property>a
      <name>hadoop.http.filter.initializers</name>
     <value>org.apache.hadoop.security.HttpCrossOriginFilterInitializer</value>
    </property>




2.啓動tez-ui
(1)在選定的啓動tez-ui服務的節點上安裝tomcat
(2)在tomcat的webapps上新建tez-ui目錄
(3)將tez-ui-0.8.4.war拷貝到tez-ui目錄,並且解壓
(4)~/webapps/tez-ui/scripts,目錄下,配置configs.js
  將這個文件中的
  timelineBaseUrl:      timeline地址
  RMWebUrl:          resourcemanager地址
  配置好集羣中的正確的地址

3.啓動tomcat服務


4.在tez-site.xml文件中追加如下配置:

  <property>
       <name>tez.history.logging.service.class</name>
       <value>org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService</value>
  </property>

<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>這個地址就是上一步啓動tomcat展現的頁面</description>
    <name>tez.tez-ui.history-url.base</name>
      <value>http://rm2:8080/tez-ui/</value>

 </property>





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章