2

I am trying to write a backup script of HBase tables. So I wanted to get all those tables which are created/modified after a particular time. Is there any command for that? Thanks for the suggestions in advance

Community
  • 1
  • 1
Midhun Mathew Sunny
  • 1,271
  • 4
  • 17
  • 30

1 Answers1

1

All hbase tables are stored in HDFS

In hbase site.xml see hbase.rootdir

<property>
      <name>hbase.rootdir</name>
      <value>hdfs://hadoop:8020/apps/hbase</value>
 </property>

so you can do hadoop fs -ls -R | grep yourtable

it will print time stamps

Ram Ghadiyaram
  • 28,239
  • 13
  • 95
  • 121