
|
If you were logged in you would be able to see more operations.
|
|
|
| Compatibility: |
new feature
|
|
A lot of deployments need to transfer files to remote hosts. Currently one uses the scp components for this, but we already have communication between hosts through SmartFrog, so it seems an unnecessary inconvenience to have to maintain user accounts for SSH on the side.
My initial idea for this is to have 2 components : one that is deployed on the initial host, and another deployed on the remote host by specifying a different sfProcessHost attribute. The interface for the remote component would then include upload (and also download, and other useful filesystem operations).
Of course this is going to be horribly inefficient since all data will be marshalled through RMI... but for small file transfers it shouldn't matter too much, and would be very convenient. One can always revert to the scp components if things get too slow.
Also, I'm opening a separate issue about adding recursive operation to the Files component, since this is how I think files to be uploaded (and maybe dowloaded too) should be specified.
Comments ?
|
|
Description
|
A lot of deployments need to transfer files to remote hosts. Currently one uses the scp components for this, but we already have communication between hosts through SmartFrog, so it seems an unnecessary inconvenience to have to maintain user accounts for SSH on the side.
My initial idea for this is to have 2 components : one that is deployed on the initial host, and another deployed on the remote host by specifying a different sfProcessHost attribute. The interface for the remote component would then include upload (and also download, and other useful filesystem operations).
Of course this is going to be horribly inefficient since all data will be marshalled through RMI... but for small file transfers it shouldn't matter too much, and would be very convenient. One can always revert to the scp components if things get too slow.
Also, I'm opening a separate issue about adding recursive operation to the Files component, since this is how I think files to be uploaded (and maybe dowloaded too) should be specified.
Comments ? |
Show » |
|
It would be better create an abstract file system and use something like Jetty or and FTP lib to serve the data. The security keys could be exchanged using the encrypted RMI connection. Another option would be to create components to use the Hadoop file system.
Example to start Jetty as a file server: http://jetty.mortbay.org/jetty-6/xref/org/mortbay/jetty/example/FileServer.html. No security though.