Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21992

REPL DUMP throws NPE when dumping Create Function event.

    XMLWordPrintableJSON

    Details

    • Target Version/s:

      Description

      REPL DUMP throws NPE while dumping Create Function event.It seems, null check is missing for function.getResourceUris().

      java.lang.NullPointerException
              at org.apache.hadoop.hive.ql.parse.repl.dump.io.FunctionSerializer.writeTo(FunctionSerializer.java:54)
              at org.apache.hadoop.hive.ql.parse.repl.dump.events.CreateFunctionHandler.handle(CreateFunctionHandler.java:48)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.dumpEvent(ReplDumpTask.java:304)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.incrementalDump(ReplDumpTask.java:231)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.execute(ReplDumpTask.java:121)
              at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:212)
              at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:103)
              at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2727)
              at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2394)
              at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:2066)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1764)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1758)
              at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157)
              at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)
              at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:87)
              at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:324)
              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:1730)
              at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:342)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask. java.lang.NullPointerException
              at org.apache.hadoop.hive.ql.parse.repl.dump.io.FunctionSerializer.writeTo(FunctionSerializer.java:54)
              at org.apache.hadoop.hive.ql.parse.repl.dump.events.CreateFunctionHandler.handle(CreateFunctionHandler.java:48)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.dumpEvent(ReplDumpTask.java:304)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.incrementalDump(ReplDumpTask.java:231)
              at org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask.execute(ReplDumpTask.java:121)
              at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:212)
              at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:103)
              at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2727)
              at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2394)
              at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:2066)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1764)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1758)
              at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157)
              at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:226)
              at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:87)
              at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:324)
              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:1730)
              at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:342)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

        1. HIVE-21992.02.patch
          6 kB
          Sankar Hariappan
        2. HIVE-21992.01.patch
          5 kB
          Sankar Hariappan

          Issue Links

            Activity

              People

              • Assignee:
                sankarh Sankar Hariappan
                Reporter:
                sankarh Sankar Hariappan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m