title: Where can I pass the properties file in Datastage when using Kafka Connector
body: <p>There are some properties that I want to change as, for instance, <code>security.protocol</code> from <code>SASL_PLAINTEXT</code> to <code>SASL_SSL</code>. But the Kafka Connector in Datastage has very limited number of properties (host, use kerberos, principal name, keytab, topic name, consumer group, max poll records, max messages, reset policy timeout and classpath)</p>
  
  <p>While reading <a href="https://www.ibm.com/support/knowledgecenter/SSWSR9_11.6.0/com.ibm.swg.im.mdmhs.kafka.export.doc/topics/kafka_security_client.html" rel="nofollow noreferrer">this documentation</a> the very first thing to do is to pass the JAAS configuration file. But my question is:</p>
  
  <ol>
  <li><p><em>Where</em> should I put this file? In the Datastage or Kafka side?</p></li>
  <li><p><strong>How</strong> can I point to this file?</p></li>
  </ol>
  
  <p>This is what I tried:</p>
  
  <ol>
  <li><p>Added a <code>before-job subroutine</code> in Datastage and use the following command:</p>
  
  <pre><code>export KAFKA_OPTS="-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
  </code></pre></li>
  <li><p>Added the <code>-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf</code> to the <code>Kafka Client Classpath</code> in the Kafka Connector propertis in Datastage</p></li>
  </ol>
  
  <p>But no matter what I do, everytime that I run the job the parameter <code>security.protocol</code> keeps unchanged:</p>
  
  <pre><code>Kafka_Connector_2,1: security.protocol = SASL_PLAINTEXT
  </code></pre>
  
  <p>Meaning that it's not reading the properties file.</p>
  
  <p>Have you faced similar problem like these?</p>