StreamingWordCount示例maven编译时错误

时间:2022-05-25 15:11:08

I am getting the following errors while running compiling the Google dataflow example on the cloud instance. I am trying to run the streaming example by the name of StreamingWordCount using the following command

在云实例上运行编译Google数据流示例时,我遇到以下错误。我试图使用以下命令以StreamingWordCount的名称运行流示例

mvn compile exec:java -Dexec.mainClass=com.google.cloud.dataflow.examples.complete.StreamingWordCount.java


Is there something that I am doing wrong?Any help is appreciated.
Thanks

有什么东西我做错了吗?任何帮助都表示赞赏。谢谢

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Google Cloud Dataflow Java Examples - All manual_build
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- build-helper-maven-plugin:1.10:add-source (add-java8-main-source) @ google-cloud-dataflow-java-examples-all ---
[INFO] Source directory: /home/gaurav_bareja/pipeline/DataflowJavaSDK-examples/src/main/java8 added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.10:add-test-source (add-java8-test-source) @ google-cloud-dataflow-java-exam
ples-all ---
[INFO] Test Source directory: /home/gaurav_bareja/pipeline/DataflowJavaSDK-examples/src/test/java8 added.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ google-cloud-dataflow-java-examples-all ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/gaurav_bareja/pipeline/DataflowJavaSDK-examples/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ google-cloud-dataflow-java-examples-all ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (java8-compile) @ google-cloud-dataflow-java-examples-all ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] >>> exec-maven-plugin:1.1:java (default-cli) > validate @ google-cloud-dataflow-java-examples-all >>>
[INFO] 
[INFO] <<< exec-maven-plugin:1.1:java (default-cli) < validate @ google-cloud-dataflow-java-examples-all <<<
[INFO] 
[INFO] --- exec-maven-plugin:1.1:java (default-cli) @ google-cloud-dataflow-java-examples-all ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.496 s
[INFO] Finished at: 2016-03-19T13:23:56+00:00
[INFO] Final Memory: 15M/56M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on project google-cloud-d
ataflow-java-examples-all: An exception occured while executing the Java class. com.google.cloud.dataflow.examples.
complete.StreamingWordCount.java -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecution

Exception

例外

1 个解决方案

#1


1  

You seem to be attempting to run the StreamingWordCount example that comes with the Google Cloud Dataflow SDK for Java. The example under that name doesn't exist -- hence, the exception you are seeing.

您似乎正在尝试运行Google Cloud Dataflow SDK for Java附带的StreamingWordCount示例。该名称下的示例不存在 - 因此,您看到的例外情况。

You likely want to run WindowedWordCount instead, an example that shows how to run the same pipeline over either unbounded PCollections in the streaming mode or bounded PCollections in the batch mode.

您可能希望运行WindowedWordCount,该示例显示如何在流模式下的*PCollections或批处理模式下的有界PCollections中运行相同的管道。

Please follow the instructions here.

请按照此处的说明操作。

#1


1  

You seem to be attempting to run the StreamingWordCount example that comes with the Google Cloud Dataflow SDK for Java. The example under that name doesn't exist -- hence, the exception you are seeing.

您似乎正在尝试运行Google Cloud Dataflow SDK for Java附带的StreamingWordCount示例。该名称下的示例不存在 - 因此,您看到的例外情况。

You likely want to run WindowedWordCount instead, an example that shows how to run the same pipeline over either unbounded PCollections in the streaming mode or bounded PCollections in the batch mode.

您可能希望运行WindowedWordCount,该示例显示如何在流模式下的*PCollections或批处理模式下的有界PCollections中运行相同的管道。

Please follow the instructions here.

请按照此处的说明操作。