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

In UpgradeCatalog250.java, (1). Fix value for config "hive.llap.daemon.rpc.port" to be updated as "0" and (2). Remove update for config 'hive.llap.execution.mode'.

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-server
    • None

    Description

      From llap-daemon logs:

      2017-02-07T19:59:39,800 INFO  [main ()] org.apache.hadoop.hive.conf.HiveConf: Found configuration file file:/grid/0/hadoop/yarn/local/usercache/hive/appcache/application_1486481006089_0004/container_e10_1486481006089_0004_01_000007/app/install/conf/hive-site.xml
      2017-02-07T19:59:40,392 INFO  [main ()] org.apache.hadoop.hive.llap.LlapUtil: Using local dirs from environment: /grid/0/hadoop/yarn/local/usercache/hive/appcache/application_1486481006089_0004
      2017-02-07T19:59:40,394 WARN  [main ()] org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon: Failed to start LLAP Daemon with exception
      java.lang.NumberFormatException: For input string: "only"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.7.0_67]
              at java.lang.Integer.parseInt(Integer.java:492) ~[?:1.7.0_67]
              at java.lang.Integer.parseInt(Integer.java:527) ~[?:1.7.0_67]
              at org.apache.hadoop.conf.Configuration.getInt(Configuration.java:1258) ~[hadoop-common-2.7.3.2.5.0.0-1245.jar:?]
              at org.apache.hadoop.hive.conf.HiveConf.getIntVar(HiveConf.java:3378) ~[hive-exec-2.1.0.2.5.0.0-1245.jar:2.1.0.2.5.0.0-1245]
              at org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon.main(LlapDaemon.java:442) [hive-llap-server-2.1.0.2.5.0.0-1245.jar:2.1.0.2.5.0.0-1245]
      

      Reason: "hive.llap.daemon.rpc.port" has been updated as "only" as part of the upgrade code as part of fix in AMBARI-19719.

      Fix: Set the config value as "0".

      Attachments

        1. AMBARI-19903.01.patch
          2 kB
          Swapan Shridhar

        Issue Links

          Activity

            sumitmohanty Sumit Mohanty added a comment - swapanshridhar / sseth There are two occurrences of "only" https://github.com/apache/ambari/blob/branch-2.5/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java#L653 https://github.com/apache/ambari/blob/branch-2.5/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java#L661 The other one is fine?
            sseth Siddharth Seth added a comment - - edited

            sumitmohanty - That's a good question. The second one is meant to be used with HDP-2.6. I suspect UpgradeCatalog250 is the wrong place for such changes.

            sseth Siddharth Seth added a comment - - edited sumitmohanty - That's a good question. The second one is meant to be used with HDP-2.6. I suspect UpgradeCatalog250 is the wrong place for such changes.

            Patch updated. Removed update for config "hive.llap.execution.mode" as well, as this is for upgrade to 2.5.
            CC sumitmohanty | sseth

            swapanshridhar Swapan Shridhar added a comment - Patch updated. Removed update for config "hive.llap.execution.mode" as well, as this is for upgrade to 2.5. CC sumitmohanty | sseth
            sumitmohanty Sumit Mohanty added a comment -

            LGTM, +1

            sumitmohanty Sumit Mohanty added a comment - LGTM, +1

            commit

            trunk:

            commit 14738859ccdffa64ba5d66a5cdf3757723826736
            Author: Swapan Shridhar <sshridhar@hortonworks.com>
            Date:   Tue Feb 7 12:58:40 2017 -0800
            
                AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config "hive.llap.daemon.rpc.port" to be updated as "0" and (2). Remove update for config 'hive.llap.execution.mode'.
            

            branch-2.5:

            commit c25187fa6e78cb8ba5929cf805c75ad7775c0fab
            Author: Swapan Shridhar <sshridhar@hortonworks.com>
            Date:   Tue Feb 7 12:58:40 2017 -0800
            
                AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config "hive.llap.daemon.rpc.port" to be updated as "0" and (2). Remove update for config 'hive.llap.execution.mode'.
            
            swapanshridhar Swapan Shridhar added a comment - commit trunk: commit 14738859ccdffa64ba5d66a5cdf3757723826736 Author: Swapan Shridhar <sshridhar@hortonworks.com> Date: Tue Feb 7 12:58:40 2017 -0800 AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config "hive.llap.daemon.rpc.port" to be updated as "0" and (2). Remove update for config 'hive.llap.execution.mode' . branch-2.5: commit c25187fa6e78cb8ba5929cf805c75ad7775c0fab Author: Swapan Shridhar <sshridhar@hortonworks.com> Date: Tue Feb 7 12:58:40 2017 -0800 AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config "hive.llap.daemon.rpc.port" to be updated as "0" and (2). Remove update for config 'hive.llap.execution.mode' .
            hudson Hudson added a comment -

            SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6665 (See https://builds.apache.org/job/Ambari-trunk-Commit/6665/)
            AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config (sshridhar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=14738859ccdffa64ba5d66a5cdf3757723826736)

            • (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java
            hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6665 (See https://builds.apache.org/job/Ambari-trunk-Commit/6665/ ) AMBARI-19903 . In UpgradeCatalog250.java, (1). Fix value for config (sshridhar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=14738859ccdffa64ba5d66a5cdf3757723826736 ) (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java
            hudson Hudson added a comment -

            SUCCESS: Integrated in Jenkins build Ambari-branch-2.5 #921 (See https://builds.apache.org/job/Ambari-branch-2.5/921/)
            AMBARI-19903. In UpgradeCatalog250.java, (1). Fix value for config (sshridhar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c25187fa6e78cb8ba5929cf805c75ad7775c0fab)

            • (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java
            hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Ambari-branch-2.5 #921 (See https://builds.apache.org/job/Ambari-branch-2.5/921/ ) AMBARI-19903 . In UpgradeCatalog250.java, (1). Fix value for config (sshridhar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c25187fa6e78cb8ba5929cf805c75ad7775c0fab ) (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog250.java

            People

              swapanshridhar Swapan Shridhar
              shavi71 Vivek Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: