'How to remove all tables of accumulo or format hadoop files for accumulo
I want to clear all records in accumulo for my local machine and want to delete unused tables created while testing. I found delete table command which can be used from accumulo shell, however that will require much of manual works for deleting large number of tables. I also tried instructions to format namenode of hadoop but that doesn't seems to work.
How can I remove all tables and have fresh start with accumulo datastore?
Solution 1:[1]
Well, I deleted all the tables using command deletetable -f -p Test.*. Which will delete all tables with prefix "Test". In short we can write a script to delete all tables.
To remove all the hadoop files from accumulo, follow the steps:
- Stop accumulo
- Run
$ hdfs dfs -rm -R -skipTrash hdfs://localhost:9000/accumulo. Wherehdfs://localhost:9000/accumulois path to accumulo data. - Re-run
$ accumulo init. - Start Accumulo
$ ./bin/start-all.sh.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
