我进去的时候 hadoop fs -put Pras.txt
我面对这个错误
put: Call From LAPTOP-EOKJS2KE/192.168.56.1 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused: no further information
我在hdfs-site.xml中对此进行了编辑
hdfs-site.xml文件
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>C:\hadoop\data\namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>C:\hadoop\data\datanode</value>
</property>
</configuration>
并在core-site.xml中对此进行了编辑
core-site.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
暂无答案!
目前还没有任何答案,快来回答吧!