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/02/24 16:02:43 UTC

Error in import of flink-streaming-examples project [StockPrices.java]

Hello there,

I imported the flink-streaming-examples project [
https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples]
into eclipse but it shows me error in StockSource and TweetSource class
within StockPries.java.
I have attached the screenshot for more clarity.

When I point to the error symbol beside *StockSource* I get the following
message:
Multiple markers at this line
- The type StockPrices.StockSource must implement the inherited abstract
method
SourceFunction<StockPrices.StockPrice>.cancel()
- The type StockPrices.StockSource must implement the inherited abstract
method
SourceFunction<StockPrices.StockPrice>.run(SourceFunction.SourceContext<StockPrices.StockPrice>)

And for *reachEnd() *overriden method:
The method reachedEnd() of type StockPrices.StockSource must override or
implement a supertype method

Do I need to import some another project, attach as source to run the
StockPries.java.


Best Regards,
Subash Basnet

Re: Error in import of flink-streaming-examples project [StockPrices.java]

Posted by Stephan Ewen <se...@apache.org>.
I think this example refers to a much older version (0.8) and is no longer
compatible

On Wed, Feb 24, 2016 at 4:02 PM, subash basnet <ya...@gmail.com> wrote:

> Hello there,
>
> I imported the flink-streaming-examples project [
> https://github.com/mbalassi/flink/tree/stockprices/flink-staging/flink-streaming/flink-streaming-examples]
> into eclipse but it shows me error in StockSource and TweetSource class
> within StockPries.java.
> I have attached the screenshot for more clarity.
>
> When I point to the error symbol beside *StockSource* I get the following
> message:
> Multiple markers at this line
> - The type StockPrices.StockSource must implement the inherited abstract
> method
> SourceFunction<StockPrices.StockPrice>.cancel()
> - The type StockPrices.StockSource must implement the inherited abstract
> method
>
> SourceFunction<StockPrices.StockPrice>.run(SourceFunction.SourceContext<StockPrices.StockPrice>)
>
> And for *reachEnd() *overriden method:
> The method reachedEnd() of type StockPrices.StockSource must override or
> implement a supertype method
>
> Do I need to import some another project, attach as source to run the
> StockPries.java.
>
>
> Best Regards,
> Subash Basnet
>