将WebHDFS与Data Lake v1存储(Gen1存储)一起使用时出错。 [英] Error using WebHDFS with Data Lake v1 storage (Gen1 storage).

查看:59
本文介绍了将WebHDFS与Data Lake v1存储(Gen1存储)一起使用时出错。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用带有"通用v1存储"的WebHDFS调用时遇到问题。 (Gen1存储)。



我已使用以下curl-call成功生成了Access令牌


 curl -X POST -H" Content-Type:application / x-www-form-urlencoded" --data" client_id =< CLIENT_ID>" --data-urlencode" client_secret =< CLIENT_SECRET>" --data-urlencode" scope = https://storage.azure.com/.default" --data-urlencode" grant_type = client_credentials" https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token 


解决方案

我在Postman中测试了这个,你需要进行两次更改。


1。对于令牌,请在正文中添加以下内容


resource =" https://management.core.windows.net/"


2。在调用PUT时使用此  https:/ /azureaccount.azuredatalakestore.net/webhdfs/v1/mydata?op=MKDIRS



I'm having problems using WebHDFS-calls with a "general purpose v1 storage" (Gen1 storage).

I have successfully generated an Access-token using the following curl-call

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" --data "client_id=<CLIENT_ID>" --data-urlencode "client_secret=<CLIENT_SECRET>" --data-urlencode "scope=https://storage.azure.com/.default" --data-urlencode "grant_type=client_credentials" https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token

解决方案

I did tested this in Postman and you need to make two changes .

1. For the token add the below in the body 

resource ="https://management.core.windows.net/"

2. While calling the PUT use this https://azureaccount.azuredatalakestore.net/webhdfs/v1/mydata?op=MKDIRS


这篇关于将WebHDFS与Data Lake v1存储(Gen1存储)一起使用时出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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