无法连接到mac os上的hadoop hdfs

ctehm74n  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(412)

我已经在macos系统上安装了hadoop,但未能连接到hdfs。配置文件如下:
core-site.xml:

  1. <configuration>
  2. <property>
  3. <name>hadoop.tmp.dir</name>
  4. <value>/usr/local/Cellar/hadoop/hdfs/tmp</value>
  5. <description>A base for other temporary directories.</description>
  6. </property>
  7. <property>
  8. <name>fs.default.name</name>
  9. <value>hdfs://localhost:9000</value>
  10. </property>
  11. </configuration>

mapred-site.xml:

  1. <configuration>
  2. <property>
  3. <name>mapred.job.tracker</name>
  4. <value>localhost:9010</value>
  5. </property>
  6. </configuration>

hdfs-site.xml:

  1. <configuration>
  2. <property>
  3. <name>dfs.replication</name>
  4. <value>1</value>
  5. </property>
  6. </configuration>

我跑了 /usr/local/opt/hadoop/sbin/start-dfs.sh;/usr/local/opt/hadoop/sbin/start-yarn.sh 启动hadoop。启动后,我得到下面的错误。我做错什么了吗?

  1. $ hadoop fs -ls
  2. 17/05/03 17:00:29 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  3. ls: End of File Exception between local host is: "joeys-macbook-pro.local/10.0.0.41"; destination host is: "localhost":9000; : java.io.EOFException; For more details see: http://wiki.apache.org/hadoop/EOFException

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题