Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-96

Hive RPM does not correctly upgrade from previous version to CDH3 Beta 4

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: CDH3b4
    • Fix Version/s: CDH3u0
    • Component/s: Hive
    • Labels:
      None

      Description

      On cdh-user@cloudera.org, Jeremy Carroll reports:

      "Upgraded our cluster to CDH3 Beta 4. Now I cannot start Hive from the
      command line. Here are the errors that I am receiving.

      [root@n1 lib]# hive
      /usr/lib/hive/bin/hive: line 68: [: /usr/lib/hive/lib/hive-exec-0.6.0-
      CDH3-dev.jar: binary operator expected
      /usr/lib/hive/bin/hive: line 73: [: /usr/lib/hive/lib/hive-
      metastore-0.6.0-CDH3-dev.jar: binary operator expected
      /usr/lib/hive/bin/hive: line 79: [: /usr/lib/hive/lib/hive-cli-0.6.0-
      CDH3-dev.jar: binary operator expected
      /usr/lib/hive/bin/ext/util/execHiveCmd.sh: line 21: [: /usr/lib/hive/
      lib/hive-cli-0.6.0-CDH3-dev.jar: binary operator expected
      Exception in thread "main" java.lang.ClassNotFoundException: /usr/lib/
      hive/lib/hive-cli-0/7/0-CDH3B4/jar
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:179)"

      In a subsequent message, Jeremy says:

      "Found out my issue. The upgrade does not fully clean out the /usr/lib/
      hive/lib directories after an upgrade. I had to uninstall the hive
      RPM, then rm -rf /usr/lib/hive, then reinstall hive. It had a lot of
      0.5 jars in the directory."

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              atm Aaron T. Myers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: