Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Hadoop developer practice exam pig script execution

Explorer

Hi,

I am practicing for the hdpcd certification in aws practice exam.

As per the task i have created a pig script in my sandbox /home/horton/solution/flightdelays_clean.pig and when i try to execute the script from the local i m getting the following errors

1. pig -x tez exec /home/horton/solution/flightdelays_clean.pig

Error; File exec not found

2. pig -x tez exec /home/horton/solution/flightdelays_clean.pig

INFO: Retrying connect to server:namenode/172.0.5.4:8050: Already tried (7) times; retry policy is RetryUptoMaximumCountWithFixedSleep

and it keeps printing.

How to execute the pig script from the sandbox in the aws instance.

1 ACCEPTED SOLUTION

Explorer

I found the services are not running and the namenode has gone to the safe mode state. I have restarted the services and as mentioned by Lester Martin executed without exec and it worked fine

View solution in original post

3 REPLIES 3

Just get rid of "exec" as it thinks it is the script you are trying to run.

Explorer

Thanks @Lester Martin

I have tried executing the script without exec from the sandbox I m getting the same info

pig -x tez /home/horton/solution/flightdelays_clean.pig

INFO: Retrying connect to server:namenode/172.0.5.4:8050: Already tried (7) times; retry policy is RetryUptoMaximumCountWithFixedSleep

and it keeps printing.

Explorer

I found the services are not running and the namenode has gone to the safe mode state. I have restarted the services and as mentioned by Lester Martin executed without exec and it worked fine

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.