Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - Re: Importing register/define statements?


+
Ashish Gite 2012-04-29, 06:18
+
Russell Jurney 2012-04-29, 06:25
+
Dmitriy Ryaboy 2012-04-29, 23:24
+
Russell Jurney 2012-04-28, 23:21
Copy link to this message
-
Re: Importing register/define statements?
Prashant Kommireddi 2012-04-29, 01:03
In pig 0.10 you can glob these jars in your pig script.

Register path/*.jar

Sent from my iPhone

On Apr 28, 2012, at 4:22 PM, Russell Jurney <[EMAIL PROTECTED]> wrote:

> I have a lot of pig stuff like this:
>
> /* Load Avro jars and define shortcut */
> register /me/pig/build/ivy/lib/Pig/avro-1.5.3.jar
> register /me/pig/build/ivy/lib/Pig/json-simple-1.1.jar
> register /me/pig/build/ivy/lib/Pig/jackson-core-asl-1.7.3.jar
> register /me/pig/build/ivy/lib/Pig/jackson-mapper-asl-1.7.3.jar
> register /me/pig/build/ivy/lib/Pig/joda-time-1.6.jar
>
> define AvroStorage org.apache.pig.piggybank.storage.avro.AvroStorage();
>
>
> I hate to paste it in every file. Is there a way to load this stuff in one
> line, like a macro? Macros can't register.
>
> --
> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com
+
Russell Jurney 2012-04-29, 01:12
+
Prashant Kommireddi 2012-04-29, 01:18
+
Russell Jurney 2012-04-29, 01:22
+
Prashant Kommireddi 2012-04-29, 01:58