Test access to WASB
To test access to WASB, SSH to a cluster node and run a few hadoop fs shell commands against your existing WASB account.
To test access, SSH to any cluster node and switch to the hdfs user by using
sudo su hdfs.
WASB access path syntax 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:
The following Hadoop FileSystem shell commands demonstrate access to a storage account named "myaccount" and a container named "mycontainer":
hadoop fs -ls wasb://firstname.lastname@example.org/ hadoop fs -mkdir wasb://email@example.com/testDir hadoop fs -put testFile wasb://firstname.lastname@example.org/testDir/testFile hadoop fs -cat wasb://email@example.com/testDir/testFile test file content
For more information about configuring the ADLS connector and working with data stored in ADLS, refer to Cloud Data Access HDP documentation.