HDFS Browse Directory shows Path does exist on HDFS or WebHDFS is disabled.

 

 

Create a new directory in hadoop

hdfs dfs -mkdir /usr/dfstest

Browse Directory directory display in HDFS system

Path does not exist on HDFS or WebHDFS is disabled. Please check your path or enable WebHDFS

 The /usr/dfstest here is not the /usr directory on the linux host, but the /usr directory in the hadoop system, check whether this directory exists on the hadoop system

# hdfs dfs -ls /                    
23/02/24 14:53:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 1 items
drwxr-xr-x   - yunwei supergroup          0 2023-02-24 14:39 /hbase

As you can see, on my hadoop system, the created directory is /hbase  

To create a new directory, use the command

# hdfs dfs -mkdir /usr
23/02/24 14:55:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

# ​​​hdfs dfs -ls /
23/02/24 14:55:53 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 2 items
drwxr-xr-x   - yunwei supergroup          0 2023-02-24 14:39 /hbase
drwxr-xr-x   - yunwei supergroup          0 2023-02-24 14:55 /usr

 

The new directory is created successfully.

Guess you like

Origin blog.csdn.net/red_sky_blue/article/details/129200770
Recommended