首页 > 解决方案 > 在 HDInsight 中添加 Azure Government 存储帐户

问题描述

我在 Azure 政府中有一个 HDInsight 群集,并且想要添加一个位于 Azure 政府中的额外存储帐户。我正在尝试通过门户的脚本操作 > + 提交新 > 添加 Azure 存储帐户并提供我的 Azure 政府存储帐户的名称和密钥来执行此操作。这失败并出现错误(来自集群的输出文件/var/lib/ambari-agent/data/output-XXXX.txt):

Key encryption is enabled STORAGE ACCOUNT IS: testgovwebiaasdiag
Validate storage account creds: Invalid Credentials provided for
storage account ('Start downloading script locally: ',

u'https://hdiconfigactions.blob.core.windows.net/linuxaddstorageaccountv01/add-storage-account-v01.sh')
Fromdos line ending conversion successful ('Unexpected error:',
"('Execution of custom script failed with exit code', 139)")

查看“<a href="https://docs.microsoft.com/azure/hdinsight/hdinsight-hadoop-add-storage" rel="nofollow noreferrer">向 HDInsight 添加其他存储帐户”的文档,有没有迹象表明此脚本支持 Azure 政府。推荐的前进道路是什么?我应该下载脚本并修改它吗?如果是这样,需要哪些修改来支持 Azure 政府?

标签: azureazure-storageazure-hdinsightazure-gov

解决方案


目前,开箱即用的“向 HDInsight 添加其他存储帐户”脚本不支持 Azure Government

这是因为它不允许为不同的 Azure Government 端点设置存储端点

我创建了这个支持 Azure 政府的脚本。它是开箱即用的修改版本,用 Azure 政府的端点覆盖端点。

您可以通过Script Actions > + Submit New > - Custom使用此脚本,并在Bash 脚本 URI 中提供此URI 。然后,您可以提供相同的参数、存储帐户名称和存储帐户密钥并运行您的脚本。

要在开箱即用的脚本中获得对 Azure 政府的支持,请在Azure 政府反馈论坛中投票:支持 HDInsight 中的 Azure 政府存储帐户


推荐阅读