Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-621

bin/hcat should include hbase jar and dependencies in the classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.5
    • hive-0.11
    • hbase, scripts
    • None

    Description

      Attempting to use the HBaseHCatStorageHandler results in

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:247)
              at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:523)
              at org.apache.hcatalog.cli.SemanticAnalysis.CreateTableHook.postAnalyze(CreateTableHook.java:198)
              at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.postAnalyze(HCatSemanticAnalyzer.java:244)
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:434)
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:336)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:909)
              at org.apache.hcatalog.cli.HCatDriver.run(HCatDriver.java:42)
              at org.apache.hcatalog.cli.HCatCli.processCmd(HCatCli.java:250)
              at org.apache.hcatalog.cli.HCatCli.processLine(HCatCli.java:204)
              at org.apache.hcatalog.cli.HCatCli.processFile(HCatCli.java:223)
              at org.apache.hcatalog.cli.HCatCli.main(HCatCli.java:168)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.MasterNotRunningException
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              ... 18 more
      

      Attachments

        Issue Links

          Activity

            People

              ndimiduk Nick Dimiduk
              ndimiduk Nick Dimiduk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: