You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hari Krishna Dara (JIRA)" <ji...@apache.org> on 2019/01/10 09:23:00 UTC

[jira] [Commented] (HBASE-20345) HBase shell crash after backspace

    [ https://issues.apache.org/jira/browse/HBASE-20345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739229#comment-16739229 ] 

Hari Krishna Dara commented on HBASE-20345:
-------------------------------------------

For the sake of Googlers who come here searching for this hbase shell issue, this is actually a JRuby (rather JLine) issue as described in this SO thread: [https://stackoverflow.com/questions/49649449/hbase-shell-crash-after-backspace|https://stackoverflow.com/questions/49649449/hbase-shell-crash-after-backspace]

A quick workaround is listed in the above thread, set column count by running something like {{stty columns 100}}.

There is a docker bug that is apparently resolved, though I am not sure if it was released: [https://github.com/docker/for-linux/issues/314|https://github.com/docker/for-linux/issues/314]

> HBase shell crash after backspace
> ---------------------------------
>
>                 Key: HBASE-20345
>                 URL: https://issues.apache.org/jira/browse/HBASE-20345
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.2.6
>            Reporter: saffi
>            Priority: Blocker
>
> I am running HBase in a docker container. Version is 1.2.4 (Also tried 1.2.6)
> Basically based on
> {quote}[https://github.com/dajobe/hbase-docker]
> {quote}
> When i do the following:
> 1) Build the image: *docker build -t hbase-docker .*
> 2) Start the container: *./start-hbase.sh*
> 3) Go in the container: *docker exec -it hbase bash*
> 4) Open HBase shell: *hbase shell*
> 5) and then if i type something and press backspace, it crashes with following:
> {code:java}
> hbase(main):001:0> li ConsoleReader.java:1414:in `backspace': java.lang.ArithmeticException: / by zero
>     from ConsoleReader.java:1436:in `backspace'
>     from ConsoleReader.java:628:in `readLine'
>     from ConsoleReader.java:457:in `readLine'
>     from Readline.java:237:in `s_readline'
>     from Readline$s$s_readline.gen:65535:in `call'
>     from CachingCallSite.java:332:in `cacheAndCall'
>     from CachingCallSite.java:203:in `call'
>     from FCallTwoArgNode.java:38:in `interpret'
>     from LocalAsgnNode.java:123:in `interpret'
>     from IfNode.java:111:in `interpret'
>     from NewlineNode.java:104:in `interpret'
>     from ASTInterpreter.java:74:in `INTERPRET_METHOD'
>     from InterpretedMethod.java:147:in `call'
>     from DefaultMethod.java:183:in `call'
>     ...
>     ...{code}
>  
> Any idea how to make backspace work and prevent this from happening?! Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)