user4503253
user4503253

Reputation:

How to quit beeline?

I am using CDH 5.5 and need to use beeline. I am pretty new to it and learning it now. I can start beeline but cannot quit as we do in Hive. I need to use Ctrl+z to quit which is not the proper way. Can someone help?

Upvotes: 18

Views: 51102

Answers (6)

Jeremy Montgomery
Jeremy Montgomery

Reputation: 161

Sometimes you may find yourself with some unterminated command that Hive still thinks that you are entering. If your "! quit" command isn't working, throw in a terminate character (;) and try to quit again.

---Example---

Beeline version 1.1.0-cdh5.7.1 by Apache Hive
beeline> some unterminated command
beeline> ! quit
beeline> <panic!>
beeline> <remember the need to terminate previous commands>
beeline> ;
No current connection
beeline> ! quit

Upvotes: 16

Kumar
Kumar

Reputation: 928

I tried !q and also !quit it did not work in HDP 2.5./Beeline version 1.2.1000.2.5.3.

Finally

! quit or ! q (space required)

Upvotes: 7

sld
sld

Reputation: 59

Using Clouder 5.5.1,

used Ctrl+C to exit

Upvotes: 4

Mahendran V M
Mahendran V M

Reputation: 3496

beeline>!quit

This really helpful to quit the beeline

Upvotes: 0

Suman
Suman

Reputation: 482

Quitting beeline client:

!quit

Upvotes: 2

Alex Raj Kaliamoorthy
Alex Raj Kaliamoorthy

Reputation: 2095

use !q or !quit

[cloudera@quickstart ~]$ beeline

Beeline version 1.1.0-cdh5.5.0 by Apache Hive

beeline> !q

[cloudera@quickstart ~]$

Thanks to Xuefu Zhang. Related Jira

Upvotes: 37

Related Questions