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
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
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
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login