Troubleshooting Java JAAS Configuration Issue in executor.yaml

Original Slack Thread

I get this error message in datahub-action log ?what is problem with my executor.yaml ?
KafkaException: KafkaError{code=INVALID_ARG,val=-186,str=“Java JAAS configuration is not supported, see https://github.com/confluentinc/librdkafka/wiki/SASL-with-librdkafka for more information.”}

Hey there! :wave:

<@U06TM7M40RK> Can you help with the questions in this thread?

:information_source: Please continue to tag RunLLM (e.g <@U06TM7M40RK>) to have it continue generating responses!

The error message you’re encountering indicates that the Java JAAS configuration is not supported in the context of DataHub Actions, which uses a Python-based framework. This is a common issue when trying to use Java-based configurations with Python libraries, such as confluent-kafka-python, which is used by DataHub Actions.

To resolve this issue, you need to adjust your executor.yaml to use the appropriate Python-style configuration for SASL authentication. Here are some steps you can follow:

  1. Remove Java JAAS Configuration: Ensure that your executor.yaml does not include any Java JAAS configuration entries, as these are not supported.

  2. Use Python-style SASL Configuration: Update your executor.yaml to use the Python-style configuration for SASL. This involves setting the sasl.username and sasl.password directly in the configuration file.

  3. Example Configuration: Here is an example of how your executor.yaml should look:

    connection:
      bootstrap: "<your_kafka_bootstrap_server>"
      consumer_config:
        security.protocol: "SASL_SSL"
        sasl.mechanism: "PLAIN"
        sasl.username: "your_kafka_username"
        sasl.password: "your_kafka_password"
      schema_registry_url: "<your_schema_registry_url>"
      schema_registry_config:
        basic.auth.user.info: "your_schema_registry_username:your_schema_registry_password"
    
  4. Ensure Correct Environment Variables: Make sure that any environment variables used in your configuration are correctly set and accessible by the DataHub Actions pod.

For more detailed guidance, you can refer to the <Integrating with Confluent Cloud | DataHub documentation on configuring Confluent Cloud for DataHub Actions>.

Would you like more detailed step-by-step guidance on any of these points?

Sources:

Hi, how did my answer work out for you? Need any more assistance? You can also tag <@U07FV3UHE4D> to let your fellow community members know you’re still looking for guidance.

Hi :slight_smile: ! Did this interaction resolve your issue or do you still require assistance ?

Please tag @ RunLLM if you still need further assistance !

Or tag @Datahub Community Support if you require a person to take a look :slight_smile:

Hope this helps ! ><