Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9555

Yarn Docs : single cluster yarn setup - Step 1 configure parameters - multiple roots

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: yarn
    • Labels:
      None

      Description

      Step 1 for https://hadoop.apache.org/docs/r3.2.0/hadoop-project-dist/hadoop-common/SingleCluster.html#YARN_on_Single_Node
       
      Configure parameters as follows:

      etc/hadoop/mapred-site.xml:
       
      <configuration>
      <property>
      <name>mapreduce.framework.name</name>
      <value>yarn</value>
      </property>
      </configuration>

      <configuration>
      <property>
      <name>mapreduce.application.classpath</name>
      <value>$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/:$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/</value>
      </property>
      </configuration>

      but setting this will throw an error when running yarn :

      2019-05-14 16:32:05,815 ERROR org.apache.hadoop.conf.Configuration: error parsing conf mapred-site.xml
      com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?).This should be modified to

      <configuration> 
      <property> 
      <name>mapreduce.framework.name</name> 
      <value>yarn</value> 
      </property> 
      <property> 
      <name>mapreduce.application.classpath</name> 
      <value>$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/*:$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/*</value> 
      </property> 
      </configuration>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Vishva001 Vishva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: