在hadoop中安装hive之后,出现以下错误。
Logging initialized using configuration in
jar:file:/usr/local/hive/lib/hive-common-2.0.0.jar!/hive-log4j2.properties
Exception in thread "main" java.lang.RuntimeException: 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)
我已经尝试了很多,但无法进入 hive 终端。谁能帮我?
最佳答案
我认为您可能必须为MySql创建新用户。请遵循以下步骤:
CREATE USER 'name_of_the_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'name_of_the_user'@'localhost' WITH GRANT OPTION;
CREATE USER 'name_of_the_user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'name_of_the_user'@'%' WITH GRANT OPTION;
关于ubuntu - 在Ubuntu中的hadoop中安装Hive时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36513533/