Derby version mismatch between Spark and Hive : Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient -
while connecting spark(1.4.0 built hadoop 2.6.0) hive(version 1.1.0) tables exception coming due derby version mismatch.
there way both(spark & hive) can use same derby version ? ...any other way fix ?
caused by: java.sql.sqlexception: failed start database 'metastore_db' class loader org.apache.spark.sql.hive.client.isolatedclientloader$$anon$1@e0d0b81, see next exception details. @ org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(unknown source) @ org.apache.derby.impl.jdbc.sqlexceptionfactory40.wrapargsfortransportacrossdrda(unknown source) ... 88 more caused by: java.sql.sqlexception: database @ /home/saurabh/softwares/hive1.1/bin/metastore_db has incompatible format current version of software. database created or upgraded version 10.11. @ org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(unknown source) @ org.apache.derby.impl.jdbc.sqlexceptionfactory40.wrapargsfortransportacrossdrda(unknown source) @ org.apache.derby.impl.jdbc.sqlexceptionfactory40.getsqlexception(unknown source) @ org.apache.derby.impl.jdbc.util.generatecssqlexception(unknown source) ... 85 more caused by: error xslan: database @ /home/saurabh/softwares/hive1.1/bin/metastore_db has incompatible format current version of software. database created or upgraded version 10.11. @ org.apache.derby.iapi.error.standardexception.newexception(unknown source) @ org.apache.derby.impl.store.raw.log.logtofile.readcontrolfile(unknown source) @ org.apache.derby.impl.store.raw.log.logtofile.boot(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.boot(unknown source) @ org.apache.derby.impl.services.monitor.topservice.bootmodule(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.startmodule(unknown source) @ org.apache.derby.iapi.services.monitor.monitor.bootservicemodule(unknown source) @ org.apache.derby.impl.store.raw.data.basedatafilefactory.bootlogfactory(unknown source) @ org.apache.derby.impl.store.raw.data.basedatafilefactory.setrawstorefactory(unknown source) @ org.apache.derby.impl.store.raw.rawstore.boot(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.boot(unknown source) @ org.apache.derby.impl.services.monitor.topservice.bootmodule(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.startmodule(unknown source) @ org.apache.derby.iapi.services.monitor.monitor.bootservicemodule(unknown source) @ org.apache.derby.impl.store.access.ramaccessmanager.boot(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.boot(unknown source) @ org.apache.derby.impl.services.monitor.topservice.bootmodule(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.startmodule(unknown source) @ org.apache.derby.iapi.services.monitor.monitor.bootservicemodule(unknown source) @ org.apache.derby.impl.db.basicdatabase.bootstore(unknown source) @ org.apache.derby.impl.db.basicdatabase.boot(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.boot(unknown source) @ org.apache.derby.impl.services.monitor.topservice.bootmodule(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.bootservice(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.startproviderservice(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.findproviderandstartservice(unknown source) @ org.apache.derby.impl.services.monitor.basemonitor.startpersistentservice(unknown source) @ org.apache.derby.iapi.services.monitor.monitor.startpersistentservice(unknown source) ... 85 more 15/07/01 17:29:49 info sparkui: stopped spark web ui @ http://192.168.17.155:4040 15/07/01 17:29:49 info dagscheduler: stopping dagscheduler
this how solved it:
rm -rf "${appdata//\\//}/../local/temp/spark-"* rm -rf /c/tmp/hive rm -rf ./metastore_db
i deleted git bash the:
- local spark directories (not mandatory good)
- the temporary hive directory (mandatory)
- the metastore_db (it mandatory delete metastore_db/*.loc deleted whole thing sure )
i not sure applicable case, reset derby database can use it.
Comments
Post a Comment