linux - core-site.xml 文件中的端口

标签 linux hadoop mapreduce port hdfs

我尝试通过命令在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>

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

最佳答案

hadoop 守护进程似乎没有运行。检查 jps

关于linux - core-site.xml 文件中的端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14924399/

相关文章:

eclipse - 如何在Ubuntu上的Eclipse Luna上安装Map Reduce插件

hadoop - 将mapreduce中间输出存储在远程服务器上

python - 从终端杀死linux中的python解释器

linux - 使用 shell 脚本将文件从目录复制到任何 USB

linux - bash脚本: using "script" command to write console output to a file in real time

hadoop - Hive为什么要在本地文件系统中创建表

linux - 如何设置GAE_SDK_ROOT环境变量?

sql - 使用Sqoop导入hadoop时如何识别sql server中删除的记录

python - 限制大 RDD

hadoop - hadoop 如何处理非常大的单个拆分文件