I am new to Hive and wanted to know how to execute hive commoands directly from .hql file.
hive -f filepath; example-hive -f /home/Nitin/Desktop/Hive/script1.hql;
Use hive -f filename.hql;
hive -f filename.hql;
Remember to terminate your command with ;
;