Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-752

Encountered ClassNotFound exception when trying HWI server

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: Clients
    • Labels:
      None
    • Environment:

      Hadoop 0.18.3

    • Hadoop Flags:
      Reviewed

      Description

      Encountered ClassNotFound exception (for class: org.apache.jetty.hive.shims.Jetty18Shims) when trying to start HWI server on Hadoop 18.

      It appears that the class ShimLoader (org.apache.hadoop.hive.shims.ShimLoader) is referring to incorrect classes as below:

      static

      { JETTY_SHIM_CLASSES.put("0.17", "org.apache.jetty.hive.shims.Jetty17Shims"); JETTY_SHIM_CLASSES.put("0.18", "org.apache.jetty.hive.shims.Jetty18Shims"); JETTY_SHIM_CLASSES.put("0.19", "org.apache.jetty.hive.shims.Jetty19Shims"); JETTY_SHIM_CLASSES.put("0.20", "org.apache.jetty.hive.shims.Jetty20Shims"); }

      however, I think it should be as below:

      static

      { JETTY_SHIM_CLASSES.put("0.17", "org.apache.hadoop.hive.shims.Jetty17Shims"); JETTY_SHIM_CLASSES.put("0.18", "org.apache.hadoop.hive.shims.Jetty18Shims"); JETTY_SHIM_CLASSES.put("0.19", "org.apache.hadoop.hive.shims.Jetty19Shims"); JETTY_SHIM_CLASSES.put("0.20", "org.apache.hadoop.hive.shims.Jetty20Shims"); }

      Wondering if anybody else encountered this.

        Attachments

        1. hive-752.diff
          3 kB
          Edward Capriolo
        2. hive-752-1.diff
          4 kB
          Edward Capriolo

          Activity

            People

            • Assignee:
              appodictic Edward Capriolo
              Reporter:
              rvenkatesan Venkat Ramachandran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: