在 EC2 上使用 Louis Aslett 的 AMI 将大文件上传到 RStudio 时遇到问题 [英] Trouble Uploading Large Files to RStudio using Louis Aslett's AMI on EC2

查看:40
本文介绍了在 EC2 上使用 Louis Aslett 的 AMI 将大文件上传到 RStudio 时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照这个简单的教程http://www.louisaslett.com/RStudio_AMI/和视频之后指南 http://www.louisaslett.com/RStudio_AMI/video_guide.html 我已经设置EC2 上的 RStudio 环境.

After following this simple tutorial http://www.louisaslett.com/RStudio_AMI/ and video guide http://www.louisaslett.com/RStudio_AMI/video_guide.html I have setup an RStudio environment on EC2.

唯一的问题是,我无法上传大文件(> 1GB).

The only problem is, I can't upload large files (> 1GB).

我可以很好地上传小文件.

I can upload small files just fine.

当我尝试通过 RStudio 上传文件时,出现以下错误:

When I try to upload a file via RStudio, it gives me the following error:

来自服务器的意外空响应

Unexpected empty response from server

有谁知道我如何上传这些大文件以在 RStudio 中使用?这就是我首先使用 EC2(处理大数据)的全部原因.

Does anyone know how I can upload these large files for use in RStudio? This is the whole reason I am using EC2 in the first place (to work with big data).

推荐答案

您没有对 Amazon 服务器的 shell 访问权限吗?不要依赖 RStudio 的上传(可能有 2Gb 的限制,合理地)并使用适当的 unix 开发工具:

Don't you have shell access to your Amazon server? Don't rely on RStudio's upload (which may have a 2Gb limit, reasonably) and use proper unix dev tools:

rsync -avz myHugeFile.dat amazonusername@my.amazon.host.ip:

在您本地PC的命令行(安装cygwin或其他unixy兼容系统)会将您的大文件传输到您的亚马逊服务器,如果中断将从该点恢复,也会压缩数据以进行传输.

on your local PC command line (install cygwin or other unixy compatibility system) will transfer your huge file to your amazon server, and if interrupted will resume from that point, will compress the data for transfer too.

对于类似这样的 Windows gui,WinSCP 是我们在 Linux 出现之前的糟糕过去常常做的事情.

For a windows gui on something like this, WinSCP was what we used to do in the bad old days before Linux.

这篇关于在 EC2 上使用 Louis Aslett 的 AMI 将大文件上传到 RStudio 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆