In Pig, I’m having trouble getting CurrentTime up and running. I’ve tried running the following basic script but keep getting errors saying “2015-04-13 21:23:27,864 [main] ERROR org.apache.pig.PigServer – exception during parsing: Error during parsing. <file script.pig, line 10> Cannot expand macro ‘CurrentTime’. Reason: Macro must be defined before expansion.”
Here’s the piece of code:
a = CurrentTime();
dump a;
That’s it. Anything I need to do for CurrentTime to work properly on my sandbox?