[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Iyappan Srinivasan updated MAPREDUCE-1882:
------------------------------------------

    Attachment: 1882-ydist-security-patch.txt

one other helper that we can add is scp, since Jsch supports that also. 
- [Iyappan]  Yes, we can do it in further enchancements. Not in this Jira, 
since it is outside the scope.

The functionality seems to be common for MR and HDFS. Shall it be moved to 
Common instead? 

- [Iyappan] Ok.Since this is going to be used for testing only, I will put it 
under src/test/system/java/shared/org/apache/hadoop/common. 


This 
    jsch.setKnownHosts("/homes/" + user + "/.ssh/known_hosts");

is questionable. 

- [Iyappan] It is not adding anything new. It just picks up the existing ones. 
Known_hosts will have the already known machine names and their public keys. I 
dont see any issue here.

This one won't work if RSA identities are in use: 
+    jsch.addIdentity("/homes/" + user + "/.ssh/id_dsa");

- [Iyappan] I have added a wrapper function addressing that.Now user can 
specify dsa or rsa.

Where Jsch will be coming from? Ivy dependency resolution needs to be added as 
well
- [Iyappan] I have created  a seperate Jira for it HADOOP-6879.



> Use Jsch instead of Shell.java 
> -------------------------------
>
>                 Key: MAPREDUCE-1882
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1882
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: test
>         Environment: herriot framework 
>            Reporter: Balaji Rajagopalan
>            Assignee: Iyappan Srinivasan
>         Attachments: 1882-ydist-security-patch.txt, RemoteExecution.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> In herriot ( hadoop system test case dev) we often find that we are resorted 
> to habit of ssh to remote node execute a shell command, and come out. It is 
> wise to use Jsch instead of doing this through Shell.java ( hadoop code), 
> since Jsch provides nice Java abstraction, the JIRA will only close after we 
> import Jsch input hadoop build system and also fix all the existing test 
> cases. 

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