Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure HDInsight上的配置单元存在证书问题_Azure_Hadoop_Hive_Azure Hdinsight - Fatal编程技术网

Azure HDInsight上的配置单元存在证书问题

Azure HDInsight上的配置单元存在证书问题,azure,hadoop,hive,azure-hdinsight,Azure,Hadoop,Hive,Azure Hdinsight,我本来要通过的,但是我 我通过Get AzureSubscription-Current检查了证书,它给了我: SubscriptionName : Dev SubscriptionId : <CORRECT SUBSCRIPTION ID> <SNIP> IsDefault : False Certificate : [Subject]

我本来要通过的,但是我

我通过
Get AzureSubscription-Current
检查了证书,它给了我:

SubscriptionName          : Dev
SubscriptionId            : <CORRECT SUBSCRIPTION ID>
<SNIP>
IsDefault                 : False
Certificate               : [Subject]
                              CN=Kevin

                            [Issuer]
                              CN=Kevin

                            [Serial Number]
                              <REDACTED>

                            [Not Before]
                              13/05/2013 14:27:18

                            [Not After]
                              19/04/2113 14:27:18

                            [Thumbprint]
                              <THUMBPRINT THAT MATCHES IN AZURE PORTAL WITH DEV SUBSCRIPTION>

CurrentStorageAccountName : <DIFFERENT STORAGE NAME TO THE HDINSIGHT ONE>
ActiveDirectoryUserId     : <MY EMAIL>
TokenProvider             : Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication.AdalTokenProvider
SubscriptionName:Dev
订阅ID:
IsDefault:错误
证书:[主题]
CN=凯文
[发行人]
CN=凯文
[序列号]
[之前没有]
13/05/2013 14:27:18
[不在之后]
19/04/2113 14:27:18
[指纹]
CurrentStorageAccountName:
ActiveDirectoryUserId:
令牌提供程序:Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication.AdalTokenProvider
唯一不匹配的是,上面的
CurrentStorageAccountName
不是我用于HDInsight的,而是在查询中设置的

在此之前,我还成功地执行了
添加AzureAccount

我们最近更改了订阅的名称(但在我创建HDInsight群集及其存储帐户之前),这可能是导致此问题的原因

我确实通过azure门户删除了我的证书并重新发布了它

我现在有点卡住了。

根据这一点,我没有导入azure发布设置文件


通过Publishsettings文件获取Azure管理证书:

在计划使用HDInsight SDK(PowerShell或.Net SDK)的每个工作站上,可以使用以下步骤获取Azure管理证书-

  • 使用您的Windows Azure帐户的凭据登录到Windows Azure管理门户
  • 登录Azure完成且门户打开后,运行Windows Azure PowerShell命令以获取设置文件-

    获取AzurePublishSettingsFile

    Get-AzurePublishSettingsFile cmdlet在[Windows Azure管理门户]上打开一个网页,您可以从该网页下载订阅信息。该信息包含在.publishsettings文件中

  • 通过运行cmdlet导入要由Windows Azure cmdlet使用的Azure设置文件-

    导入AzurePublishSettingsFile'\YourSubscriptionName下载日期凭据。publishsettings'

    此处,
    “\YourSubscriptionName downlodate credentials.publishsettings”是您在步骤2中保存在工作站上的文件

  • Import-AzurePublishSettingsFile cmdlet可完成两件事-

  • 它解析此AzurePublishSettingsFile XML文件,读取证书数据并将该证书安装在本地证书存储中(通常为当前用户/个人)-证书的“Microsoft Azure工具”为“颁发给”和“颁发者”

  • 它会在文件夹“C:\Users\userName\AppData\Roaming\Windows Azure PowerShell”下创建一个名为“WindowsAzureProfile.xml”的文件,该文件包含订阅名称、订阅ID和Azure证书指纹等



  • 现在你知道了。

    不知道为什么这是必要的,因为
    Get AzureSubscription-Current
    显示了适当的位和位。
    SubscriptionName          : Dev
    SubscriptionId            : <CORRECT SUBSCRIPTION ID>
    <SNIP>
    IsDefault                 : False
    Certificate               : [Subject]
                                  CN=Kevin
    
                                [Issuer]
                                  CN=Kevin
    
                                [Serial Number]
                                  <REDACTED>
    
                                [Not Before]
                                  13/05/2013 14:27:18
    
                                [Not After]
                                  19/04/2113 14:27:18
    
                                [Thumbprint]
                                  <THUMBPRINT THAT MATCHES IN AZURE PORTAL WITH DEV SUBSCRIPTION>
    
    CurrentStorageAccountName : <DIFFERENT STORAGE NAME TO THE HDINSIGHT ONE>
    ActiveDirectoryUserId     : <MY EMAIL>
    TokenProvider             : Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication.AdalTokenProvider