要允许Microstrategy等BI工具使用Spark SQL访问AWS EMR集群上的数据,您必须向hive-site.xml添加属性 我们使用CloudFormation模板自动提升EMR集群,但是在此过程中没有找到正确的方法(除了编写步骤之外)来更改xml。 你有什么建议吗?
答案 0 :(得分:1)
您可以使用配置API在启动期间更改设置。您需要的分类是" hive-site"。例如:
{
"Classification": "hive-site",
"Properties": {
"javax.jdo.option.ConnectionURL": "jdbc:mysql:\/\/hostname:3306\/hive?createDatabaseIfNotExist=true",
"javax.jdo.option.ConnectionDriverName": "org.mariadb.jdbc.Driver",
"javax.jdo.option.ConnectionUserName": "username",
"javax.jdo.option.ConnectionPassword": "password"
}
}