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

标签 ubuntu hadoop hive

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

相关文章:

java - hadoop map reduce 程序未运行不受支持的 major.minor 版本

java - 使用 hadoop 运行一个 jar 示例文件

hadoop - Hive作业在减少阶段永远运行

Ubuntu 中的 Java 类路径问题

session - session 化的Web日志,获取上一个和下一个域

hadoop - 配置单元分区文件夹导入到另一个表后更改

hadoop - 在引擎盖下? PIG 在哪里保存中间结果/关系数据。?

ruby-on-rails - Rake 任务提示不安全的可写目录

cakephp - Ubuntu 14.04 中 CakePHP shell 的问题

python - docker pip install 不适用于需求文件