Hi:
When you use a saved image, there can be issues connecting. It's a good idea with a saved image to check Cloudera to see whether everything is "green" before you start working. You might want to do the restart first, if you're working from a SAVED image.
Regarding your original question, the instructors said it looked like you typed everything correctly, but wondered whether you had a stray line break or ctrl+l in the string you typed. They recommended as a quick test would be to open a new grunt command line and TYPE in the C1 load line (all in one line without any breaks) and then output C1 using this command: DUMP C1; If that’s successful, then you can type in the C2 and C3 lines.
C1 = load '/user/student/dihdm/data/census_2010.csv' USING PigStorage() AS (county:chararray, population:int);
C2 = FOREACH C1 GENERATE county, population;
C3 = limit C2 5;
In a true production environment, you would NOT have to worry about the servers and services being available because that would be under the control of your systems group. However, with the Virtual Lab, when you work from a SAVED image, the servers may not start back up when Amazon brings the image back into memory, so it's a good idea to check and restart before you resume working (following the troubleshooting document).
Cynthia