我有以下内容的文件:HBase的存储数据有2个或多个值的特定列在斯卡拉/ Java API的同一行键
UserID Email
1001 [email protected]
1001 [email protected]
1002 [email protected]
1002 [email protected]
我想存储这样的数据:
ROW COLUMN+CELL
1001 column=cf:Email, timestamp=1487917201278, [email protected]
1001 column=cf:Email, timestamp=1487917201279, [email protected]
1002 column=cf:Email, timestamp=1487917201286, [email protected]
1002 column=cf:Email, timestamp=1487917201287, [email protected]
我使用Put
例如:put 'table', '1001', 'cf:Email', '[email protected]'
但它给我
ROW COLUMN+CELL
1001 column=cf:Email, timestamp=1487917201279, [email protected]
1002 column=cf:Email, timestamp=1487917201286, [email protected]
它覆盖了以前的值。但HBase应该根据时间戳存储特定列的多个值。 无论如何,我可以存储两个电子邮件地址的特定用户ID?
感谢乔的信息。 –