执行“hdfs dfs -ls”时报ConnectException
来源:互联网 发布:js注释 summary 编辑:程序博客网 时间:2024/05/21 10:22
原因可能是指定的端口号9000不对,该端口号由hdfs-site.xml中的属性“dfs.namenode.rpc-address”指定,即为NameNode的RPC服务端口号。
文件上传后,被存储在DataNode的data(由DataNode的hdfs-site.xml中的属性“dfs.datanode.data.dir”指定)目录下,如:
$HADOOP_HOME/data/current/BP-139798373-172.25.40.171-1397735615751/current/finalized/blk_1073741825
文件名中的“blk”是block,即块的意思,默认情况下blk_1073741825即为文件的一个完整块,Hadoop未对它进额外处理。
hdfs dfs -ls hdfs://172.25.40.171:9000
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.
14/04/17 12:04:02 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /data/hadoop/hadoop-2.4.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
14/04/17 12:04:02 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/04/17 12:04:03 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.
14/04/17 12:04:03 WARN conf.Configuration: mapred-site.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.
ls: Call From VM-40-171-sles10-64/172.25.40.171 to VM-40-171-sles10-64:9000 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
- 执行“hdfs dfs -ls”时报ConnectException
- hdfs dfs -ls 命令
- hdfs dfs -ls
- “hdfs dfs -ls”命令的使用
- 执行“hdfs dfs -ls /”出现“Operation category READ is not supported in state standby”报错解决
- 执行./hdfs dfs mkdir /winter
- HDFS------hadoop fs -ls命令的执行过程
- HDFS------hadoop fs -ls命令的执行过程
- spark-shell 数据文件 读成 表 的两种方式!!! 相对路径!!hdfs dfs -ls
- hdfs dfs
- Socket通信时报错java.net.ConnectException: Connection refused
- hdfs dfs 基本命令
- HDFS中dfs 命令
- 执行PLSQL时报错
- fuse-dfs挂载hdfs实录
- hadoop hdfs dfs 命令讲解
- bin/hdfs dfs -mkdir xmkdir
- hadoop hdfs dfs基本操作
- vmware虚拟机下linux redhat 挂载u盘
- CodeForces 245D Restoring Table
- 2个有用的排序,归并与快排
- 黑白图像
- Kruskal实例练习(二)
- 执行“hdfs dfs -ls”时报ConnectException
- 安装arcgis server10.2时发生错误error1935
- 孙权劝学导学案
- 回溯法八皇后问题
- week 2
- j2se,j2ee,j2me区别
- Ubuntu配置文件/etc/profile说明
- java 堆、栈区别
- 回溯法素数环