The aim of this post is to let you know how to execute a Hive query from command line (terminal) to fetch the records from Hive Metastore.
The below is the way to execute HiveQL command from the terminal.
hive -e ‘select * from sampletab6’
Hope you like this post.
Please do follow for more interesting updates.