hadoop - Is there any way to get the column name along with the output while execute any query in Hive? -


in hive, when query (like: select * employee), not column names in output (like name, age, salary in rdbms sql), values.

is there way column names displayed along output when execute query?

if want see columns names of table in hiveql, following hive conf property should set true.

hive> set hive.cli.print.header=true; 

if prefer see column names update $home/.hiverc file above setting in first line..

--hive automatically looks file named .hiverc in home directory , runs commands contains, if any


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -