You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Anitha Raju (JIRA)" <ji...@apache.org> on 2011/08/22 07:18:29 UTC
[jira] [Created] (PIG-2230) Display empty param instead of usage
error message
Display empty param instead of usage error message
--------------------------------------------------
Key: PIG-2230
URL: https://issues.apache.org/jira/browse/PIG-2230
Project: Pig
Issue Type: Improvement
Affects Versions: 0.9.0, 0.8.0
Reporter: Anitha Raju
Hi,
When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
<code>
$ pig -useversion 0.9 -param test=" " test.pig
USING: /grid/0/gs/pig/0.9
2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
Apache Pig version 0.9.0.1105251322 (r1127671)
compiled May 25 2011, 20:22:22
USAGE: Pig [options] [-] : Run interactively in grunt shell.
Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
Pig [options] [-f[ile]] file : Run cmds found in file.
options include:
-4, -log4jconf - Log4j configuration file, overrides log conf
-b, -brief - Brief logging (no timestamps)
-c, -check - Syntax check
-d, -debug - Debug level, INFO is default
-e, -execute - Commands to execute (within quotes)
-f, -file - Path to the script to execute
-g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
-h, -help - Display this message. You can specify topic to get help for that topic.
properties is the only topic currently supported: -h properties.
-i, -version - Display version information
-l, -logfile - Path to client side log file; default is current working directory.
-m, -param_file - Path to the parameter file
-p, -param - Key value pair of the form param=val
-r, -dryrun - Produces script with substituted parameters. Script is not executed.
-t, -optimizer_off - Turn optimizations off. The following values are supported:
SplitFilter - Split filter conditions
MergeFilter - Merge filter conditions
PushUpFilter - Filter as early as possible
PushDownForeachFlatten - Join or explode as late as possible
ColumnMapKeyPrune - Remove unused data
LimitOptimizer - Limit as early as possible
AddForEach - Add ForEach to remove unneeded columns
MergeForEach - Merge adjacent ForEach
LogicalExpressionSimplifier - Combine multiple expressions
All - Disable all optimizations
All optimizations are enabled by default. Optimization values are case insensitive.
-v, -verbose - Print all error messages to screen
-w, -warning - Turn warning logging on; also turns warning aggregation off
-x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
-F, -stop_on_failure - Aborts execution on the first failed job; default is off
-M, -no_multiquery - Turn multiquery optimization off; default is on
-P, -propertyFile - Path to property file
<code>
Instead of printing the usage error, can you show which param is empty.
Regards,
Anitha
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich reassigned PIG-2230:
-----------------------------------
Assignee: xuting zhao
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Attachment: PIG-2230.patch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-2230:
--------------------------------
Attachment: PIG-2230.patch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Thomas Weise (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Weise updated PIG-2230:
------------------------------
Fix Version/s: 0.10
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: 0.10, 0.11
>
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Attachment: EmptyParam.patch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-2230:
----------------------------
Labels: newbie (was: )
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Labels: newbie
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-2230:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: 0.11
>
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Fix Version/s: (was: site)
Affects Version/s: (was: site)
0.8.0
0.9.0
Status: Patch Available (was: Open)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.9.0, 0.8.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Attachment: PIG-2337.patch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Status: Open (was: Patch Available)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: site
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: site
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Attachment: EmptyParam.patch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: site
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: site
>
> Attachments: EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Status: Patch Available (was: Open)
The test-commit unit tests has been run successfully on this change.
As this patch only adds log information into Pig, there is no additional unit tests designed for this change.
Relevant unit test TestParamSubPreproc.java has been successfully run on this change.
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.9.0, 0.8.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Commented] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142734#comment-13142734 ]
xuting zhao commented on PIG-2230:
----------------------------------
Hi Olga,
I have added the parse error into the log info in the patch. Thanks.
Xuting
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Fix Version/s: site
Affects Version/s: (was: 0.9.0)
(was: 0.8.0)
site
Status: Patch Available (was: Open)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: site
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: site
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Commented] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142560#comment-13142560 ]
Olga Natkovich commented on PIG-2230:
-------------------------------------
Hi Xuting,
The patch looks good. It is more general than what was originally asked but I believe this is the right patch.
Suggestions:
(1) When parameter is in the file, we should give the line in the file where the problem occurs since a file can contain many parameters
(2) It might be useful to include the parser error to assist in fixing error
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-2230:
--------------------------------
Fix Version/s: 0.11
Patch committed to the trunk. Thanks Xuting!
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: 0.11
>
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Commented] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153263#comment-13153263 ]
Olga Natkovich commented on PIG-2230:
-------------------------------------
Patch committed to .10 branch
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: 0.11
>
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-2230:
--------------------------------
Status: Open (was: Patch Available)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.9.0, 0.8.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Anitha Raju (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anitha Raju updated PIG-2230:
-----------------------------
Description:
Hi,
When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
---------------
$ pig -useversion 0.9 -param test=" " test.pig
USING: /grid/0/gs/pig/0.9
2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
Apache Pig version 0.9.0.1105251322 (r1127671)
compiled May 25 2011, 20:22:22
USAGE: Pig [options] [-] : Run interactively in grunt shell.
Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
Pig [options] [-f[ile]] file : Run cmds found in file.
options include:
-4, -log4jconf - Log4j configuration file, overrides log conf
-b, -brief - Brief logging (no timestamps)
-c, -check - Syntax check
-d, -debug - Debug level, INFO is default
-e, -execute - Commands to execute (within quotes)
-f, -file - Path to the script to execute
-g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
-h, -help - Display this message. You can specify topic to get help for that topic.
properties is the only topic currently supported: -h properties.
-i, -version - Display version information
-l, -logfile - Path to client side log file; default is current working directory.
-m, -param_file - Path to the parameter file
-p, -param - Key value pair of the form param=val
-r, -dryrun - Produces script with substituted parameters. Script is not executed.
-t, -optimizer_off - Turn optimizations off. The following values are supported:
SplitFilter - Split filter conditions
MergeFilter - Merge filter conditions
PushUpFilter - Filter as early as possible
PushDownForeachFlatten - Join or explode as late as possible
ColumnMapKeyPrune - Remove unused data
LimitOptimizer - Limit as early as possible
AddForEach - Add ForEach to remove unneeded columns
MergeForEach - Merge adjacent ForEach
LogicalExpressionSimplifier - Combine multiple expressions
All - Disable all optimizations
All optimizations are enabled by default. Optimization values are case insensitive.
-v, -verbose - Print all error messages to screen
-w, -warning - Turn warning logging on; also turns warning aggregation off
-x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
-F, -stop_on_failure - Aborts execution on the first failed job; default is off
-M, -no_multiquery - Turn multiquery optimization off; default is on
-P, -propertyFile - Path to property file
-------------------
Instead of printing the usage error, can you show which param is empty.
Regards,
Anitha
was:
Hi,
When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
<code>
$ pig -useversion 0.9 -param test=" " test.pig
USING: /grid/0/gs/pig/0.9
2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
Apache Pig version 0.9.0.1105251322 (r1127671)
compiled May 25 2011, 20:22:22
USAGE: Pig [options] [-] : Run interactively in grunt shell.
Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
Pig [options] [-f[ile]] file : Run cmds found in file.
options include:
-4, -log4jconf - Log4j configuration file, overrides log conf
-b, -brief - Brief logging (no timestamps)
-c, -check - Syntax check
-d, -debug - Debug level, INFO is default
-e, -execute - Commands to execute (within quotes)
-f, -file - Path to the script to execute
-g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
-h, -help - Display this message. You can specify topic to get help for that topic.
properties is the only topic currently supported: -h properties.
-i, -version - Display version information
-l, -logfile - Path to client side log file; default is current working directory.
-m, -param_file - Path to the parameter file
-p, -param - Key value pair of the form param=val
-r, -dryrun - Produces script with substituted parameters. Script is not executed.
-t, -optimizer_off - Turn optimizations off. The following values are supported:
SplitFilter - Split filter conditions
MergeFilter - Merge filter conditions
PushUpFilter - Filter as early as possible
PushDownForeachFlatten - Join or explode as late as possible
ColumnMapKeyPrune - Remove unused data
LimitOptimizer - Limit as early as possible
AddForEach - Add ForEach to remove unneeded columns
MergeForEach - Merge adjacent ForEach
LogicalExpressionSimplifier - Combine multiple expressions
All - Disable all optimizations
All optimizations are enabled by default. Optimization values are case insensitive.
-v, -verbose - Print all error messages to screen
-w, -warning - Turn warning logging on; also turns warning aggregation off
-x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
-F, -stop_on_failure - Aborts execution on the first failed job; default is off
-M, -no_multiquery - Turn multiquery optimization off; default is on
-P, -propertyFile - Path to property file
<code>
Instead of printing the usage error, can you show which param is empty.
Regards,
Anitha
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-2230:
--------------------------------
Release Note:
I would like to port this to 0.10. We have many users running into this issue and the changes are very low risk.
I am planning to run tests and commit if all goes well
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Fix For: 0.11
>
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Commented] (PIG-2230) Display empty param instead of usage
error message
Posted by "Olga Natkovich (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138596#comment-13138596 ]
Olga Natkovich commented on PIG-2230:
-------------------------------------
Xuting, thanks for the patch. Since you are catching all parser errors in one place I think you need a more generic message with the context of the error that the parser returns.
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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
[jira] [Updated] (PIG-2230) Display empty param instead of usage
error message
Posted by "xuting zhao (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuting zhao updated PIG-2230:
-----------------------------
Attachment: (was: PIG-2337.patch)
> Display empty param instead of usage error message
> --------------------------------------------------
>
> Key: PIG-2230
> URL: https://issues.apache.org/jira/browse/PIG-2230
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Anitha Raju
> Assignee: xuting zhao
> Labels: newbie
> Attachments: EmptyParam.patch, EmptyParam.patch, PIG-2230.patch
>
>
> Hi,
> When empty param is passed in the command line, it prints usage error. Even if the value of the param is a space " " it shows the usage error.
> ---------------
> $ pig -useversion 0.9 -param test=" " test.pig
> USING: /grid/0/gs/pig/0.9
> 2011-08-22 05:06:08,538 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/anithar/pig_1313989568534.log
> Apache Pig version 0.9.0.1105251322 (r1127671)
> compiled May 25 2011, 20:22:22
> USAGE: Pig [options] [-] : Run interactively in grunt shell.
> Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
> Pig [options] [-f[ile]] file : Run cmds found in file.
> options include:
> -4, -log4jconf - Log4j configuration file, overrides log conf
> -b, -brief - Brief logging (no timestamps)
> -c, -check - Syntax check
> -d, -debug - Debug level, INFO is default
> -e, -execute - Commands to execute (within quotes)
> -f, -file - Path to the script to execute
> -g, -embedded - ScriptEngine classname or keyword for the ScriptEngine
> -h, -help - Display this message. You can specify topic to get help for that topic.
> properties is the only topic currently supported: -h properties.
> -i, -version - Display version information
> -l, -logfile - Path to client side log file; default is current working directory.
> -m, -param_file - Path to the parameter file
> -p, -param - Key value pair of the form param=val
> -r, -dryrun - Produces script with substituted parameters. Script is not executed.
> -t, -optimizer_off - Turn optimizations off. The following values are supported:
> SplitFilter - Split filter conditions
> MergeFilter - Merge filter conditions
> PushUpFilter - Filter as early as possible
> PushDownForeachFlatten - Join or explode as late as possible
> ColumnMapKeyPrune - Remove unused data
> LimitOptimizer - Limit as early as possible
> AddForEach - Add ForEach to remove unneeded columns
> MergeForEach - Merge adjacent ForEach
> LogicalExpressionSimplifier - Combine multiple expressions
> All - Disable all optimizations
> All optimizations are enabled by default. Optimization values are case insensitive.
> -v, -verbose - Print all error messages to screen
> -w, -warning - Turn warning logging on; also turns warning aggregation off
> -x, -exectype - Set execution mode: local|mapreduce, default is mapreduce.
> -F, -stop_on_failure - Aborts execution on the first failed job; default is off
> -M, -no_multiquery - Turn multiquery optimization off; default is on
> -P, -propertyFile - Path to property file
> -------------------
> Instead of printing the usage error, can you show which param is empty.
> Regards,
> Anitha
--
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