LoginSignup
0
1

More than 5 years have passed since last update.

Hive カラム名ありのデータ出力

Posted at

概要

Hiveでデータを出力する際に列名つきで出力する。
(デフォルトは列名出力なし)

方法

set hive.cli.print.header=true;

を実行後に、
通常の出力(以下サンプル)で列名つきのデータが出力可能。


hive -e "select * from hoge;" > hoge.tsv

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1