Hadoop心得

来源:互联网 发布:深圳网络股东大会投票 编辑:程序博客网 时间:2024/06/05 03:18

环境:CentOS5.8,JDK1.7,hadoop-0.20.205.0-bin.tar.gz

1.在cento中安装配置JDK,编辑/etc/profile

2.配置ssh密钥

3.配置hadoop(我下载的JDK没有-jvm参数,在hadoop中去掉即可)

4.编译java代码(要使用hadoop-core-0.20.205.0.jar,commons-cli-1.2.jar)

 

bin/hadoop fs -mkdir testinput

bin/hadoop fs -put testinput/file* testinput

bin/hadoop fs -lsr testinput

bin/hadoop fs -cat testoutput/part-r-0000

bin/hadoop fs -rm testinput

 

 

原创粉丝点击