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

Pig can not access reporter of PigHadoopLog in Load Func

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.4.0
    • 0.4.0
    • impl
    • None
    • As per the discussion with Jeff, closing the bug as won't fix
    • Counter LoadFunc Pig

    Description

      I'd like to increment Counter in my own LoadFunc, but it will throw NullPointerException. It seems that the reporter is not initialized.
      I looked into this problem and find that it need to call PigHadoopLogger.getInstance().setReporter(reporter) in PigInputFormat.

      Attachments

        1. Pig_889_Patch.txt
          6 kB
          Jeff Zhang

        Activity

          People

            zjffdu Jeff Zhang
            zjffdu Jeff Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: