-Re: How to join 2 tables using hadoop?
Shahab Yunus 2013-07-20, 22:36
These are two separate things. first is to read data from Json format and
then joining it. we can separate those. You first need to read the row
using JSon storage API for Pig then yes, you can use native Pig constructs
On Saturday, July 20, 2013, Pavan Sudheendra wrote:
> If i have the value of a row in JSON format, would pig we able to
> parse it and join the fields as per my needs?
> > You can also look into Pig, if you already haven't. It supports various
> > kinds of joins and is simpler than writing your own M/R job (assuming
> > you don't have complex or custom requirements.)
> > Regards,
> > Shahab
> >> Hi,
> >> I know that HBase by default doesn't support table joins like RDBMS..
> >> But anyway, I have a table who value contains a json with a particular
> >> ID in it..
> >> This id references another table where it is a key..
> >> I want to fetch the id first from table A , query table 2 and get its
> >> corresponding value..
> >> What is the best way of achieving this using the MR framework?
> >> Apologizes, i'm still new to Hadoop and HBase so please go easy on me.
> >> Thanks for any help
> >> --
> >> Regards-
> >> Pavan