Hive
  1. Hive
  2. HIVE-3103

Metastore operations fail when datanucleus.cache.collections=false

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Metastore
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Carl Steinbach added a comment -
        % hive -hiveconf hive.root.logger=INFO,console
        hive> set datanucleus.cache.collections=false;
        OK
        hive> CREATE TABLE t1(x INT);
        OK
        hive> DESCRIBE t1;
        12/06/07 13:19:26 ERROR exec.Task: FAILED: Error in metadata: Unable to fetch table t1
        org.apache.hadoop.hive.ql.metadata.HiveException: Unable to fetch table t1
        	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:897)
        	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:844)
        	at org.apache.hadoop.hive.ql.exec.DDLTask.describeTable(DDLTask.java:2545)
        	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:309)
        	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:134)
        	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
        	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1322)
        	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1108)
        	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:943)
        	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258)
        	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215)
        	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406)
        	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:702)
        	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:567)
        	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.NullPointerException
        	at org.datanucleus.sco.simple.Set.<init>(Set.java:68)
        	at org.datanucleus.sco.backed.Set.<init>(Set.java:94)
        	at org.datanucleus.sco.backed.Map.entrySet(Map.java:418)
        	at org.apache.hadoop.hive.metastore.api.SerDeInfo.<init>(SerDeInfo.java:141)
        	at org.apache.hadoop.hive.metastore.api.StorageDescriptor.<init>(StorageDescriptor.java:225)
        	at org.apache.hadoop.hive.metastore.api.Table.<init>(Table.java:244)
        	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.deepCopy(HiveMetaStoreClient.java:1008)
        	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:747)
        	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:889)
        	... 18 more
        
        FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
        hive>
        
        Show
        Carl Steinbach added a comment - % hive -hiveconf hive.root.logger=INFO,console hive> set datanucleus.cache.collections=false; OK hive> CREATE TABLE t1(x INT); OK hive> DESCRIBE t1; 12/06/07 13:19:26 ERROR exec.Task: FAILED: Error in metadata: Unable to fetch table t1 org.apache.hadoop.hive.ql.metadata.HiveException: Unable to fetch table t1 at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:897) at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:844) at org.apache.hadoop.hive.ql.exec.DDLTask.describeTable(DDLTask.java:2545) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:309) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:134) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1322) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1108) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:943) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:702) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:567) 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.NullPointerException at org.datanucleus.sco.simple.Set.<init>(Set.java:68) at org.datanucleus.sco.backed.Set.<init>(Set.java:94) at org.datanucleus.sco.backed.Map.entrySet(Map.java:418) at org.apache.hadoop.hive.metastore.api.SerDeInfo.<init>(SerDeInfo.java:141) at org.apache.hadoop.hive.metastore.api.StorageDescriptor.<init>(StorageDescriptor.java:225) at org.apache.hadoop.hive.metastore.api.Table.<init>(Table.java:244) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.deepCopy(HiveMetaStoreClient.java:1008) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:747) at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:889) ... 18 more FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask hive>
        Hide
        Navis added a comment -

        Cannot reproduce on trunk. Seemed to be fixed by recent version of datanucleus.

        Show
        Navis added a comment - Cannot reproduce on trunk. Seemed to be fixed by recent version of datanucleus.

          People

          • Assignee:
            Unassigned
            Reporter:
            Carl Steinbach
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development