Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061) ----Hive schematool -initSchema
2018-02-07 11:53
513 查看
当我们输入./schematool -initSchema -dbType mysql的时候,会出现以下错误
Metastore connection URL: jdbc:mysql://192.168.*./hive?createDatabaseIfNotExist=true
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: hiveuser
Starting metastore schema initialization to 2.1.0
Initialization script hive-schema-2.1.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 *
以上错误查看mysql是否已经创建了hive这个表, 如果创建,你想从新安装的话,把那个你创建的表删了即可。
Metastore connection URL: jdbc:mysql://192.168.*./hive?createDatabaseIfNotExist=true
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: hiveuser
Starting metastore schema initialization to 2.1.0
Initialization script hive-schema-2.1.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 *
以上错误查看mysql是否已经创建了hive这个表, 如果创建,你想从新安装的话,把那个你创建的表删了即可。
相关文章推荐
- Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061)
- SQLSTATE[42000]: Syntax error or access violation: 1055 'kf_local.g.group_name' isn't in GROUP BY
- ERROR:duplicate key in table MYsql
- 解决gitosis.init.InsecureSSHKeyUsername: Username contains not allowed characters问题
- Translating SQLException with SQL state '42000', error code '1064', message [You have an error in yo
- 'E11000 duplicate key error collection: moviesProject.users index: username_1 dup key: { : null }
- WebSphere : Unknown column name STATUS. ERRORCODE=-4460, SQLSTATE=null
- e11000-duplicate-key-error-index-in-mongodb-mongoose
- ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint
- mysql删除主键重复ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key con
- Mybatis SQLException with Error code '911', Extracted SQL state class '42' from value '42000'
- Translating SQLException with SQL state '42000', error code '1064', message [You have an error in yo
- 解决myql Error Code : 1060 Duplicate column name 'xxx' 问题
- Laravel5.5问题:SQLSTATE[42000] Syntax error or access violation 1071 Specified key was too long; max k
- java.lang.ClassFormatError Duplicate field name&signature in class file XXXXXX
- ERROR 1062 (23000) at line 26903: Duplicate entry 'onli????' for key 'xxxx_script_name'
- Duplicate entry '1000094731-2' for key 'PRIMARY', Error_code: 1062;
- SQL Error: 957, SQLState: 42000 & ORA-00957: duplicate column name
- osm2pgsql导入duplicate key error in slim mode
- code sign error doesn't match any valid certificate private key pair in the default keych 错误的解决办法