【发布时间】:2016-08-13 10:03:55
【问题描述】:
我正在尝试使用外部 MySQL 作为 Hive 元存储来设置 EMR 集群。 我在 EC2 机器上创建了 MySQL 数据库“元存储”,并在下面的 hive-site.xml 中使用
<configuration> <property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://10.10.xxx.xxx:3306/metastore?createDatabaseIfNotExist=true</value>
<description>JDBC connect string for a JDBC metastore</description> </property> <property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hiveuser</value>
<description>Username to use against metastore database</description> </property> <property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>xxxxxx</value>
<description>Password to use against metastore database</description> </property> </configuration>
集群创建失败并出现以下错误(来自 stderr 文件的日志)
org.apache.hadoop.hive.metastore.HiveMetaException: 获取失败 架构版本。 * schemaTool 失败 org.apache.hadoop.hive.metastore.HiveMetaException: 获取失败 架构版本。 schemaTool 失败 * /mnt/var/lib/hadoop/steps/s-xxxxxxxxx/./hive-script:617: 错误 执行 cmd: /usr/share/aws/emr/scripts/hive-script "--install-hive" "--base-path" "s3://us-west-2.elasticmapreduce/libs/hive" "--hive-versionsCommand 以 ret '1' 退出
请帮忙。
【问题讨论】:
标签: amazon-web-services emr amazon-emr