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

Chesnay Schepler commented on FLINK-9980:
-----------------------------------------

The docs are a bit misleading. They say that you only have to add a dependency, 
but you have to remove the {{provided}} scope of all Flink dependencies to run 
it outside the IDE. If you update the dependencies to match the example in the 
docs it should actually work.

> wiki-edits quickstart example fails when run outside of IDE
> -----------------------------------------------------------
>
>                 Key: FLINK-9980
>                 URL: https://issues.apache.org/jira/browse/FLINK-9980
>             Project: Flink
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 1.5.1
>            Reporter: David Anderson
>            Priority: Major
>             Fix For: 1.6.0
>
>
> Following the instructions in the docs, I find that this example runs in 
> intellij, but when run from the command line as instructed
> {{mvn exec:java -Dexec.mainClass=wikiedits.WikipediaAnalysis}}
> it fails with 
> {{java.lang.NoClassDefFoundError: 
> org/apache/flink/streaming/api/functions/source/SourceFunction}}
> I discovered this when trying to reproduce a problem reported on stack 
> overflow: 
> [https://stackoverflow.com/questions/51550479/caused-by-java-io-ioexception-unable-to-serialize-default-value-of-type-tuple2]
> That user is getting a different runtime error.



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

Reply via email to