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

HDP 2.1 install leaves deprecated params in mapred-site.xml, causes Hive failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • None
    • None

    Description

      If Ambari 1.5.0 to install HDP 2.1, Hive fails. Tracing leads to a pair of deprecated params in mapred-site.xml. Removing the two params caused the Hive problem to go away.

      Mapred-site.xml having both new and deprecated properties. After deleting deprecated property hive works as expected.

      (ref: http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/DeprecatedProperties.html)

      mapred.map.child.java.opts mapreduce.map.java.opts
      mapred.reduce.child.java.opts mapreduce.reduce.java.opts

      The problem is eliminated if I execute the following after installation:

      sh /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8081 delete localhost c1 mapred-site mapred.map.child.java.optssh /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8081 delete localhost c1 mapred-site mapred.reduce.child.java.opts

      Attachments

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: