网站建设的一些专业术语,蜂聘原360建筑网,站长统计app进入网址新版,威海教育行业网站建设数据导出 文章目录数据导出Insert 导出将查询的结果导出到本地将查询的结果格式化导出到本地将查询的结果导出到 HDFS 上Hadoop 命令导出到本地Hive Shell 命令导出Export 导出到 HDFS 上sqoop导出Insert 导出
表为student
将查询的结果导出到本地
insert overwrite local d…数据导出 文章目录数据导出Insert 导出将查询的结果导出到本地将查询的结果格式化导出到本地将查询的结果导出到 HDFS 上Hadoop 命令导出到本地Hive Shell 命令导出Export 导出到 HDFS 上sqoop导出Insert 导出
表为student
将查询的结果导出到本地
insert overwrite local directory /opt/hivedata/student select * from student;将查询的结果格式化导出到本地
insert overwrite local directory /opt/hivedata/student ROW FORMAT DELIMITED FIELDS TERMINATED BY \t select * from student将查询的结果导出到 HDFS 上 insert overwrite directory /tmp/hivedata/student ROW FORMAT DELIMITED FIELDS TERMINATED BY \t select * from student;Hadoop 命令导出到本地
dfs -get /opt/hive/warehouse/student/student.txt /opt/hivedata/student2.txt;
Hive Shell 命令导出
基本语法hive -f/-e 执行语句或者脚本 file bin/hive -e ‘select * from default.student;’ /opt/hivedata/student3.txt; Export 导出到 HDFS 上
export table default.student to /opt/hive/warehouse/export/student;sqoop导出
详情请看 链接: Hive—sqoop安装教程及sqoop操作