Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Using Pig's CurrentTime

$
0
0

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?


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>