HDFS Browse Directory目录显示 Path does exist on HDFS or WebHDFS is disabled.

 

 

在hadoop中新建目录

hdfs dfs -mkdir /usr/dfstest

HDFS系统中Browse Directory目录显示

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

HDFS Browse Directory目录显示 Path does exist on HDFS or WebHDFS is disabled._第1张图片

 这里的/usr/dfstest并不是linux主机上的/usr目录,而是hadoop系统中的/usr目录,查看hadoop系统上是否有这个目录

# 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

可以看到,我的hadoop系统上,创建的目录是/hbase  

若想创建新的目录,则使用命令

# 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

HDFS Browse Directory目录显示 Path does exist on HDFS or WebHDFS is disabled._第2张图片

 

新的目录便创建成功。

你可能感兴趣的:(Linux,hadoop,hdfs,hive)