If i have a tall table, what is returned in the reduce? I'm still confused as to how things map up.
for example assume I have ELECTRONICS|TV|ID2343 as the row key. There are millions of these (ELECTRONICS|TV|ID234324, along with other products). I'd like to count the total # of IDs for all TVs. How do I do this with map/reduce? I tried a few things, but not able to get it working. Ryan Rawson wrote: > > Also remember you might be able to convert to a tall table. Row keys can > be > compound and you can do partial left matches on them. Eg: > > Userid:timestamp:eventid > > now you have a tall table. Do prefix matches on the userid you want and > you > get results in chronological order. > > You can build equivalent indexes in hbase as in sql. You may find a design > like this alieviates the need for extremely wide rows. > > Good luck! > > On Jun 11, 2009 11:44 AM, "Billy Pearson" <[email protected]> > wrote: > > That might be a good idea but you might be able to redesign you layout of > the table > using a different key then the current one worth barnstorming. > > Billy > > > > "llpind" <[email protected]> wrote in message > news:[email protected]... > > Sorry I forgot to mention the overflow then overflows into new row keys > per > 10,000 column entries ... > > -- View this message in context: http://www.nabble.com/Help-with-Map-Reduce-program-tp23952252p24002604.html Sent from the HBase User mailing list archive at Nabble.com.
