无法在Mac OS上连接到hadoop hdfs

时间:2017-05-03 07:02:07

标签: hadoop

我在MacOS系统上安装了hadoop但无法连接到hdfs。以下是配置文件:

核心-site.xml中:

<configuration>  
<property>
     <name>hadoop.tmp.dir</name>
     <value>/usr/local/Cellar/hadoop/hdfs/tmp</value>
     <description>A base for other temporary directories.</description>
  </property>
  <property>
     <name>fs.default.name</name>                                     
     <value>hdfs://localhost:9000</value>                             
  </property>
</configuration> 

mapred-site.xml中:

<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9010</value>
</property>
</configuration>

HDFS-site.xml中:

<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>

我运行/usr/local/opt/hadoop/sbin/start-dfs.sh;/usr/local/opt/hadoop/sbin/start-yarn.sh来启动hadoop。启动后,我得到了以下错误。有什么我做错了吗?

$ hadoop fs -ls
17/05/03 17:00:29 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
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

0 个答案:

没有答案