[root@node3 hive-2.3.4]# schematool -dbType mysql -initSchema SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/hive-2.3.4/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/hadoop-2.6.5/share/hadoop/common/lib/slf4j-log4j12-1.7.5.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] Metastore connection URL: jdbc:mysql://node1:3306/hive?createDatabaseIfNotExist=true Metastore Connection Driver : com.mysql.jdbc.Driver Metastore connection User: root Starting metastore schema initialization to 2.3.0 Initialization script hive-schema-2.3.0.mysql.sql Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061) org.apache.hadoop.hive.metastore.HiveMetaException: 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 ***
Cause: hive failed to initialize the metadatabase
Solution: delete the metadatabase for the hive database in hive-site.xml
Then go to mysql: mysql -uroot -p your password
drop database hive
Exit mysql to reformat
schematool -initSchema -dbType mysql
Read More:
- Hive Error: FAILED: LockException [Error 10280]: Error communicating with the metastore
- [Solved] Error: The slice reducer for key “auth“ returned undefined during initialization. If the state pas
- [Solved] hive Caused by: MetaException(message:Version information not found in metastore. )
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- ABAP: Overbooking BAPI_ACC_DOCUMENT_POST error reported FI/CO interface: inconsistent FI/CO voucher header data to be updated
- [Solved] Initialization error encountered by JUnit unit test: Method initialization error not found
- [Solved] RuntimeError: Error(s) in loading state_dict for FasterRCNN: Missing key(s) in state_dict:……
- [Solved] Hive 2.3.9 Error: Error: Unrecognized column type: UNIONTYPE (state=,code=0)
- How to Solve Android jetpack Room Schema export Error
- Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- Debug Error: Failed to fetch current robot state [How to Solve]
- Initial installation of hive-2.1.0 startup error problem solution
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- [Solved] MindSpore Error: “RuntimeError: Unexpected error. Inconsistent batch..
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby
- [Solved] Postcss Error: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- [Solved] Segyio Error: Runtime Error trace count inconsistent with file size, trace lengths … #401
- [Solved] ora 01033 linux,ORA-01033: ORACLE initialization or shutdown in progres
- [Solved] Springcloud Add gateway to Startup Error: Exception encountered during context initialization – cancelling refresh