当先锋百科网

首页 1 2 3 4 5 6 7

No rows affected (0 seconds)
0: jdbc:mysql://hive2-meta-1.ccqa5e4vmj6e.us->
No rows affected (0 seconds)
0: jdbc:mysql://hive2-meta-1.ccqa5e4vmj6e.us-> CREATE TABLE CTLGS ( CTLG_ID BIGINT PRIMARY KEY, NAME VARCHAR(256), DESC VARCHAR(4000), LOCATION_URI VARCHAR(4000) NOT NULL, UNIQUE KEY UNIQUE_CATALOG (NAME) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
Error: (conn=560472) Table ‘CTLGS’ already exists (state=42S01,code=1050)
Closing: 0: jdbc:mysql://hive2-meta-1.ccqa5e4vmj6e.us-east-1.rds.amazonaws.com:3306/hivebaknew?createDatabaseIfNotExist=true
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent!
Underlying cause: java.io.IOException : Schema script failed, errorcode 2
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent!
at org.apache.hive.beeline.schematool.HiveSchemaToolTaskInit.execute(HiveSchemaToolTaskInit.java:66)
at org.apache.hive.beeline.schematool.HiveSchemaTool.main(HiveSchemaTool.java:353)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
Caused by: java.io.IOException: Schema script failed, errorcode 2
at org.apache.hive.beeline.schematool.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:262)
at org.apache.hive.beeline.schematool.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:240)
at org.apache.hive.beeline.schematool.HiveSchemaToolTaskInit.execute(HiveSchemaToolTaskInit.java:62)
… 7 more
*** schemaTool failed ***
java.sql.SQLSyntaxErrorException: (conn=560236) Unknown column ‘B0.CTLG_NAME’ in ‘where clause’)
是因为hudi-utilities-bundle_2.11-0.7.0.jar 和 hive-standalone-metastore-3.1.0.jar依赖冲突导致,需要把hive/lib/hudi-utilities-bundle_2.11-0.7.0.jar 去掉,不然会默认采用hudi这个jar解析元数据的定义