Home Forums Pig upload files from local computer to sandbox

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  abdelrahman 10 months ago.

  • Creator
    Topic
  • #37220

    Matt Workman
    Participant

    Hi, I am new to Hadoop and HDP so please forgive my basic question. I am trying to load a text file from my local computer to the HDP 1.3 Sandbox VM. I am trying to use PIG to do this. Here is the command:

    fs -copyFromLocal file://c:\temp\REST_Log.txt hdfs://sandbox:8020/user/hue/

    The error I am getting is here:

    copyFromLocal: Can not create a Path from an empty string

    So my question is how can I format my command to make this work? Is PIG the right thing to use to do this? Is there some other way I can accomplish this?

    My end goal is to create a script that will pull CSV files from a network path and load them into HDFS on my sandbox.

    Thanks for your help and time!!

    Matt

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #38671

    abdelrahman
    Moderator

    Hi Matt,

    Are you using a file which located in Windows OS? This question can be posted in the following Forum:

    http://hortonworks.com/community/forums/forum/hdp-for-windows/

    Thanks
    -Abdelrahman

    Collapse
Viewing 1 replies (of 1 total)