执行hive命令报错,提示:Hive metastore database is not initialized

提问者:帅平 问题分类:大数据
执行hive命令报错,提示:
FAILED: SemanticException 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))
1 个回答
自然萌鹿鹿
自然萌鹿鹿
这是没有初始化mysql,在hive的bin目录下执行如下的sql语句初始化一下:
./schematool -dbType mysql -initSchema
发布于:1个月前 (03-22) IP属地:四川省
我来回答