Description
BeeLine in the master doesn't accept the arrow keys as follows (e.g. ^[[A is up arrow key).
[root@hadoop ~]# beeline which: no hbase in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/hadoop/bin:/usr/local/hive/bin:/usr/pgsql-9.4/bin:/root/bin) Beeline version 2.1.0-SNAPSHOT by Apache Hive beeline> ^[[A^[[B^[[C^[[D
Because UnsupportedTerminal is set in the same way as background. we can check with the ps command.
[root@hadoop ~]# ps -ef | grep beeline root 5799 1433 1 12:05 pts/0 00:00:02 /usr/lib/jvm/java/bin/java -Xmx256m (snip) -Djline.terminal=jline.UnsupportedTerminal (snip) org.apache.hive.beeline.BeeLine
I think the HIVE-6758 affected this behavior. I will fix to accept the arrow keys.
Attachments
Attachments
Issue Links
- is broken by
-
HIVE-6758 Beeline doesn't work with -e option when started in background
- Closed
- relates to
-
HIVE-14153 Beeline: beeline history doesn't work on Hive2
- Closed