Reputation: 1
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
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