所访问的帐户不支持 Azure HDInsight 中的 http 错误The account being accessed does not support http error in Azure HDInsight

本文介绍在与 Azure HDInsight 群集交互时出现的问题的故障排除步骤和可能的解决方案。This article describes troubleshooting steps and possible resolutions for issues when interacting with Azure HDInsight clusters.

问题Issue

收到以下错误消息:The following error message is received:

com.microsoft.azure.storage.StorageException: The account being accessed does not support http.

原因Cause

收到错误消息的原因有多种:There are multiple reasons why the error message is received:

  • 存储帐户已启用安全传输,但使用的 URI 方案不正确。The storage account has secure transfer enabled and the incorrect URI scheme is being used.

  • 已使用禁用 安全传输的存储帐户创建了群集。A cluster was created with a storage account that had secure transfer disabled. 此后在存储帐户上启用了安全传输。Thereafter, secure transfer was enabled on the storage account.

解决方法Resolution

如果为 Azure 存储或 Data Lake Storage Gen2 启用了安全传输,则 URI 分别是 wasbs://abfss://If secure transfer is enabled for Azure Storage or Data Lake Storage Gen2, the URI would be wasbs:// or abfss://, respectively. 另请参阅安全传输See also, secure transfer.

对于新群集,请使用已经有所需安全传输设置的存储帐户。For new clusters, use a storage account that already has the desired secure transfer setting. 请勿更改现有群集所用存储帐户的安全传输设置。Do not change the secure transfer setting for a storage account that is in use by an existing cluster.

后续步骤Next steps

如果你的问题未在本文中列出,或者无法解决问题,请访问以下渠道获取更多支持:If you didn't see your problem or are unable to solve your issue, visit the following channel for more support:

  • 如果需要更多帮助,可以从 Azure 门户提交支持请求。If you need more help, you can submit a support request from the Azure portal.