You will need to set the
yarn.resourcemanager.system-metrics-publisher.enabled in the yarn-site.xml 
(restart required)
The application entity is posted by yarn timeline.

From: Rajat Jain
Reply-To: "[email protected]<mailto:[email protected]>", Rajat Jain
Date: Wednesday, July 22, 2015 at 10:36 AM
To: "[email protected]<mailto:[email protected]>"
Subject: Issues with running Tez UI

​I am trying to install Tez UI. I have done the following settings:

1. Configure ATS and start ATS in YARN.
2. Modify tez-site.xml to add these properties:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration xmlns:xi="http://www.w3.org/2001/XInclude";>

<!-- Tez properties -->

  <property>
    <name>tez.lib.uris</name>
    
<value>${fs.default.name<http://fs.default.name>}/apps/tez/,${fs.default.name<http://fs.default.name>}/apps/tez/lib</value>
  </property>

  <property>
    <name>tez.history.logging.service.class</name>
    
<value>org.apache.tez.dag.history.logging.ats.ATSHistoryLoggingService</value>
  </property>
  <property>
    <description>Publish configuration information to Timeline 
server.</description>
    <name>tez.runtime.convert.user-payload.to.history-text</name>
    <value>true</value>
  </property>
  <property>
    <name>tez.tez-ui.history-url.base</name>
    <value>http://localhost:10020</value>
  </property>
</configuration>

3. Start jetty server using tez-ui

java -jar jetty-runner-9.2.3.v20140905.jar --port 10020 tez-ui-0.7.0.war​

This works fine when I directly open the tez-ui using localhost:10020. However, 
the AM link on YARN's page doesn't redirect to tez-ui. It throws the following 
error:

error code: 500, message: Internal Server 
Error{"exception":"WebApplicationException","message":"org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException:
 The entity for application application_1437582973874_0004 doesn't exist in the 
timeline store","javaClassName":"javax.ws.rs.WebApplicationException"}
Could not retrieve expected data from Timeline Server @ 
http://localhost:8188/ws/v1/applicationhistory/apps/application_1437582973874_0004

Am I missing something?

Thanks,
Rajat

Reply via email to