Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Loading data in pig when HDFS in High Available mode (HA)

Solved Go to solution
Highlighted

Loading data in pig when HDFS in High Available mode (HA)

Rising Star

I have a simple pig program, with a simple LOAD and STORE/DUMP statement, but it refuse to load the test data file. The path in HDFS is in /user/dwh/ the file is called test.txt.

 

I assume the pig is not aware of the HA setting of my cluster, Any ideas?

 

Input path does not exist: hdfs://nameservice1/user/dwh/test.txt

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Loading data in pig when HDFS in High Available mode (HA)

Contributor
test.xml or text.xml needs to be present in hdfs and that should be passed in LOAD command
2 REPLIES 2

Re: Loading data in pig when HDFS in High Available mode (HA)

Contributor
please check if test.txt exist in hdfs .check if it is not text.txt rather than test.txt

Re: Loading data in pig when HDFS in High Available mode (HA)

Contributor
test.xml or text.xml needs to be present in hdfs and that should be passed in LOAD command
Don't have an account?
Coming from Hortonworks? Activate your account here