2017-08-02 342 views
0

我WEBLOGIC_CLASSPATH:JDBC連接失敗 「無法初始化類org.apache.hive.jdbc.HiveConnection」

${MW_HOME}/oracle_common/common/bin/CommExtEnv.sh 
WEBLOGIC_CLASSPATH="${JAVA_HOME}/lib/tools.jar${CLASSPATHSEP}${PROFILE_CLASSPATH} 
${CLASSPATHSEP}${ANT_CONTRIB}/ant-contrib1.0b3.jar${CLASSPATHSEP}${CAM_NODEMANAGER_JAR_PATH}${CLASSPATHSEP}/scratch/hadoop-core-1.1.2.jar${CLASSPATHSEP}/scratch/hive-jdbc-1.2.0-standalone.jar" 

堆棧跟蹤:

無法確定,因爲 的java連接(DataSourceUtil.java:24)
weblogic.jdbc.common.internal.DataSourceUtil $ 1.run(DataSourceUtil.java:285)
java.security.AccessController.doPrivileged(Native Method)
weblogic.jdbc.common.internal.DataSourceUtil.testConnection(DataSourceUtil.java: 282)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:937)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:524)
sun .reflect.NativeMethodAccessorImpl.invoke0(母語 方法)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method中。調用(Method.java:498)
o rg.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui。 pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController。 java:336)
org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache .beehive.netui.pageflow.PageFlowRequestProcessor.access $ 201(PageFlowRequestProcessor.java:97)
org.apache.beehive.netui.pageflow.PageFlowRequestProc ESSOR $ ActionRunner.execute(PageFlowRequestProcessor.java:2044)
...

回答

0

我已經用最新的驅動程序https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common/2.2.0

下面罐子解決和更新WEBLOGIC_CLASSPATH

WEBLOGIC_CLASSPATH = $ {WEBLOGIC_CLASSPATH} $ {CLASSPATHSEP} /hadoop-common-2.2.0.jar$ {CLASSPATHSEP} /hive-jdbc-2.0.0.jar$ {CLASSPATHSEP} /hive-jdbc-2.0.0-standalone.jar「

彈出Weblogic後,我能夠成功創建JDBC連接。

相關問題