Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # dev - Get error in metadata when create table with hive-0.8.0 and a standalone derby


Copy link to this message
-
Get error in metadata when create table with hive-0.8.0 and a standalone derby
Bing Li 2012-05-30, 09:52
Hi, All
I tried to create table from multiple nodes (which has install Hive) in
parallel and then I got the following error message:

create table tab ( foo INT, bar STRING);   // different nodes create
different tables

2012-05-29 20:53:49,738 ERROR exec.Task (SessionState.java:printError(380))
- *FAILED: Error in metadata: java.lang.ClassCastException:
org.datanucleus.store.rdbms.scostore.RDBMSJoinMapStore incompatible with
org.datanucleus.store.scostore.ListStore*
org.apache.hadoop.hive.ql.metadata.HiveException:
java.lang.ClassCastException:
org.datanucleus.store.rdbms.scostore.RDBMSJoinMapStore incompatible with
org.datanucleus.store.scostore.ListStore
        *at
org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:546)*
        at
org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479)
        at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225)
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
        at
org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1332)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1123)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:931)
        at
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:255)
        at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:212)
        at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)
        at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:338)
        at
org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:436)
        at
org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:446)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:642)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.lang.ClassCastException:
org.datanucleus.store.rdbms.scostore.RDBMSJoinMapStore incompatible with
org.datanucleus.store.scostore.ListStore
        at org.datanucleus.sco.backed.ArrayList.<init>(ArrayList.java:100)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
        at org.datanucleus.util.ClassUtils.newInstance(ClassUtils.java:95)
        at org.datanucleus.sco.SCOUtils.newSCOInstance(SCOUtils.java:165)
        at
org.datanucleus.store.mapped.mapping.AbstractContainerMapping.replaceFieldWithWrapper(AbstractContainerMapping.java:405)
        at
org.datanucleus.store.mapped.mapping.MapMapping.postInsert(MapMapping.java:138)
        at
org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:515)
        at
org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertTable(RDBMSPersistenceHandler.java:146)
        at
org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:121)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:3275)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.java:3249)
        at
org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1428)
        at
org.datanucleus.store.mapped.mapping.PersistableMapping.setObjectAsValue(PersistableMapping.java:664)
        at
org.datanucleus.store.mapped.mapping.PersistableMapping.setObject(PersistableMapping.java:423)
        at
org.datanucleus.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:197)
        at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1023)
        at
org.apache.hadoop.hive.metastore.model.MStorageDescriptor.jdoProvideField(MStorageDescriptor.java)
        at
org.apache.hadoop.hive.metastore.model.MStorageDescriptor.jdoProvideFields(MStorageDescriptor.java)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:2803)
        at
org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:294)
        at
org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertTable(RDBMSPersistenceHandler.java:146)
        at
org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:121)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:3275)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.java:3249)
        at
org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1428)
        at
org.datanucleus.store.mapped.mapping.PersistableMapping.setObjectAsValue(PersistableMapping.java:664)
        at
org.datanucleus.store.mapped.mapping.PersistableMapping.setObject(PersistableMapping.java:423)
        at
org.datanucleus.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:197)
        at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1023)
        at
org.apache.hadoop.hive.metastore.model.MTable.jdoProvideField(MTable.java)
        at
org.apache.hadoop.hive.metastore.model.MTable.jdoProvideFields(MTable.java)
        at
org.datanucleus.jdo.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:2803)
        at
org.datanucleus.sto