简体   繁体   English

使用pig更新Hbase表

[英]updating Hbase table using pig

I am aware that different columns of a row in HBase can be updated using Put. 我知道可以使用Put更新HBase中一行的不同列。 I am using Pig + HBase with HBaseStorage. 我正在使用Pig + HBase和HBaseStorage。 I'm able to store and load in HBase without any issues with Pig expression where keys don't exist in the table. 我能够在HBase中存储和加载没有任何Pig表达式问题,其中表中不存在键。 But, the job is failing when I've started trying to update a table with HBaseStorage() where the keys exist. 但是,当我开始尝试使用存在密钥的HBaseStorage()更新表时,作业失败了。

Could someone please clarify if HBaseStorage can only be used to store new records or update columns in existing records as well. 有人可以澄清HBaseStorage是否只能用于存储新记录或更新现有记录中的列。

Thanks in advance. 提前致谢。

Actually, you can use HBaseStorage to update columns in existing records. 实际上,您可以使用HBaseStorage更新现有记录中的列。 If you provide us with your error message for more details. 如果您向我们提供了错误消息以获取更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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