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://email@example.com/ hadoop fs -mkdir wasb://firstname.lastname@example.org/testDir hadoop fs -put testFile wasb://email@example.com/testDir/testFile hadoop fs -cat wasb://firstname.lastname@example.org/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.