Hi Guys Please help me. I want to connect datahub...
# all-things-deployment
r
Hi Guys Please help me. I want to connect datahub with a kerberised kafka running as part of a cloudera cluster.
plus1 1
e
Hi. Is the issue bc of the auth while connecting to kafka? What are the exact paramaters that need to be set to connect to the kerberised kafka?
r
While connecting schema-registry with Kafka i am using below parameters but schema-registry fails to start with error: GSS Exception: no valid credentials provided env_file:
Copy code
SCHEMA_REGISTRY_HOST_NAME=schemaregistry
SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL=SASL_PLAINTEXT
SCHEMA_REGISTRY_KAFKASTORE_SASL_KERBEROS_SERVICE_NAME=kafka
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=host1:9092,host2:9092
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=host1:2181,host2:2181
SCHEMA_REGISTRY_KAFKA_OPTS="-Djava.security.auth.login.config=/tmp/kafka_kerberos_config/jaas.conf -Djava.security.krb5.conf=/tmp/kafka_kerberos_config/krb.conf -Dsun.security.krb5.debug=true"
SCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG=/tmp/jaas.conf
I am not sure if these same parameters will work with datahub-gm, datahub-mae, datahub-mce or not.
@early-lamp-41924 For connecting with kafka we need to specify a keytab file, service name and principal in jaas.conf https://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html