Environment :
HDP 2.2
Apache Pig version 0.14.0.2.2.4.2-2
Issue : No matter what,Pig refuse to read from HDFS
Eg : I have a testfile in hdfs /user directory
Pig can read the file as shown from below Grunt shell
grunt> ls /user/testfile
hdfs://node:8020/user/testfile
Now when i try to load and dump this file as below
grunt> A = load ‘/user/testfile';
grunt> dump A;
it gives a Java error as below
java.io.FileNotFoundException: File does not exist: hdfs://node.
and the final output is
Input(s):
Failed to read data from “/user/testfile”
I tried using the full HDFS path as below but the end result remains the same
Input(s):
Failed to read data from “hdfs://node:8020/user/testfile”
I was wondering whether anyone faced this issue?
My JAVA_HOME,PIG_HOME ,bin/pig and HADOOPDIR environemnt variables are set
Regards
Sanjay