启动hadooop
start-all.sh
jps查看服务是否启动
把本地文件传上数据库
hdfs dfs -put ./wc/w.txt /user/hadoop/input hdfs dfs -ls input
启动hive建表
hive create table text(line string);
使用select命令查看结果