访问webhdfs时不支持操作异常

5vf7fwbs  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(838)

我在访问时遇到这个错误

http://localhost:50070/webhdfs/v1

{
"RemoteException": 
"exception":"UnsupportedOperationException",
"javaClassName":"java.lang.UnsupportedOperationException",
"message":"op=NULL is not supported"
}

我已经在hdfs-site.xml中将webhdfs设置为true如何解决这个问题?
仅供参考
我不使用cdh发行版,只使用apachehadoop。

b09cbbtk

b09cbbtk1#

这是因为您没有调用任何api。
检查http://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/webhdfs.html
例如:
要从path/test列出目录,可以使用以下命令,
http://localhost:50070/webhdfs/v1/test?op=liststatus

相关问题