-rw-r--r--. 1 root root 2662 3月 9 2017 parquet-logging.properties
[root@hive1 conf]# schematool -initSchema -dbType mysql
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/export/apache-hive-2.3.7-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/export/hadoop-2.7.4/share/hadoop/common/lib/slf4j-log4j12-1.7.10.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://localhost:3306/hive?createDatabaseIfNOtExist=true&useSSL=false
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: root
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
Underlying cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException : Unknown error 1049
SQL Error code: 1049
Use --verbose for detailed stacktrace.
*** schemaTool failed ***

hive中MySQL初始化
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- CSDN专家-微编程 2022-03-16 22:29关注
配置文件的问题吧,首先指定了初始化数据库是hive,你有没有在你的mysql里面创建一个hive的空数据库呢?配置文件里面有没有中文注释如果有的话删除,然后重新初始化
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报