title: How to store data from Kafka to Redis using two different streams with different topics in pyspark streaming application?
body: <p>I have a pyspark application which configures 2 data streams:</p>
  
  <p><strong>Data flow A)</strong> Read from kafka (topics 1 and 2) -> merge the topics DStreams -> do stuff -> output to REDIS.</p>
  
  <p><strong>Data flow B)</strong> Read from kafka (topics 3, 4 and 5) -> merge the topics DStreams -> do stuff -> output to same REDIS.</p>
  
  <p>I can get data inside REDIS only when one of them are configured, but not both.</p>
  
  <p>Actually, this happens even if I change REDIS output to pprint. I only get output printed if only one the two flows are active.</p>
  
  <p>What I am missing?</p>