title: How to read data from HDFS using spark streaming?
body: <pre><code>JavaSparkContext sc = new JavaSparkContext(conf);
  SQLContext sqlContext = new SQLContext(sc);
  JavaStreamingContext ssc = new JavaStreamingContext(sc, new Duration(1000));
  </code></pre>
  
  <p>My HDFS directory contains json files</p>