Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Trying "hbase org.apache.hadoop.hbase.mapreduce.Export" method to backup all my metrics. Only get 1 metric / help needed

avatar
Explorer

Hello,

I'm currently trying to backup openTSDB metrics from HBASE using this command

/usr/bin/hbase org.apache.hadoop.hbase.mapreduce.Export tsdb /exportdir 1 1704900200 1704900210

Problem : I only got files of 114 octets containing 1 metric whereas I have tens of thousands of metrics : 

$ ls -l | head
total 7424
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00000
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00001
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00002
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00003
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00004
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00005
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00006
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00007
-rw-r--r-- 1 hdfs hadoop 114 Jan 12 10:15 part-m-00008

$ strings part-m-00005
1org.apache.hadoop.hbase.io.ImmutableBytesWritable%org.apache.hadoop.hbase.client.Result

What's wrong please ?

Regards

1 REPLY 1

avatar
Explorer

By the way I would like to know if when we "import" a table it adds the values or flush the table before and then adds the imports values.

Thank you