ayushtkn commented on PR #5859:
URL: https://github.com/apache/hive/pull/5859#issuecomment-2979976869

   @abstractdog Are you looking for this :-)
   ```
   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-16T20:51:52.848390Z 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-16T20:51:52.908646Z main INFO Starting configuration 
org.apache.logging.log4j.core.config.properties.PropertiesConfiguration@56673b2c...
   2025-06-16T20:51:52.908753Z 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-16T20:51:52.908952Z main INFO Configuration 
org.apache.logging.log4j.core.config.properties.PropertiesConfiguration@56673b2c
 started.
   2025-06-16T20:51:52.910037Z main INFO Stopping configuration 
org.apache.logging.log4j.core.config.DefaultConfiguration@3d5c822d...
   2025-06-16T20:51:52.910209Z main INFO Configuration 
org.apache.logging.log4j.core.config.DefaultConfiguration@3d5c822d 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 = bd67b1bc-3dcb-4645-99da-d29d516920d5
   Starting metastore schema initialization to 4.1.0
   Initialization script hive-schema-4.1.0.hive.sql
   Hive Session ID = 9479a44c-4250-4269-90a1-368b1c70f8aa
   2025-06-16T20:51:56.103786Z main ERROR Log4j2 ConfigurationScheduler 
attempted to increment scheduled items after start
   
   
   FAILED: Hive Internal Error: 
java.lang.NoClassDefFoundError(org/apache/tez/dag/history/logging/proto/DatePartitionedLogger)
   java.lang.NoClassDefFoundError: 
org/apache/tez/dag/history/logging/proto/DatePartitionedLogger
        at 
org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook$EventLogger.<init>(HiveProtoLoggingHook.java:207)
        at 
org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook$EventLogger.getInstance(HiveProtoLoggingHook.java:545)
        at 
org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook.run(HiveProtoLoggingHook.java:557)
        at 
org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:269)
        at org.apache.hadoop.hive.ql.HookRunner.runPreHooks(HookRunner.java:248)
        at 
org.apache.hadoop.hive.ql.Executor.preExecutionActions(Executor.java:153)
        at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:101)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:345)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:189)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:142)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:137)
        at 
org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:190)
        at 
org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:234)
        at 
org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:334)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
        at java.base/javax.security.auth.Subject.doAs(Subject.java:439)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1953)
        at 
org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:354)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.tez.dag.history.logging.proto.DatePartitionedLogger
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
        ... 23 more
   
   Error: Error while compiling statement: FAILED: Hive Internal Error: 
java.lang.NoClassDefFoundError(org/apache/tez/dag/history/logging/proto/DatePartitionedLogger);
 Query ID: ayushsaxena_20250617022156_76f0c477-9e01-47ae-a564-c3ab0a1f9472 
(state=08S01,code=12)
   Schema initialization FAILED! Metastore state would be inconsistent!
   Underlying cause: java.io.IOException : Schema script failed, errorcode 2
   Use --verbose for detailed stacktrace.
   *** schemaTool failed ***
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to