【问题标题】:Port in the core-site.xml filecore-site.xml 文件中的端口
【发布时间】:2013-02-17 18:19:07
【问题描述】:

我尝试通过命令在HDFS的文件系统中创建文件夹

./hadoop fs -mkdir /user/hadoop

结果我收到了以下消息

13/02/17 09:45:50 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 0 time(s).
13/02/17 09:45:51 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 1 time(s).
13/02/17 09:45:52 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 2 time(s).
13/02/17 09:45:53 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 3 time(s).
13/02/17 09:45:54 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 4 time(s).
13/02/17 09:45:55 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 5 time(s).
13/02/17 09:45:56 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 6 time(s).
13/02/17 09:45:57 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 7 time(s).
13/02/17 09:45:58 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 8 time(s).
13/02/17 09:45:59 INFO ipc.Client: Retrying connect to server: one/192.168.1.8:9000. Already tried 9 time(s).
Bad connection to FS. command aborted. exception: Call to one/192.168.1.8:9000 failed on connection exception: java.net.ConnectException: Connection refused 

在 /export/hadoop-1.0.1/conf/core-site.xml 文件中指定了以下内容:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<property>
 <name>fs.default.name</name>
 <value>hdfs://192.168.1.8:9000</value>
</property>

</configuration>

想指定——我指定的端口是否正确?如果不存在,请说明需要什么?

【问题讨论】:

  • 您能否确认名称节​​点在 192.168.1.8 和端口 9000 上运行?

标签: linux hadoop mapreduce port hdfs


【解决方案1】:

似乎 hadoop 守护进程没有运行。与 jps 核实

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-03
    • 2019-11-07
    • 1970-01-01
    • 2017-05-20
    • 2020-08-29
    相关资源
    最近更新 更多