In Hive, when we do a query (like: select * from employee), we do not get any column names in the output (like name, age, salary that we would get in R
1)Permenant solution
change this property in hive-site.xml file under $HIVE_HOME/conf folder
hive.cli.print.headertrueWhether to print the names of the columns in query output.
2)Temporary solution:
go to hive prompt execute this comman
hive>set hive.cli.print.header=True