Hi MichaelCampbell-7305
Error: WARN fs.FileSystem: Failed to initialize filesystem wasb:///: java.lang.IllegalArgumentException: Cannot initialize WASB file system, URI authority not recognized. -ls: Cannot initialize WASB file system, URI authority not recognized.
This error occurs because the hadoop fs
command is not able to recognize the wasb
protocol. To fix this, you need to add the hadoop-azure
JAR file to the classpath of your Hadoop installation.
Adding high level steps:
Download the hadoop-azure
JAR file from the Apache Hadoop website. Make sure to download the version that matches the Hadoop version you are using.
Copy the JAR file to the lib
directory of your Hadoop installation. For example, if your Hadoop installation is located at /usr/local/hadoop
, you can copy the JAR file to /usr/local/hadoop/lib
.
Set the HADOOP_CLASSPATH
environment variable to include the path to the hadoop-azure
JAR file.
Reload your .bashrc
file by running the following command. This will make the HADOOP_CLASSPATH
environment variable available in your current terminal session.
Try running the hadoop fs
command again.
If you still get an error, I recommend checking with support.