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

Cedrik Neumann commented on AIRFLOW-1479:
-----------------------------------------

Hello, I'm not working at Wooga anymore. As far as I know the FreeBSD specific 
branch of our Airflow version was still using `FNULL`:

[https://github.com/wooga/airflow/blob/1.9-fbsd-master/airflow/operators/bash_operator.py#L85]

As the Team was working on a migration to Kubernetes before my departure Dec 
2017, I don't think this was still relevant unfortunately.

> BashOperator does not open pipe for STDIN
> -----------------------------------------
>
>                 Key: AIRFLOW-1479
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1479
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: 1.8.1
>         Environment: FreeBSD, JRuby 9.x, Rake, Python 2.7, Airflow 1.8 with 
> CeleryExecutor
>            Reporter: Cedrik Neumann
>            Priority: Trivial
>              Labels: easyfix
>
> From JRuby 9 onwards we experienced issues when executing Rake tasks via the 
> BashOperator with the error message:
> {noformat}
> Errno::EBADF: Bad file descriptor - 0
> {noformat}
> We figured out that the issue is due to a missing pipe for STDIN when the 
> BashOperator calls `Popen`.
> The quick fix of the issue would be to add a pipe for STDIN as well:
> {code:python}
> sp = Popen(
>                     ['bash', fname],
>                     stdout=PIPE, stderr=STDOUT, stdin=PIPE,
>                     cwd=tmp_dir, env=self.env)
> {code}



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

Reply via email to