重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

通过hadoop自带的demo运行单词统计

1)mkdir input

创新互联公司是一家专注于做网站、网站设计与策划设计,吉林网站建设哪家好?创新互联公司做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:吉林等地区。吉林做网站价格咨询:028-86922220

2)cd  intput

3)echo “hello word” > file1.txt

4)echo “hello Hadoop” > file2.txt

5)echo “hello mapreduce” >> file2.txt

6) more file2.txt

7) hadoop fs -mkdir  /wc_input

8) hadoop fs -ls /

9) hadoop fs -put ~/input/fi* /wc_input

10)hadoop fs -ls  /wc_input

11) hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar wordcount /wc_input /output

12)hadoop fs -ls /output

13)hadoop fs -cat /output/part-r-00000


网页题目:通过hadoop自带的demo运行单词统计
本文URL:http://cqcxhl.cn/article/isppgp.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP