We use confluent Kafka as our Central message bus....
# ingestion
r
We use confluent Kafka as our Central message bus. Is there anyone who can share an example of their Kafka ingestion, I am not able to get it working, and pretty sure it has to do something with how i am passing the credentials.
Copy code
source:
  type: "kafka"
  config:
    connection:
      bootstrap: "bootstrap:9092"
      consumer_config:
        sasl.username: "youthoughtiwasreal"
        sasl.password: "icantsharethat"
        security.protocol: "sasl_plaintext"
      schema_registry_url: "<https://sr:8081>"
      schema_registry_config:
        <http://basic.auth.user.info|basic.auth.user.info>: nonono:istillcannotshare

sink:
  type: "datahub-rest"
  config:
    server: "<http://gmsendpoint>"
b
Hey! Can you share the output you get when running ingestion?
r
Copy code
---- (full traceback above) ----
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/entrypoints.py", line 95, in main
    sys.exit(datahub(standalone_mode=False, **kwargs))
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/cli/ingest_cli.py", line 68, in run
    pipeline = Pipeline.create(pipeline_config, dry_run, preview)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/ingestion/run/pipeline.py", line 143, in create
    return cls(config, dry_run=dry_run, preview_mode=preview_mode)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/ingestion/run/pipeline.py", line 109, in __init__
    self.source: Source = source_class.create(
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/ingestion/source/kafka.py", line 76, in create
    return cls(config, ctx)
File "/Users/ajaykumarmuppuri/opt/anaconda3/lib/python3.8/site-packages/datahub/ingestion/source/kafka.py", line 61, in __init__
    self.consumer = confluent_kafka.Consumer(

KafkaException: KafkaError{code=_INVALID_ARG,val=-186,str="Failed to create consumer: Invalid sasl.kerberos.kinit.cmd value: Property not available: "sasl.kerberos.keytab""}
s
Can you look at https://datahubproject.io/docs/deploy/confluent-cloud/ and pass the configuration given here to test out your connectivity? If you see any errors please do share them
r
I believe this is to use confluent kafka instead of the native kafka datahub uses. I intend to ingest kafka metadata from confluent kafka
s
The issue is with connectivity. At the end of this document are some configurations which are tested for connectivity. I was suggesting to try to use those configurations and see if it solves connectivity in the recipe
@red-pizza-28006 Did you manage to solve this?
r
I will get back to you on this