You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Bill Oley (JIRA)" <ji...@apache.org> on 2015/04/08 20:09:12 UTC

[jira] [Created] (ACCUMULO-3716) Accumulo shell run with -e or -f waits on stdin when run in the background

Bill Oley created ACCUMULO-3716:
-----------------------------------

             Summary: Accumulo shell run with -e or -f waits on stdin when run in the background
                 Key: ACCUMULO-3716
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3716
             Project: Accumulo
          Issue Type: Bug
          Components: shell
    Affects Versions: 1.6.2
            Reporter: Bill Oley
            Priority: Minor


I'm writing a script that invokes accumulo shell -u <userame> -p <password> -f <filename>.

This bug can also be reproduced using 

accumulo shell -u <userame> -p <password> -e "<command>"

Whenever the script is backgrounded, the job goes to "Stopped" because the accumulo shell is trying to read from stdin even though all of its input should be coming from the content in the -f or -e parameter.

accumulo shell -u <userame> -p <password> -e "tables" > /tmp/test &

is sufficient to reproduce the bug.

Redirecting stdin from /dev/null doesn't seem to work
Closing stdin before closing it doesn't seem to work.
Starting the script (or the accumulo command) with nohup doesn't seem to work.

The issue seems to be the ConsoleReader that is created in the constructor even when the -e or -f switches are used.



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