title: Join JavaPairRDD and JavaPairDStream in Spark
body: <p>I have <strong>JavaPairDStream>String, Long> stream</strong> and  <strong>JavaPairRDD >String, Long> batch</strong>.
  Now I want to join these two. Basically I want to join real time data with Batch data using Spark. But directly using JavaPairDStream inside argument to join is giving error. What changes I have to make to join these two. Also is this right way or there is another method to combine batch view and real time view in spark.</p>
  
  <p>For example: <code>stream.leftOuterJoin(batch);</code>
  This shows error. I know they are two different data types but since JavaPairDStream is abstraction for real time RDD it should work.</p>
  
  <p>Any suggestions regardinf how I can join batch view and real time view would be helpful. Thanks.</p>
  
  <p>And sorry for the wrong <strong>></strong> in JavaPairDStream and  JavaPairRDD. I wasn't able to find correct escape character to write it correctly.</p>