You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by subash basnet <ya...@gmail.com> on 2016/05/14 13:03:14 UTC

Streaming error, StockPrices example

Hello all,

The StockPrices.java example of the given link,
StreamingExamples
<https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples>
shows error due to lack of* SourceContext* class in the provided
flink-streaming-core jar as given in maven.

​
So I added another dependency as below in maven:
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
<version>0.9.0</version>
</dependency>

Now the SourceContext is found, but shows @override error in the inner
class StockSource.



Best Regards,
Subash Basnet
​

Re: Streaming error, StockPrices example

Posted by Ufuk Celebi <uc...@apache.org>.
Hey Subash! The example is not part of the Flink distribution (any more).
Probably you are running into a version mismatch. The examples packages you
are referring to actually sets up all dependencies. How are you trying to
run this?

On Sat, May 14, 2016 at 3:03 PM, subash basnet <ya...@gmail.com> wrote:

> Hello all,
>
> The StockPrices.java example of the given link,
> StreamingExamples
> <https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples>
> shows error due to lack of* SourceContext* class in the provided
> flink-streaming-core jar as given in maven.
>
> ​
> So I added another dependency as below in maven:
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-streaming-core</artifactId>
> <version>0.9.0</version>
> </dependency>
>
> Now the SourceContext is found, but shows @override error in the inner
> class StockSource.
>
>
>
> Best Regards,
> Subash Basnet
> ​
>

Re: Streaming error, StockPrices example

Posted by Stephan Ewen <se...@apache.org>.
Hi!

Still sounds like a version mixup in your dependencies, or the IDE did not
properly pick up the changes (re-import / refresh).

On Wed, May 25, 2016 at 5:32 PM, subash basnet <ya...@gmail.com> wrote:

> Hello Ufuk,
>
> Yeah I had tried running the examples via eclipse, yeah it should have
> setup all dependencies but no it doesn't. It shows error with regard to
> *SourceContext* not available as explained via image in earlier thread.
> So I had to add this new depedency in maven to get rid of *SourceContext* not
> available error as below:
>
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-streaming-core</artifactId>
> <version>0.9.0</version>
> </dependency>
>
> But after adding this dependency the previous *SourceContext* error get's
> removed but now another new @override error occurs inside the inner class
> StockSource, the image of error is attached earlier.
>
>
> Best Regards,
> Subash Basnet
>
> On Fri, May 20, 2016 at 12:16 PM, Ufuk Celebi <uc...@apache.org> wrote:
>
>> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
>> for Automatic Cleanup! (uce@apache.org) Add cleanup rule
>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3DYVGiiSzHoQEJ1%252FUzgVIdzIT86D5a2ZvFeL1dT9Aa3FUjPTk5PVsP8Z8DMoc9J3yfq57J5xQ74zePeUPvdzLLBSjqjw%252F91ioXWhLzNL3HJ7sHi%252B3Bb0cWCNjAJ8qWw2CJTRzrYwfBATI%253D%26key%3DSmJxha2XmnfB2jEhiVYNvM0lrYWtsUhLKa4Fx%252BHGlfQ%253D&tc_serial=25471796499&tc_rand=751862306&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>> | More info
>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=25471796499&tc_rand=751862306&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>
>> Hey Subash! The example is not part of the Flink distribution (any more).
>> Probably you are running into a version mismatch. The examples packages you
>> are referring to actually sets up all dependencies. How are you trying to
>> run this?
>>
>> On Sat, May 14, 2016 at 3:03 PM, subash basnet <ya...@gmail.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> The StockPrices.java example of the given link,
>>> StreamingExamples
>>> <https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples>
>>> shows error due to lack of* SourceContext* class in the provided
>>> flink-streaming-core jar as given in maven.
>>>
>>> ​
>>> So I added another dependency as below in maven:
>>> <dependency>
>>> <groupId>org.apache.flink</groupId>
>>> <artifactId>flink-streaming-core</artifactId>
>>> <version>0.9.0</version>
>>> </dependency>
>>>
>>> Now the SourceContext is found, but shows @override error in the inner
>>> class StockSource.
>>>
>>>
>>>
>>> Best Regards,
>>> Subash Basnet
>>> ​
>>>
>>
>>
>>
>

Re: Streaming error, StockPrices example

Posted by subash basnet <ya...@gmail.com>.
Hello Ufuk,

Yeah I had tried running the examples via eclipse, yeah it should have
setup all dependencies but no it doesn't. It shows error with regard to
*SourceContext* not available as explained via image in earlier thread.
So I had to add this new depedency in maven to get rid of *SourceContext* not
available error as below:

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
<version>0.9.0</version>
</dependency>

But after adding this dependency the previous *SourceContext* error get's
removed but now another new @override error occurs inside the inner class
StockSource, the image of error is attached earlier.


Best Regards,
Subash Basnet

On Fri, May 20, 2016 at 12:16 PM, Ufuk Celebi <uc...@apache.org> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (uce@apache.org) Add cleanup rule
> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3DYVGiiSzHoQEJ1%252FUzgVIdzIT86D5a2ZvFeL1dT9Aa3FUjPTk5PVsP8Z8DMoc9J3yfq57J5xQ74zePeUPvdzLLBSjqjw%252F91ioXWhLzNL3HJ7sHi%252B3Bb0cWCNjAJ8qWw2CJTRzrYwfBATI%253D%26key%3DSmJxha2XmnfB2jEhiVYNvM0lrYWtsUhLKa4Fx%252BHGlfQ%253D&tc_serial=25471796499&tc_rand=751862306&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> | More info
> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=25471796499&tc_rand=751862306&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>
> Hey Subash! The example is not part of the Flink distribution (any more).
> Probably you are running into a version mismatch. The examples packages you
> are referring to actually sets up all dependencies. How are you trying to
> run this?
>
> On Sat, May 14, 2016 at 3:03 PM, subash basnet <ya...@gmail.com> wrote:
>
>> Hello all,
>>
>> The StockPrices.java example of the given link,
>> StreamingExamples
>> <https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples>
>> shows error due to lack of* SourceContext* class in the provided
>> flink-streaming-core jar as given in maven.
>>
>> ​
>> So I added another dependency as below in maven:
>> <dependency>
>> <groupId>org.apache.flink</groupId>
>> <artifactId>flink-streaming-core</artifactId>
>> <version>0.9.0</version>
>> </dependency>
>>
>> Now the SourceContext is found, but shows @override error in the inner
>> class StockSource.
>>
>>
>>
>> Best Regards,
>> Subash Basnet
>> ​
>>
>
>
>