Hi Amith,

What is your environment ?
On ubuntu linux you need to install krb5-user to have the kinit command.

Ivan



2012/7/2 Amith D K <amit...@huawei.com>

>   It didn't wotk in my environment :(
>
> Amith
>
>
>
> ------------------------------
>
>  *From:* Mapred Learn [mapred.le...@gmail.com]
> *Sent:* Saturday, June 30, 2012 3:22 PM
> *To:* hdfs-user@hadoop.apache.org
> *Subject:* Re:
>
>   You need to get a ticket before running any Hdfs command as:
>
>  kinit <userid>@<domain>
>
> Sent from my iPhone
>
> On Jun 29, 2012, at 11:29 PM, Amith D K <amit...@huawei.com> wrote:
>
>    I started Hadoop in secure mode
>
>
>
> when I issue FSCK I got
>
> Is there any configuration at client side to be configured?
>
>
>
>
>
> Thanks and Regards
>
> Amith
>
>
>
> host-xx.xx.xx.xx:/home/amith/secure/hadoop-2.0.1 # ./bin/hdfs fsck /
> 12/06/29 17:46:10 ERROR security.UserGroupInformation:
> PriviledgedActionException as:root (auth:KERBEROS)
> cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by
> GSSException: No valid credentials provided (Mechanism level: Failed to
> find any Kerberos tgt)]
> 12/06/29 17:46:10 WARN ipc.Client: 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)]
> 12/06/29 17:46:10 ERROR security.UserGroupInformation:
> PriviledgedActionException as:root (auth:KERBEROS)
> cause: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)]
> 12/06/29 17:46:10 ERROR security.UserGroupInformation:
> PriviledgedActionException as:root (auth:KERBEROS)
> cause: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: "host-xx.xx.xx.xx/
> 10.18.40.95"; destination host is: "host-xx.xx.xx.xx":9000;
> Exception in thread "main" 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:
> "host-xx.xx.xx.xx/10.18.40.95"; destination host is:
> "host-xx.xx.xx.xx":9000;
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:760)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1169)
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:184)
>         at $Proxy9.getFileInfo(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:165)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:84)
>         at $Proxy9.getFileInfo(Unknown Source)
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:612)
>         at
> org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1382)
>         at
> org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:748)
>         at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1197)
>         at
> org.apache.hadoop.hdfs.HAUtil.getAddressOfActive(HAUtil.java:288)
>         at
> org.apache.hadoop.hdfs.tools.DFSck.getCurrentNamenodeAddress(DFSck.java:224)
>         at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:230)
>         at org.apache.hadoop.hdfs.tools.DFSck.access$000(DFSck.java:70)
>         at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:129)
>         at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:126)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:396)
>         at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1232)
>         at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:125)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
>         at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:308)
> Caused by: 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)]
>         at org.apache.hadoop.ipc.Client$Connection$1.run(Client.java:545)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:396)
>         at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1232)
>         at
> org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:509)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:593)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:216)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1275)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1145)
>         ... 26 more
> Caused by: javax.security.sasl.SaslException: GSS initiate failed [Caused
> by GSSException: No valid credentials provided (Mechanism level: Failed to
> find any Kerberos tgt)]
>         at
> com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:194)
>         at
> org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:137)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:420)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$1200(Client.java:216)
>         at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:586)
>         at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:583)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:396)
>         at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1232)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:582)
>         ... 29 more
> Caused by: GSSException: No valid credentials provided (Mechanism level:
> Failed to find any Kerberos tgt)
>         at
> sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:130)
>         at
> sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:106)
>         at
> sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:172)
>         at
> sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:209)
>         at
> sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:195)
>         at
> sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:162)
>         at
> com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:175)
>         ... 38 more
>
>
>


-- 
Ivan Frain
11, route de Grenade
31530 Saint-Paul-sur-Save
mobile: +33 (0)6 52 52 47 07

Reply via email to