启动hive之前需要初始化hive元数据

hive命令报错:
Exception in thread “main” java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType …) to create the schema. If needed, don’t forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql))

解决命令
schematool -initSchema -dbType mysql

发布了46 篇原创文章 · 获赞 2 · 访问量 9372

猜你喜欢

转载自blog.csdn.net/qq_33009107/article/details/102674093
今日推荐