无法退出 Hive

Unable to exit Hive

我刚刚在我的 Ubuntu 机器 (14.04) 上安装了 Hive。当我在终端中 运行 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。请帮忙!

提前致谢。

我猜你一定是忘记在quit后面写semi-colon了。

使用quitexit离开互动shell如下图。注意事项semi-colon (i.e. ; )

hive> quit;

hive> exit;

这是退出或退出 Hive 会话的正确方法。

hive> quit;

hive> exit;

不是;

你应该也即将使用ctrl+c退出

您可以使用 Ctrl(key) + C(Key)quit 退出;在 hive shell prompt。 那应该有用!!

使用ctr+c退出hive 或配置单元 > 退出;

这里我们可以通过以下3条命令退出hiveshell

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

!exit

不应使用分号

一旦您键入不带“;”的退出那么ctrl+C就不行了,这种情况下你应该直接关闭终端退出shell。