Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to serialize keytab files as byte stream within a storm toplogy jar and configure itself on worker node

How to serialize keytab files as byte stream within a storm toplogy jar and configure itself on worker node

New Contributor

I have storm cluster which is non kerberized connecting to a hdfs cluster which is kerberized and I am placing the keytab file in all the nodes in the storm cluster. Is there any way to serialize the keytab file and HdfsBolt should be in a way that it should read the serialized keytab file while submitting the storm topology jar and configure themselves on the worker node.

Using ambari 2.6.3 and storm-kafka 1.1.0

1 REPLY 1
Highlighted

Re: How to serialize keytab files as byte stream within a storm toplogy jar and configure itself on worker node

New Contributor

Resolved the problem by repackaging the storm topology jar using jar utility with the necessary files such as hdfs-site.xml,core-site.xml,hive-site.xml . the jar command will be jar -uvf <storm-jar> hdfs-site.xml.

Instead of bundling the *-site.xmls in the resources folder of the project , we can have it in external location and use jar utility to repackage the storm jar alone.

Don't have an account?
Coming from Hortonworks? Activate your account here