Clifford Miller
Clifford Miller

Reputation: 1

How to update Accumulo visibility label?

We have a scenario in which we need to update Accumulo visibility labels. My understanding is that visibilities are immutable. Should we make a copy of the item assigning it the new visibility label and then delete the old one or is there a better way?

Upvotes: 0

Views: 440

Answers (1)

Christopher
Christopher

Reputation: 2512

Visibility labels in Accumulo are intentionally immutable. You can insert new entries and delete the old ones, or you can extend the TransformingIterator to convert your old visibility labels to new ones during a major compaction (test with the scan scope first, or test on a cloned table).

Upvotes: 2

Related Questions