Pivotal Knowledge Base

Follow

PHD - "Failed while trying to construct the redirect URL to the log server" when viewing logs in Resource Manager

Environment

Product Version
Pivotal HD 2.1

Symptom

When attempting to view logs for a job via the Resource Manager UI by clicking on "logs" here:

   

 

The following error is seen :

Error Message:

"Failed while trying to construct the redirect URL to the log server. Log server url may not be configured" 

Cause

yarn.log.server.url is not set correctly in yarn-site.xml

Resolution

     1. Open /etc/gphd/hadoop/conf/yarn-site.xml in a text editor.

     2. Add the following entry into yarn-site.xml: 

         <property>
         <name>yarn.log.server.url</name>
         <value>http://<LOG_SERVER_HOSTNAME>:19888/jobhistory/logs</value>

         </property>

     3. Restart yarn node manager and resource manager:

         sudo /etc/init.d/hadoop-yarn-nodemanager restart 
         sudo /etc/init.d/hadoop-yarn-resourcemanager restart

 

Important Note

 

Comments

Powered by Zendesk