Follow the following steps to export the AMS hbase data from 1 cluster to another,
AMS (Ambari Metrics) Hbase data export:
export JAVA_HOME=/usr/jdk64/jdk1.8.0_112
export HBASE_CONF_DIR=/etc/ambari-metrics-collector/conf/
hbase org.apache.hadoop.hbase.mapreduce.Export "METRICS_METADATA" "/user/ams/export"
In this example, we are mapping the HBASE_CONF_DIR variable to AMS configuration directory.
We are trying to export "METRICS_METADATA" hbase table to the HDFS location /user/ams/export.
It will create the following files,
[ams@test ~]$ hadoop fs -ls /user/ams/export/
Found 2 items
-rw-r--r-- 3 ams ams 0 2018-04-30 19:28 /user/ams/export/_SUCCESS
-rw-r--r-- 3 ams ams 5987578 2018-04-30 19:28 /user/ams/export/part-m-00000
We can then transfer these hdfs files to remote cluster to import. Will cover the import steps in next article.
Subscribe to:
Post Comments (Atom)
Boost Your Download Speed with lftp Segmentation
Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...
Other relevant topics
-
Hive metastore DB Connection verification from Command line:- You can run the following on any node where ambari agent installed on the ...
-
Using PIG to load into Hbase:- In this article we will see how to join 2 datasets in PIG and load the joined, filtered data into HBASE t...
-
+++++++++++++++++++++++++++++++++++++++++++ How to move a region from 1 RS to another Region server:- ++++++++++++++++++++++++++++++++++++...
The way of you expressing your ideas is really good.you gave more useful ideas for us and please update more ideas for the learners.
ReplyDeleteHadoop Training in Chennai
Big data training in chennai
Big Data Hadoop Training in Chennai
JAVA Training in Chennai
Python Training in Chennai
IOS Training in Chennai
Hadoop training in chennai
Big data training in chennai
big data training in chennai anna nagar
Spot on with this write-up, I seriously believe that this site needs a great deal more attention. info site I’ll probably be returning to read through more, thanks for the info!
ReplyDeleteNice article I was really impressed by seeing this blog, it was very interesting and it is very useful for me.
ReplyDeleteBig Data Hadoop Training In Chennai | Big Data Hadoop Training In anna nagar | Big Data Hadoop Training In omr | Big Data Hadoop Training In porur | Big Data Hadoop Training In tambaram | Big Data Hadoop Training In velachery