I am unable to Read/Process Data from HDFS using Pig Script.
Below are the few lines from my Pig Script:-
batting = LOAD ‘/user/guest/Batting.csv’ using PigStorage(‘,’);
DUMP batting;
I have saved these two lines in a file called Sample.pig.
While i execute this script using Pig Sample.pig it is unable to connect to HDFS. The error it show is as mentioned below
Retrying Connect to server : sandbox.hortonworks.com/My-IP-Address:8050 : Already Tried 45 Times : retry policy is RetryUpToMaxximumCountWithFixedSleep ( maxRetries 50, sleepTime= 1000 Milliseconds).
But on the other hand if i try to access HDFs using hadoop fs -ls hfs://sandbox.hortonworks.com/user/guest it works and give me list of files present in directory /user/guest.
Please suggest.have tried a lot.