无法退出Hive

Ano*_*son 12 hadoop hive ubuntu-14.04

我刚刚在我的Ubuntu机器上安装了Hive(14.04).当我hive在终端中运行时,它会出现

 Logging initialized using configuration in jar:file:/home/nkhl/Documents/apachehive/lib/hive-common-1.2.1.jar!/hive-log4j.properties 
我想这很好.然后Hive shell打开.我还没有学过Hive,所以当我跑去quit退出shell时,它什么也没做.

这是我现在的Hive版本:


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

我关闭终端,退出shell.请帮忙!

提前致谢.

Vin*_*kal 19

我猜你一定忘记写完semi-colonquit.

使用quitexit离开交互式shell,如下所示.注意semi-colon (i.e. ; )

hive> quit;
Run Code Online (Sandbox Code Playgroud)

要么

hive> exit;
Run Code Online (Sandbox Code Playgroud)


小智 6

在这里,我们可以通过以下3个命令从hive shell退出

1.hive> exit; 2.hive> quit; 众所周知,我们可以从连接到hiveserver2 beeline,jdbc-odbc,trift api。因此,当您使用beeline shell时,前两个命令将不起作用,因此最好使用以下命令从beeline退出。

!exit
Run Code Online (Sandbox Code Playgroud)

请勿使用分号


Aar*_*sek 5

您还应该使用ctrl+c退出

  • `hive > quit;` 和 `hive > exit;` 对我不起作用。但这确实做到了。 (4认同)