title: Get JavaRdd from JavaDstream
body: <p>I am building an web-app, where I am streaming twitter data into JavaDStream and then store these into kafka.I want to get JavaRdd from JavaDStream and store these Rdd's to kafka server. But I am not able to figure it out how to get the Rdd from the Dstream. Following is my code for refernce.</p>
  
  <pre><code>JavaDStream&lt;String&gt; statuses = twitterStream.map(
                  new Function&lt;Status, String&gt;() {
                      public String call(Status status) { 
                          return status.getText();
                          }
                  }
          );
  </code></pre>
  
  <p>Could anyone suggest a way?</p>