Reputation:
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
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
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
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