失败:semanticexception org.apache.hadoop.hive.ql.metadata.hivexception:java.lang.runtimeexcept

eagi6jfj  于 2021-06-26  发布在  Hive
关注(0)|答案(0)|浏览(265)

我正在使用cdh5.13.0环境,每当我试图执行hivecmd时,它就会显示错误
失败:semanticexception org.apache.hadoop.hive.ql.metadata.hiveexception:java.lang.runtimeexception:无法示例化org.apache.hadoop.hive.ql.metadata.sessionhivemetastoreclient
我查看了hive-metastore.log,它显示
2018-05-02 06:15:53225错误[main]:datastore.schema(log4jlogger。java:error(125))-初始化数据库失败。无法打开到给定数据库的测试连接。jdbc url=jdbc:derby:;databasename=metastore\u db;create=true,username=app。正在终止连接池(如果希望在应用程序之后启动数据库,请将lazyinit设置为true)。原始异常:------java.sql.sqlexception:未能创建数据库“metastore\u db”,有关详细信息,请参阅下一个异常。位于org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(未知源),位于org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(未知源),位于org.apache.derby.impl.jdbc.util.seenextexception(未知源),位于org.apache.derby.impl.jdbc.embedconnection.createdatabase(未知源)org.apache.derby.impl.jdbc.embedconnection.(未知源)位于org.apache.derby.jdbc.internaldriver.getnewembedconnection(未知源)位于org.apache.derby.jdbc.internaldriver.connect(未知源)位于org.apache.derby.jdbc.autoloadeddriver.connect(未知源)java.sql.drivermanager.getconnection(驱动管理器)。java:571)在java.sql.drivermanager.getconnection(drivermanager。java:187)在com.jolbox.bonecp.bonecp.obtainrawinternalconnection(bonecp。java:361)在com.jolbox.bonecp.bonecp。java:416)在com.jolbox.bonecp.bonecpdatasource.getconnection(bonecpdatasource。java:120)在org.datanucleus.store.rdbms.connectionfactoryimpl$managedconnectionimpl.getconnection(connectionfactoryimpl。java:501)在org.datanucleus.store.rdbms.rdbmsstoremanager.(rdbmsstoremanager。java:298)位于sun.reflect.nativeconstructoraccessorimpl.newinstance0(本机方法)sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl。java:57)在sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl。java:45)在java.lang.reflect.constructor.newinstance(constructor。java:526)在org.datanucleus.plugin.nonmanagedpluginregistry.createexecutableextension(nonmanagedpluginregistry)。java:631)在org.datanucleus.plugin.pluginmanager.createexecutableextension(pluginmanager。java:301)在org.datanucleus.nucleuscontext.createstoremanagerforproperties(nucleuscontext。java:1187)在org.datanucleus.nucleuscontext.initialise(nucleuscontext。java:356)在org.datanucleus.api.jdo.jdopersistencemanagerfactory.freezeconfiguration(jdopersistencemanagerfactory。java:775)位于org.datanucleus.api.jdo.jdopersistencemanagerfactory.createpersistencemanagerfactory(jdopersistencemanagerfactory)。java:333)在org.datanucleus.api.jdo.jdopersistencemanagerfactory.getpersistencemanagerfactory(jdopersistencemanagerfactory)。java:202)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在javax.jdo.jdohelper$16.run(jdohelper。java:1965)位于javax.jdo.jdohelper.invoke(jdohelper)的java.security.accesscontroller.doprivileged(本机方法)。java:1960)在javax.jdo.jdohelper.InvokeGetPersistenceManager工厂实现(jdohelper。java:1166)在javax.jdo.jdohelper.getpersistencemanagerfactory(jdohelper。java:808)在javax.jdo.jdohelper.getpersistencemanagerfactory(jdohelper。java:701)在org.apache.hadoop.hive.metastore.objectstore.getpmf(objectstore。java:418)在org.apache.hadoop.hive.metastore.objectstore.getpersistencemanager(objectstore。java:447)在org.apache.hadoop.hive.metastore.objectstore.initialize(objectstore。java:342)在org.apache.hadoop.hive.metastore.objectstore.setconf(objectstore。java:298)位于org.apache.hadoop.util.reflectionutils.setconf(reflectionutils。java:73)在org.apache.hadoop.util.reflectionutils.newinstance(reflectionutils。java:133)在org.apache.hadoop.hive.metastore.rawstoreproxy。java:60)位于org.apache.hadoop.hive.metastore.rawstoreproxy.getproxy(rawstoreproxy)。java:69)在org.apache.hadoop.hive.metastore.hivemetastore$hmshandler.newrawstore(hivemetastore)。java:682)在org.apache.hadoop.hive.metastore.hivemetastore$hmshandler.getms(hivemetastore。java:660)在org.apache.hadoop.hive.metastore.hivemetastore$hmshandler.createdefaultdb(hivemetastore。java:709)位于org.apache.hadoop.hive.metastore.hivemetastore$hmshandler.init(hivemetastore)。java:508)在org.apache.hadoop.hive.metastore.retryinghmshandler.(retryinghmshandler。java:78)在org.apache.hadoop.hive.metastore.retryinghmshandler.getproxy(retryinghmshandler。java:84)位于org.apache.hadoop.hive.metastore.hivemetastore.newretryinghmshandler(hivemetastore)。java:6474)在org.apache.hadoop.hive.metastore.hivemetastore.newretryinghmshandler(hivemetastore)。java:6469)在org.apache.hadoop.hive.metastore.hivemetastore.startmetastore(hivemetastore)。java:6719)位于org.apache.hadoop.hive.metastore.hivemetastore.main(hivemetastore。java:6646)位于sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在org.apache.hadoop.util.runjar.run(runjar。java:221)在org.apache.hadoop.util.runjar.main(runjar。java:136)原因:错误xj041:未能创建数据库“metastore\u db”,有关详细信息,请参阅下一个异常。位于org.apache.derby.iapi.error.standardexception.newexception(未知源),位于org.apache.derby.impl.jdbc.sqlexceptionfactory.wrapargsforttransportacrossdrda(未知源)。。。61其他原因:错误xbm0h:无法创建目录/metastore\u db。位于org.apache.derby.iapi.error.standardexception.newexception(未知源),位于org.apache.derby.iapi.error.standardexception.newexception(未知源),位于org.apache.derby.impl.services.monitor.storagefactoryservice$10.run(未知源),位于java.security.accesscontroller.doprivileged(本机方法)org.apache.derby.impl.services.monitor.storagefactoryservice.createserviceroot(未知源),位于org.apache.derby.impl.services.monitor.basemonitor.bootservice(未知源),位于org.apache.derby.impl.services.monitor.basemonitor.createpersistentservice(未知源)org.apache.derby.impl.services.monitor.filemonitor.createpersistentservice(未知源),位于org.apache.derby.iapi.services.monitor.monitor.createpersistentservice(未知源)

... 还有58个

org.datanucleus.exceptions.nucleusdatastoreexception:无法打开到给定数据库的测试连接。jdbc url=jdbc:derby:;databasename=metastore\u db;create=true,username=app。正在终止连接池(如果希望在应用程序之后启动数据库,请将lazyinit设置为true)。原始异常:------java.sql.sqlexception:未能创建数据库“metastore\u db”,有关详细信息,请参阅下一个异常。位于org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(未知源),位于org.apache.derby.impl.jdbc.sqlexceptionfactory.getsqlexception(未知源),位于org.apache.derby.impl.jdbc.util.seenextexception(未知源),位于org.apache.derby.impl.jdbc.embedconnection.createdatabase(未知源)org.apache.derby.impl.jdbc.embedconnection.(未知源)位于org.apache.derby.jdbc.internaldriver.getnewembedconnection(未知源)位于org.apache.derby.jdbc.internaldriver.connect(未知源)位于org.apache.derby.jdbc.autoloadeddriver.connect(未知源)java.sql.drivermanager.getconnection(驱动管理器)。java:571)在java.sql.drivermanager.getconnection(drivermanager。java:187)在com.jolbox.bonecp.bonecp.obtainrawinternalconnection(bonecp。java:361)在com.jolbox.bonecp.bonecp。java:416)在com.jolbox.bonecp.bonecpdatasource.getconnection(bonecpdatasource。java:120)在org.datanucleus.store.rdbms.connectionfactoryimpl$managedconnectionimpl.getconnection(connectionfactoryimpl。java:501)在org.datanucleus.store.rdbms.rdbmsstoremanager.(rdbmsstoremanager。java:298)位于sun.reflect.nativeconstructoraccessorimpl.newinstance0(本机方法)sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl。java:57)在sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl。java:45)在java.lang.reflect.constructor.newinstance(constructor。java:526)在org.datanucleus.plugin.nonmanagedpluginregistry.createexecutableextension(nonmanagedpluginregistry)。java:631)在org.datanucleus.plugin.pluginmanager.createexecutableextension(pluginmanager。java:301)在org.datanucleus.nucleuscontext.createstoremanagerforproperties(nucleuscontext。java:1187)在org.datanucleus.nucleuscontext.initialise(nucleuscontext。java:356)在org.datanucleus.api.jdo.jdopersistencemanagerfactory.freezeconfiguration(jdopersistencemanagerfactory。java:775)位于org.datanucleus.api.jdo.jdopersistencemanagerfactory.createpersistencemanagerfactory(jdopersistencemanagerfactory)。java:333)在org.datanucleus.api.jdo.jdopersistencemanagerfactory.getpersistencemanagerfactory(jdopersistencemanagerfactory)。java:202)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在javax.jdo.jdohelper$16.run(jdohelper。java:1965)位于javax.jdo.jdohelper.invoke(jdohelper)的java.security.accesscontroller.doprivileged(本机方法)。java:1960)在javax.jdo.jdohelper.InvokeGetPersistenceManager工厂实现(jdohelper。java:1166)在javax.jdo.jdohelper.getpersistencemanagerfactory(jdohelper。java:808)位于javax.jdo.jdohelper.getpersi

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题