[root@hadoop01 test_data]# pwd
/usr/local/wyh/test_data
[root@hadoop01 test_data]# vi test_word_count.txt
[root@hadoop01 test_data]# cat test_word_count.txt
hello,world
hadoop,world,sqoop
hive,hello,hadoop,mysql
welcome,hadoop
- 在HDFS上创建目录,并将上述准备的数据文件上传至HDFS
[root@hadoop01 test_data]# hdfs dfs -mkdir /test_word_count
[root@hadoop01 test_data]# hdfs dfs -put test_word_count.txt /test_word_count/
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&#