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

Hive command "SHOW TABLE EXTENDED LIKE... " failed with NPE

    XMLWordPrintableJSON

    Details

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

      Description

      show table extended in jira like 'sam*' will throw NPE with following error:

      2014-09-05 07:21:12,921 ERROR org.apache.hadoop.hive.ql.Driver: FAILED: NullPointerException null
      java.lang.NullPointerException
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getUnescapedName(BaseSemanticAnalyzer.java:401)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getUnescapedName(BaseSemanticAnalyzer.java:397)
      	at org.apache.sentry.binding.hive.HiveAuthzBindingHook.extractTable(HiveAuthzBindingHook.java:241)
      	at org.apache.sentry.binding.hive.HiveAuthzBindingHook.preAnalyze(HiveAuthzBindingHook.java:167)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:452)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:352)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:995)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:988)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:98)
      	at org.apache.hive.service.cli.operation.SQLOperation.run(SQLOperation.java:163)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.runOperationWithLogCapture(HiveSessionImpl.java:514)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:222)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatement(HiveSessionImpl.java:204)
      	at org.apache.hive.service.cli.CLIService.executeStatement(CLIService.java:168)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:316)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1373)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1358)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge20S.java:608)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
      	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)
      

      In order to have a correct returned result, the HIVE-1363 needs to be resolved as well

        Attachments

        1. SENTRY-423.patch
          9 kB
          Chaoyu Tang

          Issue Links

            Activity

              People

              • Assignee:
                ctang Chaoyu Tang
                Reporter:
                ctang Chaoyu Tang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: