Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14764

MapReduce, Oozie service check failures after upgrade finished

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.2
    • ambari-server
    • None

    Description

      1. MapReduce jobs were failing after upgrading and restarting MapReduce2 service (ClassNotFound exception). Also Oozie job were failing because of the same reason.
      2. This was caused because mapreduce.application.classpath property had the older version of the LZO codec (/usr/hdp/current/hadoop/lib/hadoop-lzo-0.6.0.<OLD-STACK-VERSION>.jar).
      3. During upgrade the path was valid because we had not switched /usr/hdp/current/hadoop symlink to new version. After upgrade, once the symlink is updated to new stack version and after restarting MapReduce2 this path becomes invalid.
      4. To fix this updated the LZO codec path to /usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar in mapreduce.application.classpath config property. Also in oozie-env property added export HADOOP_OPTS="-Dhdp.version=$HDP_VERSION $HADOOP_OPTS”

      Fix:

      1. During stack upgrade, update lzo codec path in mapreduce.application.classpath to
        /usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar
        

      Also, looks like we also need to update following property for TEZ.

      <property>
      <name>tez.cluster.additional.classpath.prefix</name>
      <value>/usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar:/etc/hadoop/conf/secure</value>
      <description></description>
      </property>
      
      1. Update oozie-env and add
        export HADOOP_OPTS="-Dhdp.version=$HDP_VERSION $HADOOP_OPTS"
        
      2. Add upgrade pre-checks to validate if any config properties have old-stack-version hardcodings and report these config properties to be updated.

      Attachments

        1. AMBARI-14764.patch
          45 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: