1

我在 HDP 2.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

有什么建议吗?

4

1 回答 1

0

The "No FileSystem for scheme: http" error occurs when fs.defaultFS property value in core-site.xml uses http protocol (instead of hdfs) i.e. value look like http://<host>:<port>. Correct value is hdfs://<host>:<port>

于 2017-07-07T18:11:49.193 回答