I've just installed Hive on my Ubuntu machine (14.04). When I run hive
in the terminal, it comes up with
Logging initialized using configuration in jar:file:/home/nkhl/Documents/apachehive/lib/hive-common-1.2.1.jar!/hive-log4j.propertieswhich is fine, I guess. Then the Hive shell opens. I haven't learnt Hive (yet) so when i run
quit
to quit the shell, it does nothing.
Here's the version of Hive i am on now:
Hive 1.2.1 Subversion git://localhost.localdomain/home/sush/dev/hive.git -r 243e7c1ac39cb7ac8b65c5bc6988f5cc3162f558 Compiled by sush on Fri Jun 19 02:03:48 PDT 2015 From source with checksum ab480aca41b24a9c3751b8c023338231
I close the terminal off, to quit the shell. Please help!
Thanks in advance.
To cancel a Hive request To cancel the request at any time in the process, use the Kill Command from the server response. Enter Ctrl+C to exit the command line client. At the shell prompt, enter the Kill Command from the initial server response to your request.
However, if there is no query currently running, the first CTRL+C will exit the Beeline shell.
I guess you must have forgotten to write semi-colon
at the end of quit
.
Use quit
or exit
to leave the interactive shell as shown below. Notice semi-colon (i.e. ; )
hive> quit;
OR
hive> exit;
Here we can exit from hive shell by the following 3 commands
1.hive>exit;
2.hive>quit;
As we all know that we can connect to hiveserver2 from beeline,jdbc-odbc,trift api
.So when you are using beeline shell then the first two commands will not work so its better to use the following command to exit from beeline.
!exit
no semicolon should be used
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With