- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Trying "hbase org.apache.hadoop.hbase.mapreduce.Export" method to backup all my metrics. Only get 1 metric / help needed
- Labels:
-
Apache HBase
Created 01-12-2024 01:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 01-12-2024 09:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
