[
https://issues.apache.org/jira/browse/OOZIE-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570750#comment-13570750
]
Alejandro Abdelnur commented on OOZIE-1054:
-------------------------------------------
Bowen,
Mmhh, it seems I was not explaining things clearly, when using OozieCLI to
conform to the syntax above, it should be something like:
{code} HELP_CMD = "help";
CREATE_CMD = "create";
UPGRADE_CMD = "upgrade;
LIB_OPT = "locallib";
FS_OPT = "fs";
protected Options createUpgradeOptions(String subCommand) {
Option sharelib = new Option(LIB_OPT, true, "Local share library Oozie
tar.gz file (or expanded directory) to " + subCommand);
Option uri = new Option(FS_OPT, true, "URI of the FileSystem to " +
subCommand + " Oozie share library");
Options options = new Options();
options.addOption(sharelib);
options.addOption(uri);
return options;
}
...
CLIParser parser = new CLIParser("ooziedb.sh", HELP_INFO);
parser.addCommand(HELP_CMD, "", "display usage for all commands or
specified command", new Options(), false);
parser.addCommand(CREATE_CMD, "", "create Oozie sharelib",
createUpgradeOptions(CREATE_CMD), false);
parser.addCommand(UPGRADE_CMD, "", "upgrade Oozie sharelib",
createUpgradeOptions(UPGRADE_CMD), false);
{code}
Thx
> Create script to properly upload sharelib to HDFS
> -------------------------------------------------
>
> Key: OOZIE-1054
> URL: https://issues.apache.org/jira/browse/OOZIE-1054
> Project: Oozie
> Issue Type: New Feature
> Components: scripts
> Affects Versions: trunk
> Reporter: Robert Kanter
> Assignee: Bowen Zhang
> Priority: Minor
> Fix For: trunk
>
> Attachments: oozie-1054.patch, oozie-1054.patch, oozie-1054.patch,
> oozie-1054.patch, oozie-1054.patch, oozie-1054.patch, oozie-1054.patch,
> oozie-1054.patch, oozie-1054.patch, oozie-1054.patch
>
>
> A common confusion-point for users is how to properly install the sharelib in
> HDFS. It would be really useful if we could create a script to properly
> upload the sharelib to HDFS so we can get rid of the confusion around this.
> Alternatively, instead of a new script, we could have the oozie-setup.sh
> script take an argument that does this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira