Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-1149

%sh interpreter does not work with kerberoes enabled cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Interpreters
    • None
    • kereberoes enabled cluster

    Description

      It is observed that %sh interpreter gives GSS error exception while trying to copy test data into HDFS

      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)]
      at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
      at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:413)
      at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:595)
      at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:397)
      at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:761)
      at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:757)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
      at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:756)
      at org.apache.hadoop.ipc.Client$Connection.access$3200(Client.java:397)
      at org.apache.hadoop.ipc.Client.getConnection(Client.java:1617)
      at org.apache.hadoop.ipc.Client.call(Client.java:1448)
      at org.apache.hadoop.ipc.Client.call(Client.java:1395)
      at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)
      at com.sun.proxy.$Proxy10.getFileInfo(Unknown Source)
      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:816)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:256)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
      at com.sun.proxy.$Proxy11.getFileInfo(Unknown Source)
      at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2151)
      at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1408)
      at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1404)
      at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1404)
      at org.apache.hadoop.fs.Globber.getFileStatus(Globber.java:57)
      at org.apache.hadoop.fs.Globber.glob(Globber.java:252)
      at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1668)
      at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:326)
      at org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:235)
      at org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:218)
      at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:201)
      at org.apache.hadoop.fs.shell.Command.run(Command.java:165)
      at org.apache.hadoop.fs.FsShell.run(FsShell.java:297)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
      at org.apache.hadoop.fs.FsShell.main(FsShell.java:350)
      Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
      at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
      at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
      at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
      at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
      at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:192)
      ... 40 more
      stat: 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: <hostname>; destination host is: <hostname>;
      16/06/30 17:42:22 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)]
      at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
      at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:413)
      at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:595)
      at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:397)
      at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:761)
      at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:757)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
      at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:756)
      at org.apache.hadoop.ipc.Client$Connection.access$3200(Client.java:397)
      at org.apache.hadoop.ipc.Client.getConnection(Client.java:1617)
      at org.apache.hadoop.ipc.Client.call(Client.java:1448)
      at org.apache.hadoop.ipc.Client.call(Client.java:1395)
      at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)
      at com.sun.proxy.$Proxy10.getFileInfo(Unknown Source)
      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:816)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:256)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
      at com.sun.proxy.$Proxy11.getFileInfo(Unknown Source)
      at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2151)
      at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1408)
      at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1404)
      at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1404)
      at org.apache.hadoop.fs.Globber.getFileStatus(Globber.java:57)
      at org.apache.hadoop.fs.Globber.glob(Globber.java:252)
      at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1668)
      at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:326)
      at org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:235)
      at org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:218)
      at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:201)
      at org.apache.hadoop.fs.shell.Command.run(Command.java:165)
      at org.apache.hadoop.fs.FsShell.run(FsShell.java:297)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
      at org.apache.hadoop.fs.FsShell.main(FsShell.java:350)
      Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
      at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
      at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
      at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
      at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
      at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:192)
      ... 40 more
      stat: 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:<hostname>; destination host is: <hostname>

      Attachments

        Issue Links

          Activity

            People

              rconline Rohit Choudhary
              kbadani Kshitij Badani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: