namenode启动错误:scheme:ht没有文件系统

5gfr0r5j  于 2021-06-01  发布在  Hadoop
关注(0)|答案(1)|浏览(371)

我在HDP2.6。当我尝试启动namenode时,出现以下错误:

  1. java.io.IOException: No FileSystem for scheme: http
  2. at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2786)
  3. at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2793)
  4. at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)

当我尝试hdfs ls命令时:

  1. [hdfs@ambariserver ambari-agent]$ hdfs dfs -ls /
  2. ls: No FileSystem for scheme: http

有什么建议吗?

hwamh0ep

hwamh0ep1#

“这个” No FileSystem for scheme: http “错误发生在 fs.defaultFS 中的属性值 core-site.xml 使用 http 协议(代替 hdfs )也就是说,价值看起来像 http://<host>:<port> . 正确值为 hdfs://<host>:<port>

相关问题