hadoop环境搭建的测试
2016-11-20 00:00
465 查看
hadoop fs -ls hdfs://localhost:9000/
hadooop -put jdkxxx.tar.gz /
【报错】
------------------------------------------------------------------------
put: File /jdk-7u60-linux-i586.tar.gz._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.
------------------------------------------------------------------------
【若是 DataNode 没有启动】
-----------------------------------------------------
# 针对 DataNode 没法启动的解决方法
./sbin/stop-dfs.sh # 关闭
rm -r ./tmp # 删除 tmp 文件,注意这会删除 HDFS 中原有的所有数据
./bin/hdfs namenode -format # 重新格式化 NameNode
./sbin/start-dfs.sh # 重启
----------------------------------------------------- http://www.powerxing.com/install-hadoop/ 搭建过程的
地址
查看数据块block(hdfs-site.xml文件中) /home/hadoop/local/hadoop/tmp/dfs/data/current/BP-333563086-192.168.31.235-1479593039948/current/finalized
取文件
hadooop fs -get /jdk-7u60-linux-i586 /
新建一个文本
随便输入一些内容
cd /home/hadoop/app/hadoop-2.4.1/share/hadoop/mapreduce
·hadoop-mapreduce-examples-2.4.1.jar
test.data
随便输入内容
放到hadoop上的目录
蒋test.data,put到上/去
命令
hadoop jar hadoop-mapreduce-examples-2.4.1.jar wordcount /input/test.data(源) /output/data(结果保存,该目录应不存在,否则报错)
hadooop -put jdkxxx.tar.gz /
【报错】
------------------------------------------------------------------------
put: File /jdk-7u60-linux-i586.tar.gz._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.
------------------------------------------------------------------------
【若是 DataNode 没有启动】
-----------------------------------------------------
# 针对 DataNode 没法启动的解决方法
./sbin/stop-dfs.sh # 关闭
rm -r ./tmp # 删除 tmp 文件,注意这会删除 HDFS 中原有的所有数据
./bin/hdfs namenode -format # 重新格式化 NameNode
./sbin/start-dfs.sh # 重启
----------------------------------------------------- http://www.powerxing.com/install-hadoop/ 搭建过程的
地址
查看数据块block(hdfs-site.xml文件中) /home/hadoop/local/hadoop/tmp/dfs/data/current/BP-333563086-192.168.31.235-1479593039948/current/finalized
取文件
hadooop fs -get /jdk-7u60-linux-i586 /
新建一个文本
随便输入一些内容
cd /home/hadoop/app/hadoop-2.4.1/share/hadoop/mapreduce
·hadoop-mapreduce-examples-2.4.1.jar
test.data
随便输入内容
放到hadoop上的目录
蒋test.data,put到上/去
命令
hadoop jar hadoop-mapreduce-examples-2.4.1.jar wordcount /input/test.data(源) /output/data(结果保存,该目录应不存在,否则报错)
相关文章推荐
- 搭建hadoop-0.20.2开发测试环境(一)
- Hadoop 2.2.0测试环境搭建
- hadoop伪分布式环境搭建与测试
- Hadoop-3.0.0测试(单机)环境搭建
- 搭建hadoop-0.20.2开发测试环境(二)
- Hadoop2.x.x伪分布式环境搭建、测试
- hadoop伪分布式环境搭建与测试
- hadoop2.7.2 win7 eclipse环境搭建测试
- hadoop伪分布式环境搭建与测试
- Hadoop环境搭建及测试
- hadoop 学习笔记 第一期 搭建虚拟机 和测试环境
- hadoop2.2.0测试环境搭建
- hadoop伪分布式环境搭建与测试
- 搭建本地hadoop测试环境
- Hadoop 1.x测试环境搭建
- 【hadoop 2.6】hadoop2.6伪分布模式环境的搭建测试使用
- hadoop 测试环境搭建
- hadoop伪分布式环境搭建与测试
- hadoop伪分布式环境搭建与测试
- 基于Hadoop的Kylin测试环境搭建