Oh,I'm a little depressed. Because from the installation instructions of 
http://tez.apache.org/tez-ui.html,, I saw there were just a few steps .
 In my tez-site.xml, I configed this:
------------------------------------------------------------------------------------------------------------------------------------------------------------
...
<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://server2:9999/tez-ui/</value>
</property>
.... ....

in 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>server2</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>

<property>
       <description>The http address of the Timeline service web 
application.</description>
       <name>yarn.timeline-service.webapp.address</name>
       <value>${yarn.timeline-service.hostname}:8188</value>
     </property>
<property>
   <description>The https address of the Timeline service web 
application.</description>
  <name>yarn.timeline-service.webapp.https.address</name>
  <value>${yarn.timeline-service.hostname}:2191</value>
</property>
...

in $TOMCAT_HOME/webapps/tez-ui/scripts/config.js
I removed the comment:
 timelineBaseUrl: 'http://localhost:8188',
 RMWebUrl: 'http://localhost:8088',
---------------------------------------------------------------------------------------------
I started timelineserver and proxyserver:
yarn-daemon.sh start timelineserver 
yarn-daemon.sh start proxyserver

While when I visit "http://server2:8080/tez-ui",An error appeared:
error code:404,message:error
Could not retrive expected data from Timeline server 
@http://localhost:8188/ws/v1/timeline/TEZ_DAG_ID

And also when I attemptted to link tez-ui from yarn UI 8088 Tracking UI 
history,it was refused.
I doubt my configurations, but I was really confused by that error. I need your 
guidance.

Thank you very very much.

Maria ~

At 2016-03-06 23:23:51, "Maria" <linanmengxia...@126.com> wrote:
>
>Thanks for your soonest response. 
>Yes! the UI hosted in tomcat, and ATS & RM are running in server2.
>mybe I should check my configurations again. 
>
>
>At 2016-03-05 17:32:30, "Sreenath Somarajapuram" 
><ssomarajapu...@hortonworks.com> wrote:
>>Hi Orchid,
>>
>>Is the UI hosted in Tomcat?
>>If tomcat is running in 8080 on server2, and following the below steps
>>(from http://tez.apache.org/tez-ui.html), the UI must be available at
>>http://server2:8080/tez-ui/
>>1. Remove any old tez-ui deployments in $TOMCAT_HOME/webapps
>>2. Extract the war into $TOMCAT_HOME/webapps/tez-ui/
>>3. Modify scripts/config.js as needed.
>>4. Restart tomcat and the UI should be available under the tez-ui/ path.
>>
>>Are the configurations correct?
>>Once the UI gets shown in the browser, please ensure that the
>>timelineBaseUrl & RMWebUrl are set correctly in
>>$TOMCAT_HOME/webapps/tez-ui/scripts/configs.js
>>
>>Is your ATS & RM running in server2?
>>If that is the case, then timelineBaseUrl = 'http://server2:8188' &
>>RMWebUrl = 'http://server2:8088'.
>>
>>The tea-site.xml configurations is used by other UIs to create links to
>>Tez UI. In other words, it just says where the UI might be hosted.
>>
>>Thanks,
>>Sreenath
>>
>>On 3/5/16, 12:45 PM, "Maria" <linanmengxia...@126.com> wrote:
>>
>>>
>>>And I executed a command:lsof -i :9999
>>>There is nothing, no listener. It's a problem. But it was configed in
>>>tez-site.xml:
>>><property>
>>>  <description>URL for where the Tez UI is hosted</description>
>>>  <!--tomcat 9999 port-->
>>>  <name>tez.tez-ui.history-url.base</name>
>>>  <value>http://server2:9999/tez-ui/</value>
>>> </property>
>>>
>>>
>>>At 2016-03-05 14:55:00, "Maria" <linanmengxia...@126.com> wrote:
>>>>Hello,respected experts:
>>>>    My hadoop version is 2.6.0, tez version is 0.7.0.
>>>>    I  install tez ui by following the installation instructions:
>>>>http://tez.apache.org/tez-ui.html.
>>>>    Tomcat 8080 is well to visit, but I cann't open
>>>>http://server2:9999/tez-ui/ or links from RM 8088 history.  I don't know
>>>>why,can you please give a little guidance? where can I find logs about
>>>>tez ui?
>>>>
>>>>Any help, suggestions, are greatly appreciated!
>>>>
>>>>Orchid.
>>

Reply via email to