1.登陆神策服务器
2.运行 impala-shell 命令
3.切换数据库 use rawdata;
4.运行想要创建的表
CREATE TABLE export_data AS /SA_BEGIN(default)/ select id, first_id, second_id, first_visit_time as _first_visit_time, ***, ***, * from users /SA_END/
注:带$符的字段一定要起别名
5.获取数据表HDFS
SHOW TABLE STATS export_data
6.输出的Location字段就是HDFS路径
7.退出连接:exit;
8.在root账户下运行
hadoop fs -get {HDFS路径}
9.下载好的文件是以'\001'进行分割。