Hive provides a property hive.cli.print.header to set the configuration in which header row is printed. It is as follows:
hive> set
hive.cli.print.header=true;