Kafka Streaming- messages are not getting sent from one topic to another topic -


i trying send messages 1 kafka topic using kaska stream api. there no error can see in code runs fine. when publish messages in streams-input topic using produce api

kafka-console-producer.sh --broker-list xxxx:6667   --topic streams-input 

messages not posting streams-output topic

public class wordcountapplication {      public static void main(final string[] args) throws exception {         properties config = new properties();         config.put(streamsconfig.application_id_config, "wordcount");         config.put(streamsconfig.bootstrap_servers_config, "xxxx:6667");         config.put(streamsconfig.key_serde_class_config, serdes.string().getclass());         config.put(streamsconfig.value_serde_class_config, serdes.string().getclass());          kstreambuilder builder = new kstreambuilder();                   final kstream<string, string> textlines = builder.stream("streams-input");               textlines.to("streams-output");     //  builder.stream("streams-input").to("streams-output");          kafkastreams streams = new kafkastreams(builder, config);                 streams.start();          // add shutdown hook respond sigterm , gracefully close kafka streams         runtime.getruntime().addshutdownhook(new thread(new runnable() {             @override             public void run() {                 streams.close();             }         }));     } } 

thanks suggestions. tried same code kafka 0.11.0 worked. added config.put(streamsconfig.state_dir_config, "data_pipe"); avoid exception in thread “streamthread-1” org.apache.kafka.streams.errors.streamsexception: failed rebalance real time data streaming pipe line working. & regards, megha


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -