Skip to content

Files

Latest commit

0817b06 · Aug 22, 2017

History

History
47 lines (35 loc) · 1.62 KB

messagehub063.md

File metadata and controls

47 lines (35 loc) · 1.62 KB
copyright lastupdated
years
2015, 2017
2017-05-11

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}

How to connect and authenticate

{: #kafka_connect}

To connect to {{site.data.keyword.messagehub}}, the Kafka API uses the

credentials, and the

user

and

from the VCAP_SERVICES environment variable.

Connecting and authenticating in an application other than Java

{: #kafka_notjava notoc}

The {{site.data.keyword.messagehub}} service currently authenticates clients by using SASL PLAIN. Credentials are carried over an encrypted connection. This is a new feature added in Kafka 0.10.0.X. Any client that supports Kafka 0.10 with SASL PLAIN should work with {{site.data.keyword.messagehub}}. Example clients are as follows:

If you are using the earlier Kafka 0.9.0.0 client, you need to use a custom login module, which you can download from {{site.data.keyword.messagehub}} login module External link icon{:new_window}.