我在访问时收到此错误
http://localhost:50070/webhdfs/v1
{
"RemoteException":
"exception":"UnsupportedOperationException",
"javaClassName":"java.lang.UnsupportedOperationException",
"message":"op=NULL is not supported"
}
我已经在hdfs-site中设置了webhdfs true.xml如何解决这个问题?
仅供参考
我不使用CDH发行版,只使用apache Hadoop。
这是因为
您没有调用任何 api。
检查 http://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/WebHDFS.html
例如:
要列出路径/test 中的目录,可以使用以下命令,
http://localhost:50070/webhdfs/v1/test?op=LISTSTATUS