You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Mark Butler (JIRA)" <ji...@apache.org> on 2011/08/30 14:43:37 UTC

[jira] [Created] (PIG-2253) --config option does not work

--config option does not work
-----------------------------

                 Key: PIG-2253
                 URL: https://issues.apache.org/jira/browse/PIG-2253
             Project: Pig
          Issue Type: Bug
          Components: impl
    Affects Versions: 0.9.0, 0.8.1
            Reporter: Mark Butler
            Priority: Minor


The pig shell script has a --config option like hadoop. However it does not, because the "secretDebugCmd" option makes a copy of the arguments and places it in a variable called "remaining". This means "--config /my/config/directory" is passed to the Java class org.apache.pig.Main. The class does not recognize the "--config" option so instead of grunt starting it prints the usage message and exits.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2253) --config option does not work

Posted by "Mark Butler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Butler updated PIG-2253:
-----------------------------

    Attachment: pig.patch

The solution works but is rather inelegant, I have just reordered the code to the avoid the problem. The real problem is the secretDebugCmd and config option are parsed in different ways. 

> --config option does not work
> -----------------------------
>
>                 Key: PIG-2253
>                 URL: https://issues.apache.org/jira/browse/PIG-2253
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Mark Butler
>            Priority: Minor
>         Attachments: pig.patch
>
>
> The pig shell script has a --config option like hadoop. However it does not, because the "secretDebugCmd" option makes a copy of the arguments and places it in a variable called "remaining". This means "--config /my/config/directory" is passed to the Java class org.apache.pig.Main. The class does not recognize the "--config" option so instead of grunt starting it prints the usage message and exits.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2253) --config option does not work

Posted by "Mark Butler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093696#comment-13093696 ] 

Mark Butler commented on PIG-2253:
----------------------------------

Sorry, I did not understand Jira markup. What I meant to say was:

The pig shell script has a config option like Hadoop. However it does not work, because the code processing the "secretDebugCmd" option makes a copy of the command line arguments and places it in a variable called "remaining". This is passed to the Java class, so if the command line contains a config option this is passed to the Java class. The class does not recognize the "config" option so instead of grunt starting it prints the usage message and exits.

> --config option does not work
> -----------------------------
>
>                 Key: PIG-2253
>                 URL: https://issues.apache.org/jira/browse/PIG-2253
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Mark Butler
>            Priority: Minor
>
> The pig shell script has a --config option like hadoop. However it does not, because the "secretDebugCmd" option makes a copy of the arguments and places it in a variable called "remaining". This means "--config /my/config/directory" is passed to the Java class org.apache.pig.Main. The class does not recognize the "--config" option so instead of grunt starting it prints the usage message and exits.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIG-2253) --config option does not work

Posted by "Gianmarco De Francisci Morales (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianmarco De Francisci Morales resolved PIG-2253.
-------------------------------------------------

       Resolution: Duplicate
    Fix Version/s: 0.9.1
         Assignee: Gianmarco De Francisci Morales

With PIG-2239 this option is not available anymore and we rely on PIG_CONF_DIR to find the configuration files.
                
> --config option does not work
> -----------------------------
>
>                 Key: PIG-2253
>                 URL: https://issues.apache.org/jira/browse/PIG-2253
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Mark Butler
>            Assignee: Gianmarco De Francisci Morales
>            Priority: Minor
>             Fix For: 0.9.1
>
>         Attachments: pig.patch
>
>
> The pig shell script has a --config option like hadoop. However it does not, because the "secretDebugCmd" option makes a copy of the arguments and places it in a variable called "remaining". This means "--config /my/config/directory" is passed to the Java class org.apache.pig.Main. The class does not recognize the "--config" option so instead of grunt starting it prints the usage message and exits.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira