[ https://issues.apache.org/jira/browse/STORM-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roshan Naik updated STORM-1580: ------------------------------- Attachment: HdfsSpoutTopology.java Sorry for the delayed update... kept getting pulled into other urgent things and took sometime to setup a kerberized cluster. *Update:* I modified HdfsSpoutTopology.java (from examples/storm-starter ) for kerberos and tried it on a secure cluster. It worked fine. I am attaching the modified java file. Your error might indicate some issue likely on the kerberos setup side. try these: - kinit with the same keytab and principal on that host and verify its ok by running some hadoop fs -ls commands - Ensure hdfs-site.xml and core-site.xml from the kerberized cluster are packaged as resources in your topology. A quick way to do this is to copy them into storm/lib and restart supervisor. > Secure hdfs spout failed > ------------------------ > > Key: STORM-1580 > URL: https://issues.apache.org/jira/browse/STORM-1580 > Project: Apache Storm > Issue Type: Bug > Components: storm-hdfs > Reporter: guoht > Labels: security > Attachments: HdfsSpoutTopology.java > > > Some error occured when using secure hdfs spout: > "Login successful for user t...@example.com using keytab file > /home/test/test.keytab > 2016-02-26 10:33:14 o.a.h.i.Client [WARN] Exception encountered while > connecting to the server : javax.security.sasl.SaslException: GSS initiate > failed [Caused by GSSException: No valid credentials provided (Mechanism > level: Failed to find any Kerberos tgt)] > 2016-02-26 10:33:14 o.a.h.i.Client [WARN] Exception encountered while > connecting to the server : javax.security.sasl.SaslException: GSS initiate > failed [Caused by GSSException: No valid credentials provided (Mechanism > level: Failed to find any Kerberos tgt)] > 2016-02-26 10:33:14 o.a.h.i.r.RetryInvocationHandler [INFO] Exception while > invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over > hnn025/192.168.137.2:8020 after 1 fail over attempts. Trying to fail over > immediately. > java.io.IOException: Failed on local exception: java.io.IOException: > javax.security.sasl.SaslException: GSS initiate failed [Caused by > GSSException: No valid credentials provided (Mechanism level: Failed to find > any Kerberos tgt)]; Host Details : local host is: "HDD021/192.168.137.6"; > destination host is: "hnn025":8020;" -- This message was sent by Atlassian JIRA (v6.3.4#6332)