[
https://issues.apache.org/jira/browse/HIVE-29022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ayush Saxena updated HIVE-29022:
--------------------------------
Labels: hive-4.1.0-must (was: )
> Schematool fails while initializing hive schema
> -----------------------------------------------
>
> Key: HIVE-29022
> URL: https://issues.apache.org/jira/browse/HIVE-29022
> Project: Hive
> Issue Type: Bug
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: hive-4.1.0-must
>
> Missing JDK-17 exports
> {noformat}
> ayushsaxena@ayushsaxena apache-hive-4.1.0-SNAPSHOT-bin % bin/schematool
> -dbType hive -metaDbType derby -initSchema
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/Users/ayushsaxena/code/hive/packaging/target/apache-hive-4.1.0-SNAPSHOT-bin/apache-hive-4.1.0-SNAPSHOT-bin/lib/log4j-slf4j-impl-2.24.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/Users/ayushsaxena/code/incubator/hadoop-3.4.1/hadoop-3.4.1-RC3/hadoop-3.4.1/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 2025-06-16T21:14:55.695115Z main WARN The use of package scanning to locate
> Log4j plugins is deprecated.
> Please remove the `packages` attribute from your configuration file.
> See https://logging.apache.org/log4j/2.x/faq.html#package-scanning for
> details.
> 2025-06-16T21:14:55.755374Z main INFO Starting configuration
> org.apache.logging.log4j.core.config.properties.PropertiesConfiguration@258d79be...
> 2025-06-16T21:14:55.755510Z main INFO Start watching for changes to
> jar:file:/Users/ayushsaxena/code/hive/packaging/target/apache-hive-4.1.0-SNAPSHOT-bin/apache-hive-4.1.0-SNAPSHOT-bin/lib/hive-common-4.1.0-SNAPSHOT.jar!/hive-log4j2.properties
> every 0 seconds
> 2025-06-16T21:14:55.755603Z main INFO Configuration
> org.apache.logging.log4j.core.config.properties.PropertiesConfiguration@258d79be
> started.
> 2025-06-16T21:14:55.756610Z main INFO Stopping configuration
> org.apache.logging.log4j.core.config.DefaultConfiguration@11bd0f3b...
> 2025-06-16T21:14:55.756788Z main INFO Configuration
> org.apache.logging.log4j.core.config.DefaultConfiguration@11bd0f3b stopped.
> Initializing the schema to: 4.1.0
> Metastore connection URL:
> jdbc:hive2://?hive.conf.restricted.list=;hive.security.authorization.sqlstd.confwhitelist=.*;hive.security.authorization.sqlstd.confwhitelist.append=.*;hive.security.authorization.enabled=false;hive.metastore.uris=;hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdConfOnlyAuthorizerFactory;hive.support.concurrency=false;hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager;hive.metastore.rawstore.impl=org.apache.hadoop.hive.metastore.ObjectStore
> Metastore connection Driver : org.apache.hive.jdbc.HiveDriver
> Metastore connection User: APP
> Hive Session ID = e4456457-3dc1-4e47-9ba8-b44b5383d730
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.apache.hadoop.hive.ql.plan.TableDesc.setProperties(TableDesc.java:132)
> at org.apache.hadoop.hive.ql.plan.TableDesc.<init>(TableDesc.java:69)
> at org.apache.hadoop.hive.ql.exec.Utilities.<clinit>(Utilities.java:709)
> at
> org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:865)
> at
> org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:806)
> at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:730)
> at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:683)
> at
> org.apache.hadoop.hive.ql.DriverUtils.setUpSessionState(DriverUtils.java:110)
> at
> org.apache.hadoop.hive.ql.DriverUtils.setUpAndStartSessionState(DriverUtils.java:98)
> at
> org.apache.hadoop.hive.ql.DriverUtils.setUpAndStartSessionState(DriverUtils.java:94)
> at
> org.apache.hive.service.cli.CLIService.applyAuthorizationConfigPolicy(CLIService.java:133)
> at org.apache.hive.service.cli.CLIService.init(CLIService.java:120)
> at
> org.apache.hive.service.cli.thrift.EmbeddedThriftBinaryCLIService.init(EmbeddedThriftBinaryCLIService.java:41)
> at
> org.apache.hive.jdbc.EmbeddedCLIServicePortal.get(EmbeddedCLIServicePortal.java:36)
> at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:387)
> at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:316)
> at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:292)
> at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:94)
> at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
> at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:229)
> at
> org.apache.hadoop.hive.metastore.tools.schematool.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:88)
> at
> org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool.getConnectionToMetastore(MetastoreSchemaTool.java:253)
> at
> org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool.testConnectionToMetastore(MetastoreSchemaTool.java:338)
> at
> org.apache.hadoop.hive.metastore.tools.schematool.SchemaToolTaskInit.execute(SchemaToolTaskInit.java:53)
> at
> org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool.run(MetastoreSchemaTool.java:484)
> at
> org.apache.hive.beeline.schematool.HiveSchemaTool.main(HiveSchemaTool.java:204)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:330)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:245)
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> field private volatile java.lang.String java.net.URI.string accessible:
> module java.base does not "opens java.net" to unnamed module @32e614e9
> at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
> at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
> at
> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
> at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
> at
> org.apache.hadoop.hive.common.StringInternUtils.<clinit>(StringInternUtils.java:57)
> ... 32 more{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)