Thanks, yes i am putting the materializer, runWith(Producer.commitableSink(producerSettings), materializer);
Is this a java and/or scala version issue? i am using <dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-stream-kafka_2.11</artifactId> <version>0.11-RC2</version> </dependency> and scala library 2.11.4 On Thursday, April 27, 2017 at 8:52:03 PM UTC-5, Konrad Malawski wrote: > > A Sink is a Graph; as is a Flow, and a Source - they're all graphs, of a > specific shape. > Here, the method takes a Graph<SinkShape, so yeah you can pass in a Sink. > > Seems you're not passing in the materializer? > In Java you have to do that explicitly: > > > someSource.runWith(sink, materializer) > > -- > Konrad `ktoso` Malawski > Akka <http://akka.io> @ Lightbend <http://lightbend.com> > > On 28 April 2017 at 08:36:43, Shannon Ma ([email protected] <javascript:>) > wrote: > > Hi, > > I am new to akka stream kafka, and am trying to follow some the examples > to get start. > > I try to use > > Source.runWith(Sink.ignore()) or > Soruce.runWith(Producer.commitableSink(producerSettings) > > and get this compilation error > > The method > runWith(Graph<SinkShape<ConsumerMessage.CommittableMessage<SpecificRecord,SpecificRecord>>,M>, > > Materializer) in the type > Source<ConsumerMessage.CommittableMessage<SpecificRecord,SpecificRecord>,Consumer.Control> > > is not applicable for the arguments > (Sink<ProducerMessage.Message<SpecificRecord,SpecificRecord,ConsumerMessage.Committable>,CompletionStage<Done>>, > > null) > > > The method expects Graph<>, but examples put Sink, what am i missing? > > Thanks > Shannon > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
