Grokbase Groups Pig user May 2010
FAQ
I am wanting to make a writer that will, using the field names, look into an
HBase table and compare fields using field names:

example:

-------------
REGISTER ./myUDF.jar;

raw = LOAD 'My_File' USING PigStorage('|') AS (key, field1, field2, field3,
field4);

STORE raw INTO 'My_File-results' USING com.pig.store.HBaseDiff('Mart_Name');
-------------

so I found some reference to checkSchema() but I am unable to figure out
what to do with ResourceSchema. I have tried:
- getFields() and for each get name but got nothing
- fieldNames() but that is empty
- setting the fields I want via setFields() but nothing changed

maybe I am way off base, I was hoping more for a Tuple getFieldNames()
function that gave me a String list in the same order as the Tuple.

I have searched for 4 hours and am unable to find anything on how I would do
it, sorry if it is obvious and I didn't find it.

Thanks,
- Nathan

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedMay 24, '10 at 4:09p
activeMay 24, '10 at 4:09p
posts1
users1
websitepig.apache.org

1 user in discussion

Nathan Hoult: 1 post

People

Translate

site design / logo © 2022 Grokbase