Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-1464

Sentry e2e test failure in org.apache.sentry.tests.e2e.dbprovider.TestDbUriPermissions.testAlterPartitionLocationPrivileges

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.0
    • Component/s: Sentry
    • Labels:
      None

      Description

      rror Message
      
      Error while compiling statement: FAILED: SemanticException java.lang.IllegalArgumentException: java.net.UnknownHostException: s3a
      Stacktrace
      
      org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException java.lang.IllegalArgumentException: java.net.UnknownHostException: s3a
      	at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:241)
      	at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:227)
      	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244)
      	at org.apache.sentry.tests.e2e.hive.TestUriPermissions.testAlterPartitionLocationPrivileges(TestUriPermissions.java:141)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)
      Caused by: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException java.lang.IllegalArgumentException: java.net.UnknownHostException: s3a
      	at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:388)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:145)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:215)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:326)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:425)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:402)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:500)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:746)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: java.lang.IllegalArgumentException: java.net.UnknownHostException: s3a
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1286)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1278)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeAlterTableAddParts(DDLSemanticAnalyzer.java:2774)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:263)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:223)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:446)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:312)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1201)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1188)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:143)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:215)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:326)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:425)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:402)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:500)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:746)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: s3a
      	at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:406)
      	at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:310)
      	at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:727)
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:670)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:154)
      	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2711)
      	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:97)
      	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2748)
      	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2730)
      	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:385)
      	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.tryQualifyPath(BaseSemanticAnalyzer.java:1292)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1283)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1278)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeAlterTableAddParts(DDLSemanticAnalyzer.java:2774)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:263)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:223)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:446)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:312)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1201)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1188)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:143)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:215)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:326)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:425)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:402)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:500)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:746)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.net.UnknownHostException: s3a
      	at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:406)
      	at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:310)
      	at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:727)
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:670)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:154)
      	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2711)
      	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:97)
      	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2748)
      	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2730)
      	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:385)
      	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.tryQualifyPath(BaseSemanticAnalyzer.java:1292)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1283)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity(BaseSemanticAnalyzer.java:1278)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeAlterTableAddParts(DDLSemanticAnalyzer.java:2774)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:263)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:223)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:446)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:312)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1201)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1188)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:143)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:215)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:326)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:425)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:402)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:500)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:746)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

        1. SENTRY-1464.0.patch
          51 kB
          Anne Yu
        2. SENTRY-1464.1.patch
          3 kB
          Anne Yu
        3. SENTRY-1464.2.patch
          55 kB
          Anne Yu

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                anneyu Anne Yu
                Reporter:
                anneyu Anne Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: