accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Oley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3716) Accumulo shell run with -e or -f waits on stdin when run in the background
Date Wed, 08 Apr 2015 18:09:12 GMT
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)

Mime
View raw message