azure - 在 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 政府?
解决方案
目前,开箱即用的“向 HDInsight 添加其他存储帐户”脚本不支持 Azure Government。
这是因为它不允许为不同的 Azure Government 端点设置存储端点。
我创建了这个支持 Azure 政府的脚本。它是开箱即用的修改版本,用 Azure 政府的端点覆盖端点。
您可以通过Script Actions > + Submit New > - Custom使用此脚本,并在Bash 脚本 URI 中提供此URI 。然后,您可以提供相同的参数、存储帐户名称和存储帐户密钥并运行您的脚本。
要在开箱即用的脚本中获得对 Azure 政府的支持,请在Azure 政府反馈论坛中投票:支持 HDInsight 中的 Azure 政府存储帐户
推荐阅读
- postgresql - 运行 vaccum 后,哨兵数据库变大并且没有减少
- vue.js - 如何禁用b表标题排序功能并通过自定义排序对列进行排序
- prestashop - 拒绝访问我在 prestashop 中的自定义模块
- ignite - Apache Ignite 2.11.0 启动错误“没有匹配的构造函数类 org.eclipse.jetty.server.Server”与 ignited-rest-http
- ethereum - 我如何专门隐藏“private_key”以免被所有人查看,因为每件事都存储在数组中,包括 private_key
- reactjs - 克服 x-Frame-Options 约束
- python - 如何使用 QNA 和 Sharepoint 配置将 python azure 聊天机器人部署到 azure 应用服务?
- powershell - PowershellScript:在线存档 Office 365 的项目计数结果不正确
- docker - 容器无法连接其他容器
- node.js - NodeJS 连接到 SQL Server getaddrinfo ENOTFOUNT