gpt4 book ai didi

ubuntu - 在Ubuntu中的hadoop中安装Hive时出错

转载 作者:行者123 更新时间:2023-12-02 22:04:09 25 4
gpt4 key购买 nike

在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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com