Hive Shell Commands Usage
Step 1 - Change the directory to /usr/local/hive/bin
Step 2 - Enter into hive shell
To list the files that are in HDFS
To run hiveQL queries
To see the list of parameters that are set
To execute hiveQL script
To set hive parameters
To reset all hive parameters
To exit from the hive shell
Please share this blog post and follow me for latest updates on
Step 1 - Change the directory to /usr/local/hive/bin
$ cd /usr/local/hive/bin
$ hive
To list the files that are in HDFS
hive> dfs -ls;
hive> select * from word_counts;
hive> set -v;
hive> source /home/hduser/Desktop/HIVE/wordcount.hql;
hive> SET hive.cli.print.header=true; hive> SET mapred.reduce.tasks=32; hive> SET hive.enforce.bucketing=true; hive> SET hive.cli.print.current.db=true;
hive> RESET;
hive> quit;
Comments
Post a Comment