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

org.apache.pig.pigunit.pig.PigServer does not initialize set default log level of pigContext

    Details

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

      pig-0.10.0, Hadoop 2.0.0-cdh4.0.1 on Kubuntu 12.04 64Bit.

      Description

      The class org.apache.pig.pigunit.pig.PigServer does not set the default log level of its instance of PigContext so that pigunit tests that have

      set debug off;
      

      in them, will cause a NullPointerException at org.apache.pig.PigServer line 291 because the default log level is not set.

      So I think org.apache.pig.pigunit.pig.PigServer should do something like

      pigContext.setDefaultLogLevel(Level.INFO);
      

      in its contructors.

        Attachments

        1. PIG-2833.patch
          2 kB
          Cheolsoo Park

          Activity

            People

            • Assignee:
              cheolsoo Cheolsoo Park
              Reporter:
              johannesch Johannes Schwenk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: