title: How to read from specific Kafka partition in Spark structured streaming
body: <p>I have three partitions for my Kafka topic and I was wondering if I could read from just one partition out of three. My consumer is spark structured streaming application. </p>
  
  <p>Below is my existing kafka settings in spark.</p>
  
  <pre><code>  val inputDf = spark.readStream
    .format("kafka")
    .option("kafka.bootstrap.servers", brokers)
    .option("subscribe", topic)
    .option("startingOffsets", "latest")
    .load()
  </code></pre>