- 浏览: 50367 次
最新评论
文章列表
学习Hadoop必须先记在心里的东西:1、cygwin只是模拟了linux环境2、hadoop必须安装在linux环境上3、mapreduce程序开发直接就在window上即可4、mapreduce程序的运行:可以把写好的程序打成jar包 放到hadoop集群上 执行hadoop命令(就像大家安装完 验证集群是否正常运行"计算圆周率"一样)
- 2013-07-10 15:29
- 浏览 204
- 评论(0)
如何用Hadoop计算平均值
数据
data.txt
a 2
a 3
a 4
b 5
b 6
b 7
代码
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.IntWritable;
import org ...
- 2013-07-10 09:28
- 浏览 455
- 评论(0)
What Is Apache Hadoop?
The Apache™ Hadoop® project develops open-source software for reliable, scalable, distributed computing.
可靠的,可扩展的开源软件,分布式计算。
The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using ...
- 2013-07-09 17:07
- 浏览 231
- 评论(0)
遇到的问题:
1、在hadoop conf下执行命令: hadoop-daemon.sh start datanode,无法启动hadoop datanode:
[hadoop@master conf]$ hadoop-daemon.sh start datanode
Warning: $HADOOP_HOME is deprecated.
starting datanode, logging to /opt/modules/hadoop/hadoop-1.1.2/libexec/../logs/hadoop-hadoop-datanode-master.out
[hadoop ...
- 2013-07-08 11:11
- 浏览 242
- 评论(0)