我在HDP2.6。当我尝试启动namenode时,出现以下错误:
java.io.IOException: No FileSystem for scheme: http
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2786)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2793)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)
当我尝试hdfs ls命令时:
[hdfs@ambariserver ambari-agent]$ hdfs dfs -ls /
ls: No FileSystem for scheme: http
有什么建议吗?
1条答案
按热度按时间hwamh0ep1#
“这个”
No FileSystem for scheme: http
“错误发生在fs.defaultFS
中的属性值core-site.xml
使用http
协议(代替hdfs
)也就是说,价值看起来像http://<host>:<port>
. 正确值为hdfs://<host>:<port>