Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Request for access to context in partitioner


Copy link to this message
-
Request for access to context in partitioner
Hello
Is it possible for the partitioner's constructor to accept the
hadoop0.20 context object?

My keys can be complex and would (if possible) like to partition in
say the i'th element of the key( when the key is a tuple) but the
partition method only takes the key and value and there is no access
to the context.

A work around is to dynamically change  a class field( before
specifying my class as the partioner class) - is this possible in
java?
Regards
saptarshi
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB