Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3697

Explore completely broken on secure CDH 5.1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.0
    • Component/s: Explore
    • Labels:
      None
    • Rank:
      1|hzyzy7:

      Description

      No tables get created. I see these exceptions in the explore container:

      javax.security.sasl.SaslException: GSS initiate failed
              at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:212) ~[na:1.7.0_75]
              at org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:94) [org.apache.thrift.libthrift-0.9.0.jar:0.9.0]
              at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253) ~[org.apache.thrift.libthrift-0.9.0.jar:0.9.0]
              at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37) [org.apache.thrift.libthrift-0.9.0.jar:0.9.0]
              at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_75]
              at javax.security.auth.Subject.doAs(Subject.java:415) [na:1.7.0_75]
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1554) [hadoop-common-2.3.0-cdh5.1.5.jar:na]
              at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAssumingTransport.java:49) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:296) [hive-metastore-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:169) [hive-metastore-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.7.0_75]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [na:1.7.0_75]
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.7.0_75]
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [na:1.7.0_75]
              at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1161) [hive-metastore-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:62) [hive-metastore-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:72) [hive-metastore-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2394) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2405) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:953) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:908) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeCreateTable(SemanticAnalyzer.java:9016) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8325) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:317) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:455) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:353) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:996) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:989) [hive-exec-0.12.0-cdh5.1.5.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:98) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.operation.SQLOperation.run(SQLOperation.java:163) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.session.HiveSessionImpl.runOperationWithLogCapture(HiveSessionImpl.java:524) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:222) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:209) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:182) [hive-service-0.12.0-cdh5.1.5.jar-1442450923051.jar:0.12.0-cdh5.1.5]
              at co.cask.cdap.explore.service.hive.Hive12CDH5ExploreService.doExecute(Hive12CDH5ExploreService.java:114) [co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na]
              at co.cask.cdap.explore.service.hive.BaseHiveExploreService.execute(BaseHiveExploreService.java:747) [co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na]
              at co.cask.cdap.explore.service.ExploreTableManager.enableDataset(ExploreTableManager.java:234) [co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na]
              at co.cask.cdap.explore.executor.ExploreExecutorHttpHandler.enableDataset(ExploreExecutorHttpHandler.java:162) [co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]
              at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:79) [co.cask.http.netty-http-0.12.0.jar:na]
              at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41) [co.cask.http.netty-http-0.12.0.jar:na]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124) [io.netty.netty-3.6.6.Final.jar:na]
              at co.cask.cdap.common.http.AuthenticationChannelHandler.messageReceived(AuthenticationChannelHandler.java:59) [co.cask.cdap.cdap-common-3.2.0-SNAPSHOT.jar:na]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [io.netty.netty-3.6.6.Final.jar:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
      Caused by: org.ietf.jgss.GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
              at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147) ~[na:1.7.0_75]
              at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:121) ~[na:1.7.0_75]
              at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187) ~[na:1.7.0_75]
              at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:223) ~[na:1.7.0_75]
              at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212) ~[na:1.7.0_75]
              at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179) ~[na:1.7.0_75]
              at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:193) ~[na:1.7.0_75]
              ... 59 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhooshan Bhooshan Mogal
                Reporter:
                bhooshan Bhooshan Mogal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: