使用命令直接将hdfs文件夹导入到当前文件夹
hdfs dfs -get /user/root/you_path/* ./
使用hql查询将结果输出到文件中
hive -e "select * from you_table where date = 20191127" > result.csv