Executing Hive Query From Terminal

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’

RunQueryFromCLI

Hope you like this post.

Please do follow for more interesting updates.

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s