Cloud Data Access
Also available as:
loading table of contents...

Referencing WASB in the URLs

Regardless of which specific Hadoop ecosystem application you are using, you can access data stored in WASB using the URL starting with the wasb:// prefix.

The URL structure is:


For example, to access a file called "testfile" located in a directory called "testdir", stored in the container called "testcontainer" on the account called "hortonworks", the URL is:


You can also use wasbs prefix to utilize SSL-encrypted HTTPS access:


For example, the following Hadoop FileSystem shell commands demonstrate access to a storage account named myaccount and a container named mycontainer:

hadoop fs -ls wasb://

hadoop fs -mkdir wasb://

hadoop fs -put testFile wasb://

hadoop fs -cat wasb://
test file content

It is also possible to configure fs.defaultFS to use a wasb or wasbs URL. This causes all bare paths, such as /testDir/testFile to resolve automatically to that file system.