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

NullPointerException in setJobtrackerLocation() in PigContext.java:68

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1.0
    • 0.1.0
    • impl
    • None
    • Patch Available

    Description

      java.lang.NullPointerException
          at org.apache.pig.impl.PigContext.setJobtrackerLocation(PigContext.java:425)
          ... (the rest of the stacktrace is my own servlet code)
      

      The code:

      final PigContext pigContext = new PigContext(ExecType.MAPREDUCE);
      pigContext.setJobtrackerLocation(configuration.get("mapred.job.tracker"));
      pigContext.setFilesystemLocation(configuration.get("fs.default.name"));
              
      final PigServer pigServer = new PigServer(pigContext);
      

      Where configuration is a org.apache.hadoop.conf.Configuration object initialized with spring framework.

      Attachments

        1. PigContext-PIG-69-v01.patch
          1 kB
          Benjamin Francisoud
        2. PigContext-PIG-69-v02.patch
          1 kB
          Benjamin Francisoud

        Issue Links

          Activity

            People

              francisoud Benjamin Francisoud
              francisoud Benjamin Francisoud
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: