title: Error in Spark streaming with Kafka
body: <p>When I launch a streaming task through <code>spark-submit</code> , I get warning messages about Kafka properties being invalid:</p>
  
  <pre><code>VerifiableProperties: Property auto.offset.reset is overridden to largest
  VerifiableProperties: Property enable.auto.commit is not valid.
  VerifiableProperties: Property sasl.kerberos.service.name is not valid
  VerifiableProperties: Property key.deserializer is not valid
  ...
  VerifiableProperties: Property zookeeper.connect is overridden to ....
  </code></pre>
  
  <p>The property <code>zookeeper.connect</code> is picked up properly.</p>
  
  <p>How is it possible that following property</p>
  
  <p><code>kafkaParams.put("enable.auto.commit", "false");</code></p>
  
  <p>...be treated as invalid?</p>
  
  <p>In my java code, I've provided kafka parameters in a HashMap and pass this to <code>KafkaUtils.createDirectStream()</code> API. I don't know why the properties are warned as invalid.</p>
  
  <p>When I try to print the <code>JavaPairInputDStream</code> as 
      <code>directStream.print();</code></p>
  
  <p>It throws exception:</p>
  
  <pre><code>java.io.EOFException: Received -1 when reading from channel, socket had likely been closed.
  </code></pre>
  
  <p>the jaas.conf is provided to the spark-submit command as</p>
  
  <pre><code>--conf "spark.executor.extraJavaOptions=-Djava.security.auth.login.config=jaas.conf"
  </code></pre>
  
  <p>private key, public key are included in the spark-submit command as</p>
  
  <pre><code>--files jaas.conf,privatekey,publickey
  </code></pre>