AzureException:无法使用匿名凭据访问容器中,并没有在配置中找到他们的凭据 [英] AzureException: Unable to access container using anonymous credentials, and no credentials found for them in the configuration

查看:461
本文介绍了AzureException:无法使用匿名凭据访问容器中,并没有在配置中找到他们的凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Azure的HDInsight Hadoop的。我登录到集群通过ssh和运行以下

I am trying to use Hadoop of Azure HDInsight. I am logging into the cluster by ssh and running the following

Hadoop的JAR jar_name都CLASS_NAME wasb://container@storagename.core.windows.net/inputdir wasb://container@storagename.core.windows.net/outputdir

hadoop jar jar_name class_name wasb://container@storagename.core.windows.net/inputdir wasb://container@storagename.core.windows.net/outputdir

但我得到了以下异常:

异常线程mainorg.apache.hadoop.fs.azure.AzureException:org.apache.hadoop.fs.azure.AzureException:无法使用匿名凭据访问容器XXX帐户yyy.core.windows.net ,并没有发现任何凭据他们的配置。

Exception in thread "main" org.apache.hadoop.fs.azure.AzureException: org.apache.hadoop.fs.azure.AzureException: Unable to access container xxx in account yyy.core.windows.net using anonymous credentials, and no credentials found for them in the configuration.

我使用的蔚蓝CLI和我跑上述的Hadoop作业前跑蔚蓝登陆。

I am using azure cli and I ran "azure login" before running the above mentioned hadoop job.

请让我知道如何可以解决此错误。

Please let me know how I can fix this error.

的Ubuntu 12.04在这些机器上运行。

Ubuntu 12.04 runs on these machines.

PS:此发布在Azure上论坛以及,但在这里重新发布它来获得更广泛的受众。

PS: posted this on Azure forums as well, but reposting it here to get broader audience.

推荐答案

编辑:
您的存储位置应wasb://container@storageacctname.blob.core.windows.net/inputdir

Your storage location should be wasb://container@storageacctname.blob.core.windows.net/inputdir

这听起来像您的群集未连接到该存储帐户。重新创建群集,并确保持有罐子帐户连接到群集。否则,将您的罐子所连接的存储帐户!

It sounds like your cluster is not attached to that storage account. Recreate your cluster and make sure that the account that holds the jar is attached to the cluster. Otherwise, move your jar to a storage account that is connected!

这篇关于AzureException:无法使用匿名凭据访问容器中,并没有在配置中找到他们的凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆