通过Phoenix View直接使用upsert to hbase table

Directly use upsert to hbase table through Phoenix View

我有关于 hbase 表映射到 phoenix 的问题。 是否可以直接使用 'upsert' 来查看 phoenix 上的 hbase 表? 因为当我尝试这样做时,我遇到了 'table is read only'.

错误

谢谢

根据文档:

A view will be updatable (i.e. referenceable in a DML statement such as UPSERT or DELETE) if its WHERE clause expression contains only simple equality expressions separated by ANDs. Updatable views are not required to set the columns which appear in the equality expressions, as the equality expressions define the default values for those columns.

另一种选择是,创建一个 table 引用现有的 hbase table。您可以使用更新插入。