HCatalog
  1. HCatalog
  2. HCATALOG-187

HCatalog release missing Hive builtins

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: None
    • Labels:
      None

      Description

      HIVE-2523 moved builtins to its own package. When doing a clean HCatalog build we now get a RuntimeException because builtins are missing:

      $ HADOOP_HOME=/usr/lib/hadoop bin/hcat
      Exception in thread "main" java.lang.RuntimeException: Failed to load Hive builtin functions
      	at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:190)
      	at org.apache.hadoop.hive.cli.CliSessionState.<init>(CliSessionState.java:81)
      	at org.apache.hcatalog.cli.HCatCli.main(HCatCli.java:63)
      	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.hive.builtins.BuiltinUtils
      	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:307)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:169)
      	at org.apache.hadoop.hive.ql.exec.Utilities.getBuiltinUtilsClass(Utilities.java:2319)
      	at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:182)
      	... 7 more
      

      The builtins jar needs to be included in the HCatalog release.

      1. HCATALOG-187.diff
        0.5 kB
        Travis Crawford

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Travis Crawford
            Reporter:
            Travis Crawford
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development