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

Pig 0.14 cannot identify the uppercase of DECLARE and DEFAULT

    Details

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

      Description

      One of the users encountered

      Unexpected internal error. Pig Internal Error. Invalid preprocessor command
      specified : %DECLARE
      

      Changing the %DECLARE to %declare, it can pass the preprocessor's
      operations.

        Activity

        Hide
        daijy Daniel Dai added a comment -

        Here is the stack:

        ERROR 2999: Unexpected internal error. Pig Internal Error. Invalid preprocessor command specified : %DEFAULT
        
        java.lang.IllegalArgumentException: Pig Internal Error. Invalid preprocessor command specified : %DEFAULT
                at org.apache.pig.tools.parameters.PreprocessorContext.validate(PreprocessorContext.java:163)
                at org.apache.pig.tools.parameters.PigFileParser.input(PigFileParser.java:62)
                at org.apache.pig.tools.parameters.PigFileParser.Parse(PigFileParser.java:43)
                at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.parsePigFile(ParameterSubstitutionPreprocessor.java:95)
                at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:76)
                at org.apache.pig.impl.PigContext.doParamSubstitution(PigContext.java:410)
                at org.apache.pig.Main.runParamPreprocessor(Main.java:810)
                at org.apache.pig.Main.run(Main.java:588)
                at org.apache.pig.Main.main(Main.java:170)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
        
        Show
        daijy Daniel Dai added a comment - Here is the stack: ERROR 2999: Unexpected internal error. Pig Internal Error. Invalid preprocessor command specified : %DEFAULT java.lang.IllegalArgumentException: Pig Internal Error. Invalid preprocessor command specified : %DEFAULT at org.apache.pig.tools.parameters.PreprocessorContext.validate(PreprocessorContext.java:163) at org.apache.pig.tools.parameters.PigFileParser.input(PigFileParser.java:62) at org.apache.pig.tools.parameters.PigFileParser.Parse(PigFileParser.java:43) at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.parsePigFile(ParameterSubstitutionPreprocessor.java:95) at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:76) at org.apache.pig.impl.PigContext.doParamSubstitution(PigContext.java:410) at org.apache.pig.Main.runParamPreprocessor(Main.java:810) at org.apache.pig.Main.run(Main.java:588) at org.apache.pig.Main.main(Main.java:170) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
        Hide
        rohini Rohini Palaniswamy added a comment -

        +1

        Show
        rohini Rohini Palaniswamy added a comment - +1
        Hide
        daijy Daniel Dai added a comment -

        Patch committed to both 0.14 branch and trunk. Thanks Rohini!

        Show
        daijy Daniel Dai added a comment - Patch committed to both 0.14 branch and trunk. Thanks Rohini!

          People

          • Assignee:
            daijy Daniel Dai
            Reporter:
            rohini Rohini Palaniswamy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development