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

Switch to Plain View
HBase >> mail # dev >> HBase map reduce exaple


+
marcin.kasinski 2012-11-19, 08:17
Copy link to this message
-
Re: HBase map reduce exaple

Hi there, you need to read about custom map reduce keys...

http://developer.yahoo.com/hadoop/tutorial/module5.html#types

On 11/19/12 3:17 AM, "marcin.kasinski" <[EMAIL PROTECTED]> wrote:

>hadoop 1.0.4
>hbase 0.94.2
>
>Hello.
>
>I'm new to hbase so please try to forgive me if my question is totally
>stupid.
>
>I've created simple map reduce program based on tutorial:
>
>http://sujee.net/tech/articles/hadoop/hbase-map-reduce-freq-counter/
>
>
>It works OK.
>
>Now I have small question.
>
>Is there any chance to process more than one column inside map ?
>
>How I changed example :
>
>In scan I added 2 columns:
>      
>        scan.addColumn(Bytes.toBytes("details"), Bytes.toBytes("page"));
>      scan.addColumn(Bytes.toBytes("details"),
>Bytes.toBytes("mkcolumn"));
>  
>
>Now map method for the same key is executed ones for page column and
>second
>time for mkcolumn.
>
>My requirement is to send to maper both colums together.
>
>Can I do it ?
>Any hints please.
>
>Regards Marcin
>
>
>
>
>
>
>--
>View this message in context:
>http://apache-hbase.679495.n3.nabble.com/HBase-map-reduce-exaple-tp4034145
>.html
>Sent from the HBase Developer mailing list archive at Nabble.com.
>