Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hadoop developer practice exam pig script execution

avatar
Contributor

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

avatar
Contributor

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

avatar

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

avatar
Contributor

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.

avatar
Contributor

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