Reputation: 4139
Like the question says: Is it possible to truncate an hbase table via the REST interface? Looking at the docs (http://hbase.apache.org/book.html#_rest), there seems to be no documented or direct commands for this. But it seems like this would a relatively common use case. Does anyone know a nice way to implement this kind of function using only REST commands?
Upvotes: 0
Views: 194
Reputation: 463
I don't think it is supported and you should avoid using truncate on HBase tables except for development or testing purpose. If you really need to purge rows, check if the TTL can fulfill your needs (see https://hbase.apache.org/book.html#ttl)
Upvotes: 1