Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 468D2200BEA for ; Tue, 13 Dec 2016 01:48:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 45162160B30; Tue, 13 Dec 2016 00:48:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8A6BD160B22 for ; Tue, 13 Dec 2016 01:48:16 +0100 (CET) Received: (qmail 93778 invoked by uid 500); 13 Dec 2016 00:48:15 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 93769 invoked by uid 99); 13 Dec 2016 00:48:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 00:48:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 549E5C0370 for ; Tue, 13 Dec 2016 00:48:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yxOiOMLfDI4H for ; Tue, 13 Dec 2016 00:48:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 02FEB5F19B for ; Tue, 13 Dec 2016 00:48:13 +0000 (UTC) Received: (qmail 88328 invoked by uid 99); 13 Dec 2016 00:46:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 00:46:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5F83D2C03E0 for ; Tue, 13 Dec 2016 00:46:58 +0000 (UTC) Date: Tue, 13 Dec 2016 00:46:58 +0000 (UTC) From: "Davor Bonaci (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1141) Beam Quickstart doesn't work on DataflowRunner MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 00:48:17 -0000 [ https://issues.apache.org/jira/browse/BEAM-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15743694#comment-15743694 ] Davor Bonaci commented on BEAM-1141: ------------------------------------ Need to add a profile for the Dataflow runner, as all other runners are doing. > Beam Quickstart doesn't work on DataflowRunner > ---------------------------------------------- > > Key: BEAM-1141 > URL: https://issues.apache.org/jira/browse/BEAM-1141 > Project: Beam > Issue Type: Bug > Components: website > Reporter: Jason Kuster > Assignee: Davor Bonaci > > Repro steps: > In new dir, run current archetype:generate command: > {code} > mvn archetype:generate \ > -DarchetypeRepository=https://repository.apache.org/content/groups/snapshots \ > -DarchetypeGroupId=org.apache.beam \ > -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \ > -DarchetypeVersion=LATEST \ > -DgroupId=org.example \ > -DartifactId=word-count-beam \ > -Dversion="0.1" \ > -Dpackage=org.apache.beam.examples \ > -DinteractiveMode=false > {code} > Then run the sample command for DataflowRunner: > {code} > mvn compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount \ > -Dexec.args="--runner=DataflowRunner --gcpTempLocation=gs:///tmp \ > --inputFile=gs://apache-beam-samples/shakespeare/* --output=gs:///counts" > {code} > Expected outcome: WordCount runs on Dataflow > Actual outcome: > {code} > [INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ word-count-beam --- > [WARNING] > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.IllegalArgumentException: Unknown 'runner' specified 'DataflowRunner', supported pipeline runners [DirectRunner] > at org.apache.beam.sdk.options.PipelineOptionsFactory.parseObjects(PipelineOptionsFactory.java:1610) > at org.apache.beam.sdk.options.PipelineOptionsFactory.access$400(PipelineOptionsFactory.java:105) > at org.apache.beam.sdk.options.PipelineOptionsFactory$Builder.as(PipelineOptionsFactory.java:290) > at org.apache.beam.examples.WordCount.main(WordCount.java:174) > ... 6 more > Caused by: java.lang.ClassNotFoundException: DataflowRunner > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at org.apache.beam.sdk.options.PipelineOptionsFactory.parseObjects(PipelineOptionsFactory.java:1596) > ... 9 more > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 17.916 s > [INFO] Finished at: 2016-12-12T16:38:55-08:00 > [INFO] Final Memory: 29M/266M > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project word-count-beam: An exception occured while executing the Java class. null: InvocationTargetException: Unknown 'runner' specified 'DataflowRunner', supported pipeline runners [DirectRunner] -> [Help 1] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)