Search code examples
accumulo

How to find out the number of entries or size of table in the Accumulo?


I have inserted data into accumulo. But how would i know the exact count of the table ? Is there any method or API to read the accumulo table size of number of entries ?


Solution

  • Do you need to do it programatically? If not, there are various ways that you can do this. The easiest is to go to the Accumulo monitor page on port 50095. If you don't have a ton of data, from the command line you can simply do

    accumulo shell -u username -p password -e "scan -t foo -np" | wc -l