axnet
axnet

Reputation: 5790

How to launch hive with hive.cli.print.header=true in command line?

We know that to enable headers in results of hive query we need to do hive.cli.print.header=true after going into hive.

Is there any way or command line argument by which we can launch hive such that default setting will be Auto Show Headers.

Upvotes: 0

Views: 1432

Answers (1)

Andrew
Andrew

Reputation: 8758

In your home directory, you can create a file named .hiverc. For showing headers, add this line: set hive.cli.print.header=true;

Upvotes: 2

Related Questions