From commits-return-12836-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Sat Feb 24 19:03:10 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 E79D518067E for ; Sat, 24 Feb 2018 19:03:09 +0100 (CET) Received: (qmail 52307 invoked by uid 500); 24 Feb 2018 18:03:08 -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 52247 invoked by uid 99); 24 Feb 2018 18:03:08 -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; Sat, 24 Feb 2018 18:03:08 +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 D967D180166 for ; Sat, 24 Feb 2018 18:03:07 +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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DzzZhRMwrGIx for ; Sat, 24 Feb 2018 18:03:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7C00B5F5B3 for ; Sat, 24 Feb 2018 18:03:04 +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 1E405E08C7 for ; Sat, 24 Feb 2018 18:03:03 +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 1593D21900 for ; Sat, 24 Feb 2018 18:03:01 +0000 (UTC) Date: Sat, 24 Feb 2018 18:03:01 +0000 (UTC) From: "Kaxil Naik (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-2124) Allow local mainPythonFileUri 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-2124?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 375697#comment-16375697 ]=20 Kaxil Naik commented on AIRFLOW-2124: ------------------------------------- Agree with [~fenglu] above > Allow local mainPythonFileUri > ----------------------------- > > Key: AIRFLOW-2124 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2124 > Project: Apache Airflow > Issue Type: Wish > Reporter: robbert van waardhuizen > Priority: Major > > For our workflow, we currently are in the transition from using BashOpera= tor to using the DataProcPySparkOperators. While rewriting the DAG we came = to the conclusion that it is not=C2=A0possible to submit a (local)=C2=A0pat= h as=C2=A0our main Python file, and a=C2=A0Hadoop Compatible Filesystem (HC= FS) is required. > Our main Python drivers are located in a Git repository. Putting our main= Python files in a GS bucket would require manual=C2=A0updating/overwriting= these files. > In terms of code, this works using the BashOperator: > =C2=A0 > {code:java} > gcloud dataproc jobs submit pyspark \ > /usr/local/airflow/git/airflow-dags/jobs/main_python_driver.py \ > --cluster {cluster_name}{code} > =C2=A0 > =C2=A0 > But cannot be replicated using the DataProcPySparkOperator: > {code:java} > DataProcPySparkOperator(main=3D"/usr/local/airflow/git/airflow-dags/jobs/= main_python_driver.py", > cluster_name=3Dcluster_name) > {code} > Error: > {code:java} > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Cloud Dataproc Agent Error =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > java.lang.NullPointerException > at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77) > at sun.nio.fs.UnixPath.(UnixPath.java:71) > at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281) > at com.google.cloud.hadoop.services.agent.job.AbstractJobHandler.register= ResourceForDownload(AbstractJobHandler.java:442) > at com.google.cloud.hadoop.services.agent.job.PySparkJobHandler.buildComm= and(PySparkJobHandler.java:93) > at com.google.cloud.hadoop.services.agent.job.AbstractJobHandler$StartDri= ver.call(AbstractJobHandler.java:538) > at com.google.cloud.hadoop.services.agent.job.AbstractJobHandler$StartDri= ver.call(AbstractJobHandler.java:532) > at com.google.cloud.hadoop.services.repackaged.com.google.common.util.con= current.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInter= ruptibly(TrustedListenableFutureTask.java:127) > at com.google.cloud.hadoop.services.repackaged.com.google.common.util.con= current.InterruptibleTask.run(InterruptibleTask.java:57) > at com.google.cloud.hadoop.services.repackaged.com.google.common.util.con= current.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:80= ) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511= ) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a= ccess$201(ScheduledThreadPoolExecutor.java:180) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r= un(ScheduledThreadPoolExecutor.java:293) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:617) > at java.lang.Thread.run(Thread.java:748) > =3D=3D=3D=3D=3D=3D=3D=3D End of Cloud Dataproc Agent Error =3D=3D=3D=3D= =3D=3D=3D=3D > {code} > What would be best practice in this case? > Is it possible to add the=C2=A0ability to submit local paths as main Pyth= on file? -- This message was sent by Atlassian JIRA (v7.6.3#76005)