1.hive往外寫數據
http://wiki.pentaho.com/display/BAD/Extracting+Data+from+Hive+to+Load+an+RDBMS
連接hive
表輸入
1)往excel中寫數據
2)往文本文件中寫數據
注:這里需要填上hive的表名.字段名,不然會報如下錯誤:
2016/07/27 15:43:01 - 表輸入.0 - ERROR (version 3.2.0, build 1 from 2016-07-07 10.46.10 by xnren) : Unexpected error 2016/07/27 15:43:01 - 表輸入.0 - ERROR (version 3.2.0, build 1 from 2016-07-07 10.46.10 by xnren) : org.pentaho.di.core.exception.KettleDatabaseException: 2016/07/27 15:43:01 - 表輸入.0 - ERROR (version 3.2.0, build 1 from 2016-07-07 10.46.10 by xnren) : Couldn't get row from result set 2016/07/27 15:43:01 - 表輸入.0 - ERROR (version 3.2.0, build 1 from 2016-07-07 10.46.10 by xnren) : Error retrieving next row
2.往hive中寫數據
http://wiki.pentaho.com/display/BAD/Loading+Data+into+Hive
1 hive -e "load data local inpath '/opt/a.txt' into table jj.ss"
原始數據:
插入數據:
