-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SFTP to fancy R flavors #130
Comments
Where do I have to install the libssh-dev? on the sftp server? Do you have an example to read a file from an sftp server with R via scp? |
Hi @ambullo, you need to install the libssh-dev into the script language container together with the ssh R package. Here is the project page of the package https://github.com/ropensci/ssh, it also contains an example how to read a file from the ssh server. SCP uses a different protocol than SFTP, so please check if you can access your server also via SCP before you attempt it from the UDFs. For customizing script language (e.g. installing new packages), please read the following section about customizing flavors in our Readme. If attempt to customize the script language container, please also checkout the prerequisites and subsequent sections. Let me know, if you encounter any problems. Regards, |
Hi tkilias Thanks a lot for your answer. We will need to see what is the best option. Regards, |
Hi @tkilias I tried now the solution in your initial post. Here are some questions I run into:
in the file "./flavor_base/build_deps/docker" Before the command
Regards |
Hi @ambullo , I am working on a patch for the fancy-r 6.1 flavor which compile libcurl with libssh support. I am currently, figuring out which changes are necessary. From what I saw, until there are many small changes necessary. I think, I will have a prototype at the end of the day. Regards, |
Hi @ambullo, I finished on last Friday evening the prototype. Please, see the pull request. Unfortunately, I can't integrate in into the master, because the patch takes some questionable options for installing other Ubuntu packages and increases the build time quite a lot. You can try it and use it, but won't merge it. Let me know, if you have any problems. |
@ambullo Also another question, do you really need R or can you use Python, because for Python we provide the package pysftp out of the box. |
Hi @tkilias I tried it last friday afternoon and the build ended in an error. I will try it again now and let you know if it works. |
Hi @tkilias It worked to create the container and it is also possible to establish the sftp connection with Rcurl on Exasol. Thanks for your work! Can you elaborate a little bit about your statement
are there potential issues when we deploy this patch on our customers server? |
Hi @ambullo , Great. The apt options should not have an impact on the container itself. I needed to activate --allow-downgrade and had to pin some package versions. Otherwise, apt tried to install incompatible versions. This might make problems in maintaining this flavor that is one of the reasons, I won't merge for the time being. The other reason is, that the build time of curl is quite high and this would affect all future builds. Unless, I find a solution to both problems, I will leave this feature in a separate branch. |
I am closing the ticket for the moment, because I can't merge these changes easily. Feel free to reopen it, if there is dire need to have it merged. |
Situation:
[Code: 0, SQL State: 22002] VM error: Error in function (type, msg, asError = TRUE): Protocol “sftp” not supported or disabled in libcurl
Workaround if you can use scp instead:
Solution:
The text was updated successfully, but these errors were encountered: