【问题标题】:How to transfer files from windows to HortonWorks sandbox?如何将文件从 Windows 传输到 HortonWorks 沙箱?
【发布时间】:2014-08-31 02:17:09
【问题描述】:

我尝试使用-copyFromLocal 命令将输入​​文件复制到 HDFS,但它抛出了找不到文件的错误。

hadoop fs -mkdir MapReduceInput

hadoop fs -copyFromLocal d:/demodata.txt MapReduceInput/

错误:

另外,需要提供位于本地系统中的 jar 路径才能运行 MapReduce 作业。 如何将输入文件、jar 复制到沙箱本地系统?我正在使用 vmware 和 windows 操作系统。

【问题讨论】:

    标签: hadoop hdfs bigdata vmware hortonworks-data-platform


    【解决方案1】:

    使用 Winscp 将文件从 windows 复制到任何基于 unix 的服务器,例如 Hortonwork Sandbox。

    【讨论】:

      【解决方案2】:

      -copyFromLocal 将文件从沙箱复制到 hdfs,而不是从 Windows 复制到沙箱。

      您需要使用沙箱中的 scp 命令将文件从 windows scp 到沙箱

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-07-12
        • 2015-10-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-11-20
        相关资源
        最近更新 更多