[
https://issues.apache.org/jira/browse/HADOOP-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596703#action_12596703
]
Vinod Kumar Vavilapalli commented on HADOOP-3145:
-------------------------------------------------
Revisiting the choice of the interface, I have another alternative (hopefully
better than the above two),
bq. {{ echo "hadoop jar hadoop-examples.jar wordcount input output" | hod
script -d cluster-dir -n nodes -s - }}
This way we have the following advantages:
- As in my previous comment - "it is more generally assumed that -s option
can take command, and not a file name". So, makes more sense to have it done
through the script sub-command itself - no extra sub-commands, reusing existing
code (comparison with interface #2).
- It avoids having redundant ways of doing the same thing - via hod.cmd and
via script file (comparison with interface #1)
- This is a standard unix way of doing things: when you want to give a
string to a utility yet you don't want to create and pass a file yourselves,
you can instead pipe into it using the special argument "-". For e.g, echo
"sleep" | cat -
Note that HOD might still create a temporary file internally and fill it with
the given hadoop commands, before running; this is the case in all the
interfaces proposed.
> HOD command should allow to allow to specify a hadoop command in the command
> line
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-3145
> URL: https://issues.apache.org/jira/browse/HADOOP-3145
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/hod
> Affects Versions: 0.16.0
> Reporter: Arkady Borkovsky
> Assignee: Vinod Kumar Vavilapalli
> Fix For: 0.18.0
>
>
> The current version allows only to specify a "script".
> So if one needs to generate a single command, one has to create a file for
> this, which very inconvenient -- generating temp file name, printing,
> deleting the file.
> It also incompatible with hod 0.3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.