Hortonworks HDP How to set up a Kerberos enabled Kafka
I have recently downloaded Hortonworks HDP VM. I am able to run Kafka on it. I can produce/consume messages through security-protocol=PLAINTEXT.
However, I now want to consume through security-protocol=SASL_PLAINTEXT and Kerberos.
I know that I can setup, SASL_PLAINTEXT through Ambari (Screenshot attached) but I would like to know if there is a consolidated guide or article on this which would let me know of the following?
- How to setup Kerberos on HDP Sandbox VM
- How to setup keytabs in HDP Sandbox VM
- How to setup Kafka to run with SASL_PLAINTEXT in HDP Sandbox VM
- How to consume/produce through security-protocl=SASL_PLAINTEXT
My HDP Sandbox version details are:
== Sandbox Information ==
Platform: hdp-security
Build date: 06-18-2018
Ambari version: 2.6.2.0-155
Hadoop version: Hadoop 2.7.3.2.6.5.0-292
OS: CentOS Linux release 7.5.1804 (Core)
====
Screenshot for KAFKA SASL_PLAINTEXT setup through AMBARI is given below:

apache-kafka kerberos hortonworks-data-platform hortonworks-sandbox keytab
add a comment |
I have recently downloaded Hortonworks HDP VM. I am able to run Kafka on it. I can produce/consume messages through security-protocol=PLAINTEXT.
However, I now want to consume through security-protocol=SASL_PLAINTEXT and Kerberos.
I know that I can setup, SASL_PLAINTEXT through Ambari (Screenshot attached) but I would like to know if there is a consolidated guide or article on this which would let me know of the following?
- How to setup Kerberos on HDP Sandbox VM
- How to setup keytabs in HDP Sandbox VM
- How to setup Kafka to run with SASL_PLAINTEXT in HDP Sandbox VM
- How to consume/produce through security-protocl=SASL_PLAINTEXT
My HDP Sandbox version details are:
== Sandbox Information ==
Platform: hdp-security
Build date: 06-18-2018
Ambari version: 2.6.2.0-155
Hadoop version: Hadoop 2.7.3.2.6.5.0-292
OS: CentOS Linux release 7.5.1804 (Core)
====
Screenshot for KAFKA SASL_PLAINTEXT setup through AMBARI is given below:

apache-kafka kerberos hortonworks-data-platform hortonworks-sandbox keytab
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
1
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11
add a comment |
I have recently downloaded Hortonworks HDP VM. I am able to run Kafka on it. I can produce/consume messages through security-protocol=PLAINTEXT.
However, I now want to consume through security-protocol=SASL_PLAINTEXT and Kerberos.
I know that I can setup, SASL_PLAINTEXT through Ambari (Screenshot attached) but I would like to know if there is a consolidated guide or article on this which would let me know of the following?
- How to setup Kerberos on HDP Sandbox VM
- How to setup keytabs in HDP Sandbox VM
- How to setup Kafka to run with SASL_PLAINTEXT in HDP Sandbox VM
- How to consume/produce through security-protocl=SASL_PLAINTEXT
My HDP Sandbox version details are:
== Sandbox Information ==
Platform: hdp-security
Build date: 06-18-2018
Ambari version: 2.6.2.0-155
Hadoop version: Hadoop 2.7.3.2.6.5.0-292
OS: CentOS Linux release 7.5.1804 (Core)
====
Screenshot for KAFKA SASL_PLAINTEXT setup through AMBARI is given below:

apache-kafka kerberos hortonworks-data-platform hortonworks-sandbox keytab
I have recently downloaded Hortonworks HDP VM. I am able to run Kafka on it. I can produce/consume messages through security-protocol=PLAINTEXT.
However, I now want to consume through security-protocol=SASL_PLAINTEXT and Kerberos.
I know that I can setup, SASL_PLAINTEXT through Ambari (Screenshot attached) but I would like to know if there is a consolidated guide or article on this which would let me know of the following?
- How to setup Kerberos on HDP Sandbox VM
- How to setup keytabs in HDP Sandbox VM
- How to setup Kafka to run with SASL_PLAINTEXT in HDP Sandbox VM
- How to consume/produce through security-protocl=SASL_PLAINTEXT
My HDP Sandbox version details are:
== Sandbox Information ==
Platform: hdp-security
Build date: 06-18-2018
Ambari version: 2.6.2.0-155
Hadoop version: Hadoop 2.7.3.2.6.5.0-292
OS: CentOS Linux release 7.5.1804 (Core)
====
Screenshot for KAFKA SASL_PLAINTEXT setup through AMBARI is given below:

apache-kafka kerberos hortonworks-data-platform hortonworks-sandbox keytab
apache-kafka kerberos hortonworks-data-platform hortonworks-sandbox keytab
edited Dec 28 '18 at 20:09
cricket_007
79.9k1142110
79.9k1142110
asked Dec 28 '18 at 12:37
Fawad ShahFawad Shah
5801515
5801515
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
1
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11
add a comment |
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
1
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
1
1
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11
add a comment |
1 Answer
1
active
oldest
votes
First you need to install Kerberos
You can follow the instrucion
https://github.com/dmilan77/Kerberos/blob/master/Kerbersos_install.md
Once Installed you can use HDP Kerberos wizart to install it.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53958745%2fhortonworks-hdp-how-to-set-up-a-kerberos-enabled-kafka%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First you need to install Kerberos
You can follow the instrucion
https://github.com/dmilan77/Kerberos/blob/master/Kerbersos_install.md
Once Installed you can use HDP Kerberos wizart to install it.
add a comment |
First you need to install Kerberos
You can follow the instrucion
https://github.com/dmilan77/Kerberos/blob/master/Kerbersos_install.md
Once Installed you can use HDP Kerberos wizart to install it.
add a comment |
First you need to install Kerberos
You can follow the instrucion
https://github.com/dmilan77/Kerberos/blob/master/Kerbersos_install.md
Once Installed you can use HDP Kerberos wizart to install it.
First you need to install Kerberos
You can follow the instrucion
https://github.com/dmilan77/Kerberos/blob/master/Kerbersos_install.md
Once Installed you can use HDP Kerberos wizart to install it.
answered Jan 7 at 17:08
Milan DasMilan Das
64
64
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53958745%2fhortonworks-hdp-how-to-set-up-a-kerberos-enabled-kafka%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please edit your question to include what issues you are having after trying this configuration. Asking for tutorials is considered off-topic fof StackOverflow. Perhaps you can have better luck on Hortonworks forums
– cricket_007
Dec 28 '18 at 18:21
1
In any case, start at the HDP documentation - docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/… and follow the guides on the left down from there where you can find Kafka setup
– cricket_007
Dec 28 '18 at 20:11