Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-05-2016 06:59 PM
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.
Created 10-06-2016 12:25 PM
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
Created 10-06-2016 11:19 AM
Just get rid of "exec" as it thinks it is the script you are trying to run.
Created 10-06-2016 11:32 AM
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.
Created 10-06-2016 12:25 PM
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