Skip to content

Instantly share code, notes, and snippets.

@gwenshap
Created May 28, 2021 22:38
Show Gist options
  • Save gwenshap/0bf0154c453b82a94a997def7588e44f to your computer and use it in GitHub Desktop.
Save gwenshap/0bf0154c453b82a94a997def7588e44f to your computer and use it in GitHub Desktop.
Complication errors after bumping Clickstream Enrichment example from 0.10.2 to 2.8.0
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java: /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java uses or overrides a deprecated API.
[WARNING] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/GenerateData.java: /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/GenerateData.java uses unchecked or unsafe operations.
[WARNING] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/GenerateData.java: Recompile with -Xlint:unchecked for details.
[WARNING] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] 5 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[42,51] no suitable method found for stream(org.apache.kafka.common.serialization.Serde<java.lang.Integer>,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.PageViewSerde,java.lang.String)
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.lang.String) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.lang.String,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.Collection<java.lang.String>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.Collection<java.lang.String>,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.regex.Pattern) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.regex.Pattern,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[43,56] no suitable method found for table(org.apache.kafka.common.serialization.Serde<java.lang.Integer>,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.ProfileSerde,java.lang.String,java.lang.String)
method org.apache.kafka.streams.StreamsBuilder.<K,V>table(java.lang.String,org.apache.kafka.streams.kstream.Consumed<K,V>,org.apache.kafka.streams.kstream.Materialized<K,V,org.apache.kafka.streams.state.KeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>table(java.lang.String) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>table(java.lang.String,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>table(java.lang.String,org.apache.kafka.streams.kstream.Materialized<K,V,org.apache.kafka.streams.state.KeyValueStore<org.apache.kafka.common.utils.Bytes,byte[]>>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[44,52] no suitable method found for stream(org.apache.kafka.common.serialization.Serde<java.lang.Integer>,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.SearchSerde,java.lang.String)
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.lang.String) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.lang.String,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.Collection<java.lang.String>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.Collection<java.lang.String>,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.regex.Pattern) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.StreamsBuilder.<K,V>stream(java.util.regex.Pattern,org.apache.kafka.streams.kstream.Consumed<K,V>) is not applicable
(cannot infer type-variable(s) K,V
(actual and formal argument lists differ in length))
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[55,78] no suitable method found for leftJoin(org.apache.kafka.streams.kstream.KStream<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.Search>,(userActiv[...]ty; },org.apache.kafka.streams.kstream.JoinWindows,org.apache.kafka.common.serialization.Serde<java.lang.Integer>,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.UserActivitySerde,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.SearchSerde)
method org.apache.kafka.streams.kstream.KStream.<VO,VR>leftJoin(org.apache.kafka.streams.kstream.KStream<java.lang.Integer,VO>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super VO,? extends VR>,org.apache.kafka.streams.kstream.JoinWindows) is not applicable
(cannot infer type-variable(s) VO,VR
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<VO,VR>leftJoin(org.apache.kafka.streams.kstream.KStream<java.lang.Integer,VO>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super VO,? extends VR>,org.apache.kafka.streams.kstream.JoinWindows,org.apache.kafka.streams.kstream.Joined<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity,VO>) is not applicable
(cannot infer type-variable(s) VO,VR
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<VO,VR>leftJoin(org.apache.kafka.streams.kstream.KStream<java.lang.Integer,VO>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super VO,? extends VR>,org.apache.kafka.streams.kstream.JoinWindows,org.apache.kafka.streams.kstream.StreamJoined<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity,VO>) is not applicable
(cannot infer type-variable(s) VO,VR
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<VT,VR>leftJoin(org.apache.kafka.streams.kstream.KTable<java.lang.Integer,VT>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super VT,? extends VR>) is not applicable
(cannot infer type-variable(s) VT,VR
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<VT,VR>leftJoin(org.apache.kafka.streams.kstream.KTable<java.lang.Integer,VT>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super VT,? extends VR>,org.apache.kafka.streams.kstream.Joined<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity,VT>) is not applicable
(cannot infer type-variable(s) VT,VR
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<GK,GV,RV>leftJoin(org.apache.kafka.streams.kstream.GlobalKTable<GK,GV>,org.apache.kafka.streams.kstream.KeyValueMapper<? super java.lang.Integer,? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? extends GK>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super GV,? extends RV>) is not applicable
(cannot infer type-variable(s) GK,GV,RV
(actual and formal argument lists differ in length))
method org.apache.kafka.streams.kstream.KStream.<GK,GV,RV>leftJoin(org.apache.kafka.streams.kstream.GlobalKTable<GK,GV>,org.apache.kafka.streams.kstream.KeyValueMapper<? super java.lang.Integer,? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? extends GK>,org.apache.kafka.streams.kstream.ValueJoiner<? super com.shapira.examples.streams.clickstreamenrich.model.UserActivity,? super GV,? extends RV>,org.apache.kafka.streams.kstream.Named) is not applicable
(cannot infer type-variable(s) GK,GV,RV
(actual and formal argument lists differ in length))
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[65,28] no suitable method found for to(org.apache.kafka.common.serialization.Serde<java.lang.Integer>,com.shapira.examples.streams.clickstreamenrich.ClickstreamEnrichment.UserActivitySerde,java.lang.String)
method org.apache.kafka.streams.kstream.KStream.to(java.lang.String) is not applicable
(actual and formal argument lists differ in length)
method org.apache.kafka.streams.kstream.KStream.to(java.lang.String,org.apache.kafka.streams.kstream.Produced<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity>) is not applicable
(actual and formal argument lists differ in length)
method org.apache.kafka.streams.kstream.KStream.to(org.apache.kafka.streams.processor.TopicNameExtractor<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity>) is not applicable
(actual and formal argument lists differ in length)
method org.apache.kafka.streams.kstream.KStream.to(org.apache.kafka.streams.processor.TopicNameExtractor<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity>,org.apache.kafka.streams.kstream.Produced<java.lang.Integer,com.shapira.examples.streams.clickstreamenrich.model.UserActivity>) is not applicable
(actual and formal argument lists differ in length)
[ERROR] /Users/gwenshap/workspaces/kafka-clickstream-enrich/src/main/java/com/shapira/examples/streams/clickstreamenrich/ClickstreamEnrichment.java:[67,32] no suitable constructor found for KafkaStreams(org.apache.kafka.streams.StreamsBuilder,java.util.Properties)
constructor org.apache.kafka.streams.KafkaStreams.KafkaStreams(org.apache.kafka.streams.Topology,java.util.Properties) is not applicable
(argument mismatch; org.apache.kafka.streams.StreamsBuilder cannot be converted to org.apache.kafka.streams.Topology)
constructor org.apache.kafka.streams.KafkaStreams.KafkaStreams(org.apache.kafka.streams.Topology,org.apache.kafka.streams.StreamsConfig) is not applicable
(argument mismatch; org.apache.kafka.streams.StreamsBuilder cannot be converted to org.apache.kafka.streams.Topology)
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment