Hive documentation lacking again:
I\'d like to write the results of a query to a local file as well as the names of the columns.
Does Hive support this?
Yes you can. Put the set hive.cli.print.header=true; in a .hiverc file in your main directory or any of the other hive user properties files.
set hive.cli.print.header=true;
.hiverc
Vague Warning: be careful, since this has crashed queries of mine in the past (but I can't remember the reason).