【问题标题】:copying local folder to hdfs through R通过R将本地文件夹复制到hdfs
【发布时间】:2013-03-04 00:39:00
【问题描述】:

我正在尝试将文件夹从本地文件系统导出到 hdfs 。我正在通过 R 运行代码。我怎么能做到呢?

希望得到建议

【问题讨论】:

  • 只用 hadoop fs -put localpath hdfspath r 不需要

标签: hadoop hdfs rhadoop


【解决方案1】:

您应该使用system 命令轻松地做到这一点:

system("hadoop fs -put /path/to/file /path/in/hdfs")

您也可以使用rhdfs 项目,尤其是函数hdfs.writehdfs.copy 应该可以做到这一点。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-28
    • 1970-01-01
    • 2019-11-25
    • 2019-11-21
    • 1970-01-01
    • 2013-07-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多