HDFS and Linux Commands in Hive Shell
Step 1 - Change the directory to /usr/local/hive/bin
Step 2 - Enter into hive shell
HDFS Commands
You can use all hdfs commands
Linux Commands
Prints the hostname
Displays the present working directory
Prints the message
Step 1 - Change the directory to /usr/local/hive/bin
$ cd /usr/local/hive/bin
$ hive
You can use all hdfs commands
hive> dfs -ls;
Prints the hostname
hive> !hostname;
hive> !pwd;
hive> !echo "hello hive";
Comments
Post a Comment