Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4156

[PATCH] fix NPE when running scripts stored on hdfs://

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0, 0.12.1, 0.13.0, 0.13.1
    • 0.14.0
    • impl
    • None
    • Linux / CentOS 6

    • Patch Available
    • Reviewed
    • I will also post one for trunk

    Description

      pig -useHCatalog hdfs://myserver:8020/load/scripts/mydir/myscript.pig

      throws a NPE due to a bogus if statement (patch included)

      Error before Pig is launched
      ----------------------------
      ERROR 2999: Unexpected internal error. null

      java.lang.NullPointerException
      at org.apache.pig.impl.io.FileLocalizer.fetchFilesInternal(FileLocalizer.java:799)
      at org.apache.pig.impl.io.FileLocalizer.fetchFiles(FileLocalizer.java:767)
      at org.apache.pig.PigServer.registerJar(PigServer.java:546)
      at org.apache.pig.PigServer.addJarsFromProperties(PigServer.java:253)
      at org.apache.pig.PigServer.<init>(PigServer.java:231)
      at org.apache.pig.PigServer.<init>(PigServer.java:214)
      at org.apache.pig.tools.grunt.Grunt.<init>(Grunt.java:46)
      at org.apache.pig.Main.run(Main.java:603)
      at org.apache.pig.Main.main(Main.java:164)
      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.apache.hadoop.util.RunJar.main(RunJar.java:212)
      ================================================================================

      Attachments

        1. fixnpe-trunk.patch
          0.7 kB
          Andrew C. Oliver
        2. fixnpe.patch
          0.7 kB
          Andrew C. Oliver

        Activity

          People

            acoliver Andrew C. Oliver
            acoliver Andrew C. Oliver
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified