hdfs连接失败

ufj5ltwl  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(419)

我知道这个问题已经讨论过很多次了,但没有一个解决办法对我有效。我仍然得到这个错误。
hadoop版本是2.0.2-alpha

$ jps
24107 NameNode
24314 DataNode
25299 Jps
24720 NodeManager
24520 ResourceManager

$ hdfs dfs ... any command gives me this error 
<command>: Call from jeet/192.168.1.26 to jeet:9000 failed on connection exception: java.net.ConnectException: Connectionrefused;

tcp 0 0 192.168.1.26:9620 0.0.0.0:*侦听24520/java
tcp 0.0.0.0:58932 0.0.0.0:*侦听24720/java
tcp 0.0.0.0:21 0.0.0.0:*侦听26020/vsftpd
tcp 0 0 127.0.1.1:53 0.0.0.0:*侦听1610/dnsmasq
tcp 0.0.0.0:22 0.0.0.0:*侦听614/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:*收听713/cupsd
tcp 0.0.0.0:8088 0.0.0.0:*侦听24520/java
tcp 0.0.0.0:50010 0.0.0.0:*侦听24314/java
tcp 0 0 192.168.1.26:9210 0.0.0.0:*侦听24107/java
tcp 0.0.0.0:50075 0.0.0.0:*侦听24314/java
tcp 0 0 192.168.1.26:9600 0.0.0.0:*侦听24520/java
tcp 0.0.0.0:8033 0.0.0.0:*侦听24520/java
tcp 0.0.0.0:50020 0.0.0.0:*侦听24314/java
tcp 0 0 192.168.1.26:9220 0.0.0.0:*侦听24107/java
tcp 0.0.0.0:8040 0.0.0.0:*侦听24720/java
tcp 0 0 192.168.1.26:9610 0.0.0.0:*侦听24520/java
tcp 0.0.0.0:8042 0.0.0.0:*侦听24720/java
tcp 0.0.0.0:8080 0.0.0.0:*侦听24720/java
tcp 0 0 192.168.1.26:9200 0.0.0.0:*侦听24107/java
tcp6 0 0:::22::*侦听614/sshd
tcp6 0 0:::23::*听11765/xinetd

fslejnso

fslejnso1#

-core-site.xml文件

<property>
    <name>fs.default.name</name>
    <value>hdfs://jeet:9000</value>
    <description>
      The name of the default file system.  Either the
      literal string "local" or a host:port for NDFS.
    </description>
    <final>true</final>
  </property>

  <property>
    <name>fs.trash.interval</name>
    <value>360</value>
    <description>Number of minutes between trash checkpoints.
      If zero, the trash feature is disabled.
    </description>
  </property>

  <property>
    <name>hadoop.security.groups.cache.secs</name>
    <value>14400</value>
  </property>

  <property>
    <name>hadoop.tmp.dir</name>
    <value>/app/hadoop/tmp</value>
    <description>
     Temporary directories.
    </description>
  </property>

相关问题