[ https://issues.apache.org/jira/browse/HIVE-15472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822134#comment-15822134 ]
Tao Li commented on HIVE-15472: ------------------------------- According to the error below, the log4j-provider.properties files shaded to the jdbc jar is specifying the classes from "org.apache.logging" which have been renamed in HIVE-14992. Apparently the relocation/renaming does not update the properties file. So for now the quick fix is to revert relocation for "org.apache.logging". Will upload another patch for that. ERROR StatusLogger Unable to create class org.apache.logging.log4j.core.impl.Log4jContextFactory specified in jar:file:/Users/tli/dev/hive/jdbc/target/hive-jdbc-2.2.0-SNAPSHOT-standalone.jar!/META-INF/log4j-provider.properties java.lang.ClassNotFoundException: org.apache.logging.log4j.core.impl.Log4jContextFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > JDBC: Standalone jar is missing ZK dependencies > ----------------------------------------------- > > Key: HIVE-15472 > URL: https://issues.apache.org/jira/browse/HIVE-15472 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 2.2.0 > Reporter: Gopal V > Assignee: Tao Li > Attachments: HIVE-15472.1.patch > > > {code} > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/curator/RetryPolicy > at org.apache.hive.jdbc.Utils.configureConnParams(Utils.java:514) > at org.apache.hive.jdbc.Utils.parseURL(Utils.java:434) > at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:132) > at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107) > at java.sql.DriverManager.getConnection(DriverManager.java:664) > at java.sql.DriverManager.getConnection(DriverManager.java:247) > at JDBCExecutor.getConnection(JDBCExecutor.java:65) > at JDBCExecutor.executeStatement(JDBCExecutor.java:104) > at JDBCExecutor.executeSQLFile(JDBCExecutor.java:81) > at JDBCExecutor.main(JDBCExecutor.java:183) > Caused by: java.lang.ClassNotFoundException: org.apache.curator.RetryPolicy > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)