简体   繁体   中英

HBase MapReduce

If I want to write the Reducer output into HBase, I just need to use:

context.write(key,put);

My question is about the first parameter "key"; whatever value I set to "key", it will not be showed in HBase when I use HBase Shell to check, even though I set it to "null". So what should I set to this "key" on earth?

您应该将其设置为null-从HBase角度看,放置值同时包含键和值,并且如您所正确指出的那样,未使用上下文的键

您应该将密钥设置为一个名为NullWriteable.get()的实例。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM