You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Dian Fu (JIRA)" <ji...@apache.org> on 2015/12/31 07:31:49 UTC

[jira] [Commented] (SQOOP-2764) Sqoop2: Sqoop shell history is no longer working

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

Dian Fu commented on SQOOP-2764:
--------------------------------

The reason to this issue is that we upgrade Groovy(1.8.5->2.4.0) and Jline (0.9.94->2.13). For the {{history}} function in Jline, it will flush the history command to file each time a new command is executed in version 0.9.94 [1]. While in Jline 2.x, this behavior has been changed and it requires application to do that flush [2]. But Groovy (which uses Jline) doesn't make changes accordingly.
1) https://github.com/jline/jline/blob/master/src/main/java/jline/History.java
2) https://github.com/jline/jline2/blob/master/src/main/java/jline/console/history/FileHistory.java

> Sqoop2: Sqoop shell history is no longer working
> ------------------------------------------------
>
>                 Key: SQOOP-2764
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2764
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.99.7
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Dian Fu
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2764.001.patch
>
>
> It seems that shell history is no longer working. E.g when I run shell once and run some commands:
> {code}
> $ /bin/sqoop.sh client
> Setting conf dir: ./bin/../conf
> Sqoop home directory: /root/sqoop-2.0.0-SNAPSHOT-bin-hadoop200
> Sqoop Shell: Type 'help' or '\h' for help.
> sqoop:000> show connector
> ...
> sqoop:000>
> {code}
> Then exit the shell and re-enter it, pressing arrow up won't show any past commands.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)