【问题标题】:EMR cluster with external MySQL as Hive metastore使用外部 MySQL 作为 Hive 元存储的 EMR 集群
【发布时间】: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


    【解决方案1】:

    存在一些 AWS 安全组问题。通过允许访问 MySQL 端口,我解决了这个问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-12
      • 1970-01-01
      • 2016-10-24
      • 1970-01-01
      相关资源
      最近更新 更多