|
|
-
Question about object parameters to mappers
Gaetan Deputier 2013-02-22, 22:53
Hi Hbase users,
(Using HBase 0.92.1 from Cloudera CDH4.1.1)
I am currently writing a TableMapper which needs an object X defined outside my TableMapper class.
I was wondering how can I pass this object X to my TableMapper ? I want to be sure that once the jobs are deployed on our cluster, X will be there too.
I first thought using the Job Configuration could be the way but I can only pass String and primitive types.
Any ideas, solutions ?
Sincerely,
G.
+
Gaetan Deputier 2013-02-22, 22:53
-
Re: Question about object parameters to mappers
Stack 2013-02-26, 22:11
Serialize it to hdfs? Have your mappers pick it up on startup or have the map runner pick it up for the mappers? St.Ack On Fri, Feb 22, 2013 at 2:53 PM, Gaetan Deputier <[EMAIL PROTECTED]> wrote:
> Hi Hbase users, > > (Using HBase 0.92.1 from Cloudera CDH4.1.1) > > I am currently writing a TableMapper which needs an object X defined > outside my TableMapper class. > > I was wondering how can I pass this object X to my TableMapper ? I want to > be sure that once the jobs are deployed on our cluster, X will be there > too. > > I first thought using the Job Configuration could be the way but I can only > pass String and primitive types. > > Any ideas, solutions ? > > Sincerely, > > G. >
+
Stack 2013-02-26, 22:11
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext