PIG LOAD command error


2 Answer(s)


hi Ajay,

Looking at the error , PIg was not able to find the CSV file in the specified path, please check the path and retry.

Also check the hdfs path where you are trying to copy the file as it errors out "PErmission denied"

In your command below, the complete path for CSV has to be provided and also the exact path of hdfs .

hadoop fs -copyFromLocal NASDAQ_daily_prices_A_sample.csv /dezyre

Thanks

Hi Ajay,

Please give the path as below for copyFromLocal command

hadoop fs -copyFromLocal NASDAQ_daily_prices_A_sample.csv dezyre

Note: /dezyre is a root folder to which the access is denied. So, you should pass as dezyre instead of /dezyre.

I would suggest to create a folder specific to your assignment. So, create a folder as

hadoop fs -mkdir dezyre/Assignment1/inputs

Now copy the file from local to this path as below

hadoop fs -copyFromLocal NASDAQ_daily_prices_A_sample.csv dezyre/Assignment1/inputs

Hope this helps.

Thanks,
Sravan