[ 
https://issues.apache.org/jira/browse/HADOOP-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586475#action_12586475
 ] 

Hemanth Yamijala commented on HADOOP-3145:
------------------------------------------

We could do something like:

hod script -d cluster-dir -n nodes --hod.cmd "hadoop jar hadoop-examples.jar 
wordcount input output"

OR

hod cmd -d cluster-dir -n nodes --hod.cmd "hadoop jar hadoop-examples.jar 
wordcount input output"

Preferences / alternate suggestions ?

One thing to think about is which hadoop we will use. I propose we just pick 
what's in the path, and let the user set it up correctly. In some setups, 
admins set up the path for the users, so the above example would just work. If 
a tarball is being used, the user has to untar the tarball somewhere and set 
the path correctly.

Alternatively, she can always define: 

hod script -d cluster-dir -n nodes --hod.cmd "/foo/bar/hadoop jar 
hadoop-examples.jar wordcount input output"

More generically - we don't interpret anything inside hod.cmd, but pass it as 
such to the shell. 

Another thing to note is the quotes around the hadoop command. I can't think of 
any better way than this to specify a sub-command, without keeping from getting 
into positional arguments . So, in the above example, one could also say:

hod script --hod.cmd "/foo/bar/hadoop..." -d cluster-dir -n nodes

Again, alternate suggestions welcome.

> 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.16.3
>
>
> 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.

Reply via email to