As always, thanks for your help,Sreenath.
To be honest, I have to improve my English. :)
(1)“After I clicked "history" in yarn-ui, it linked to 
"server2:8080/#/tez-app/application_1457504571463_0001", and it was the same 
page with "server2:8080"——tomcat 8080 page.” 
It was not the landing page. This means after I clicked yarn Tracking 
UI——"history",page was redirected to a page which URL was 
"server2:8080/#/tez-app/application_1457504571463_0001", its web content was 
same as
 "http://localhost:8080";. It was not redirected to tez ui. (I want to do a 
screenshot , but because it is the company's internal network, I cann't do 
that. )
(2) ”On clicking History like, the expected behavior is to display the "App 
Details" page. And “server2:8080/#/tez-app/application_1457504571463_0001” 
looks in accordance with it."
Yes, the expected behavior is to display the "App Details" 
page.“server2:8080/#/tez-app/application_1457504571463_0001”was not in 
accordance with it, but  in accordance with "http://localhost:8080";.
(3)"changed "__HISTORY_URL_BASE__/#tez-app/__APPLICATION_ID__" to 
"http://server2:8080/tez-ui/#tez-app/__APPLICATION_ID__” ~ Was this change made 
in the tez-site.xml file?
Yes, but it didn't work, then it was commented out. And I restarted yarn 
service.

In summary, I have not set an extra tez-ui except the 
tez.tez-ui.history-url.base, which value was "http://server2:8080/tez-ui";.

At 2016-03-10 17:21:38, "Sreenath Somarajapuram" 
<[email protected]> wrote:
>Hi Maria,
>
>Np, feel free to ask.
>
>I’m not very clear on the following
>       “After I clicked "history" in yarn-ui, it linked to
>"server2:8080/#/tez-app/application_1457504571463_0001", and it was the
>same page with "server2:8080"——tomcat 8080 page.”
>- Do you mean to say that you are viewing the landing page? (All DAGs
>page) ~ Please share a screenshot
>- On clicking History like, the expected behavior is to display the "App
>Details" page. And “server2:8080/#/tez-app/application_1457504571463_0001”
>looks in accordance with it.
>
>Also - "changed "__HISTORY_URL_BASE__/#tez-app/__APPLICATION_ID__" to
>"http://server2:8080/tez-ui/#tez-app/__APPLICATION_ID__” ~ Was this change
>made in the tez-site.xml file?
>
>Thanks,
>Sreenath
>
>On 3/9/16, 12:11 PM, "Maria" <[email protected]> wrote:
>
>>
>>Hello,Sreenath:
>>     Thanks for your prompt. I checked my tez-site.xml, I really didn't
>>set tez.am.tez-ui.history-url.template,and I found its default value is
>>what you said "__HISTORY_URL_BASE__/#tez-app/__APPLICATION_ID__" in
>>Tezconfiguration.java.  Actually, in tez-site.xml, all parameters I set
>>are these:
>>
>>tez.am.resource.memory.mb
>>tez.history.logging.service.class
>>tez.tez-ui.history-url.base
>>tez.lib.uris
>>tez.runtime.io.sort.mn
>>tez.task.resource.memory.mb
>>tez.tez-ui.history-url.base
>>tez.use.cluster.hadoop-libs
>>
>>And, when I change the value of "tez.tez-ui.history-url.base" from
>>"http://server2:8080/tez-ui"; to "http://server2:8080/";, restart service,
>>stranger things happened:
>>After I clicked "history" in yarn-ui, it linked to
>>"server2:8080/#/tez-app/application_1457504571463_0001", and it was the
>>same page with "server2:8080"——tomcat 8080 page.
>>So in conclusion,I never set an extra tez-ui in configurations. Your
>>suggestions are all well, but I  feel a little uneasy and ... a thousand
>>pardons for taking up so such of your time.
>>I also keep looking on other methods, for example, changed
>>"__HISTORY_URL_BASE__/#tez-app/__APPLICATION_ID__" to
>>"http://server2:8080/tez-ui/#tez-app/__APPLICATION_ID__";, but failed. So
>>I'm sorry to trouble you again.
>>
>>
>>At 2016-03-08 18:23:04, "Sreenath Somarajapuram"
>><[email protected]> wrote:
>>>Please check the value of tez.am.tez-ui.history-url.template in
>>>tez-site.xml. That must give a clue.
>>>It must be "__HISTORY_URL_BASE__/#tez-app/__APPLICATION_ID__” for your
>>>setup. Guess you are having an extra tez-ui in there.
>>>
>>>Thanks,
>>>Sreenath
>>>
>>>On 3/8/16, 8:18 AM, "Maria" <[email protected]> wrote:
>>>
>>>>
>>>>Thank you very much. Sreenath.
>>>>
>>>>After I changed RMWebUrl port as“RMWebUrl: 'http://server2:8088',” ,
>>>>Now, the http://server2:8080/tez-ui can visit well. Absolutely. Thank
>>>>you
>>>>for your advice. :):):)
>>>>
>>>>But even if I set tez.tez-ui.history-url.base to
>>>>"http://server2:8080/tez-ui";, it couldn't link to TEZ-UI from YARN UI.
>>>>After I clicked the "history" on yarn ui, web page  jumped to
>>>>"server2:8080/tez-ui/tez-ui/#tez-app/application_1457404021167_0001",
>>>>and
>>>>got error messages:
>>>>HTTP Status 404-/tez-ui/tez-ui
>>>>type Status report
>>>>massage /tez-ui/tez-ui
>>>>description The requested resource is not avaliable.
>>>>--------------------------------------------------------
>>>>Apache Tomcat/7.0.68
>>>>
>>>>Have you ever seen problem like this?
>>>>
>>>>Thank you. 
>>>>Maria~
>>>>
>>>>At 2016-03-07 15:12:47, "Sreenath Somarajapuram"
>>>><[email protected]> wrote:
>>>>>Hi Maria,
>>>>>
>>>>>Good news: You have got the UI deployed.
>>>>>
>>>>>Just need to correct some configurations, and things must work:
>>>>>1. Correct tez.tez-ui.history-url.base. It must be
>>>>>http://server2:8080/tez-ui. That must correct the History URL in YARN
>>>>>UI.
>>>>>2. Set correct values in $TOMCAT_HOME/webapps/tez-ui/scripts/config.js
>>>>>   - Don't remove, instead try replacing them with the following lines
>>>>>(uncommented).
>>>>>           timelineBaseUrl: 'http://server2:8188',
>>>>>           RMWebUrl: 'http://server2:8088',
>>>>>
>>>>>
>>>>>Please let us know if that helps.
>>>>>
>>>>>Thanks,
>>>>>Sreenath
>>>>>
>>>>>On 3/7/16, 11:57 AM, "Maria" <[email protected]> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>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
>>>>>></
>>>>>>va
>>>>>>lue>
>>>>>></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" <[email protected]> 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"
>>>>>>><[email protected]> 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" <[email protected]> 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" <[email protected]> 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