From commits-return-12727-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Mon Feb 19 13:02:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A1E38180607 for ; Mon, 19 Feb 2018 13:02:05 +0100 (CET) Received: (qmail 6207 invoked by uid 500); 19 Feb 2018 12:02:04 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 6198 invoked by uid 99); 19 Feb 2018 12:02:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2018 12:02:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2F8BA18028B for ; Mon, 19 Feb 2018 12:02:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id n5q9yu453xC2 for ; Mon, 19 Feb 2018 12:02:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1BB3D5FC64 for ; Mon, 19 Feb 2018 12:02:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4F3BFE00A6 for ; Mon, 19 Feb 2018 12:02:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0DEF021E5C for ; Mon, 19 Feb 2018 12:02:00 +0000 (UTC) Date: Mon, 19 Feb 2018 12:02:00 +0000 (UTC) From: "Ash Berlin-Taylor (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-2122) SSHOperator throws an error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AIRFLOW-2122?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 369049#comment-16369049 ]=20 Ash Berlin-Taylor commented on AIRFLOW-2122: -------------------------------------------- How have you defined the {{ssh_node}} connection? I think you (quite rightl= y) specified one of {{compress}} or {{no_host_key_check}} as a boolean, but= it needs to be a string. The work around for you is to specify it as a string. The fix is to make the SSHHook cope with string or boolean for these parame= ters.. > SSHOperator throws an error > --------------------------- > > Key: AIRFLOW-2122 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2122 > Project: Apache Airflow > Issue Type: Bug > Reporter: sam sen > Priority: Major > > Here's my code:=C2=A0 > {code:java} > dag =3D DAG('transfer_ftp_s3', default_args=3Ddefault_args,schedule_inter= val=3DNone) }} > task =3D SSHOperator(ssh_conn_id=3D'ssh_node',=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0task= _id=3D"check_ftp_for_new_files",=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0comm= and=3D"echo 'hello world'",=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do_x= com_push=3DTrue, dag=3Ddag,) > {code} > =C2=A0 > Here's the error > {code:java} > [2018-02-19 06:48:02,691] {{base_task_runner.py:98}} INFO - Subtask: Trac= eback (most recent call last): > [2018-02-19 06:48:02,691] {{base_task_runner.py:98}} INFO - Subtask: Fi= le "/usr/bin/airflow", line 27, in > [2018-02-19 06:48:02,692] {{base_task_runner.py:98}} INFO - Subtask: = args.func(args) > [2018-02-19 06:48:02,693] {{base_task_runner.py:98}} INFO - Subtask: Fi= le "/usr/lib/python2.7/site-packages/airflow/bin/cli.py", line 392, in run > [2018-02-19 06:48:02,695] {{base_task_runner.py:98}} INFO - Subtask: = pool=3Dargs.pool, > [2018-02-19 06:48:02,695] {{base_task_runner.py:98}} INFO - Subtask: Fi= le "/usr/lib/python2.7/site-packages/airflow/utils/db.py", line 50, in wrap= per > [2018-02-19 06:48:02,696] {{base_task_runner.py:98}} INFO - Subtask: = result =3D func(*args, **kwargs) > [2018-02-19 06:48:02,696] {{base_task_runner.py:98}} INFO - Subtask: Fi= le "/usr/lib/python2.7/site-packages/airflow/models.py", line 1496, in _run= _raw_task > [2018-02-19 06:48:02,696] {{base_task_runner.py:98}} INFO - Subtask: = result =3D task_copy.execute(context=3Dcontext) > [2018-02-19 06:48:02,697] {{base_task_runner.py:98}} INFO - Subtask: Fi= le "/usr/lib/python2.7/site-packages/airflow/contrib/operators/ssh_operator= .py", line 146, in execute > [2018-02-19 06:48:02,697] {{base_task_runner.py:98}} INFO - Subtask: = raise AirflowException("SSH operator error: {0}".format(str(e))) > [2018-02-19 06:48:02,698] {{base_task_runner.py:98}} INFO - Subtask: airf= low.exceptions.AirflowException: SSH operator error: 'bool' object has no a= ttribute 'lower' > {code} > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)