Unable to connect with azure blob storage with local hadoop

匿名 (未验证) 提交于 2019-12-03 03:00:02

问题:

While trying to connect the local hadoop with the AZURE BLOB storage (ie using the blob storage as HDFS)with Hadoop Version - 2.7.1, It throws exception

Here i have successfully formed the local cluster by setting the property

<property>     <name>fs.default.name</name>     <value>wasb://account@storage.blob.core.windows.net</value> </property> 

and followed by its key value for blob storage in core-site.xml.

while listing the file or making HDFS operations to the blob storage,getting the follwing Exception as

 ls: No FileSystem for scheme: wasb 

Anyone please guide me to resolve the above issue.

回答1:

  1. You need to add hadoop-azure.jar in the hadoop classpath.
  2. Download azure-storage-java project and build it using maven then you will get azure-storage-3.0.0.jar. Add the built jar in hadoop classpath.

Now you can do all the operations. Refer Azure Blob Storage documentation for more information.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!