Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Retrieve file over SFTP conection
Hello,
how can this be done? I realize that you can execute scripts, but are there any built in tricks in RM that can perform this kind of operation?
Does anybody have code to share where this problem has been tackled one way or another? ::)
Also, can I somehow provide the name of the file to be retrieved dynamically to the script/operator?
Thank you,
frankie
how can this be done? I realize that you can execute scripts, but are there any built in tricks in RM that can perform this kind of operation?
Does anybody have code to share where this problem has been tackled one way or another? ::)
Also, can I somehow provide the name of the file to be retrieved dynamically to the script/operator?
Thank you,
frankie
2
Answers
hmm, I must admit that I am not really sure if this works without any external tool, sorry. Might be but than I am not aware of that.
About providing the name dynamically: You could use macros for that. Just define the macro in your process or extract it from your data. You can then use it everywhere via %{your_macro_name}. There are lots of example for this on myExperiment which can be downloaded with our Community Extension for RapidMiner.
Cheers,
Ingo
Hi,
Any News about SFTP access in the last 5 years?
Regards
Julian
bump.
hello @robin - feel free to post in Ideas -> Product Ideas. People can upvote, etc.. there.
Scott
Not the most straightforward way but I do this using python.
There are plenty of sftp libraries available, most have decent copy paste examples so you don't need to be a coding geek to get it running.
Below is a basic script using ftplib to upload a file. Unfortunatly it isn't sftp (can't find back immediatly where I used it) but the principle remains the same.
and for download
Look for sftp examples and change the code accordingly, ask your local python guru for support if needed but it's less scary as it looks at first glance