Support Questions

Find answers, ask questions, and share your expertise

what is the best way to take backup for ambari-server?

avatar
Expert Contributor

Presently, we are running ambari server on ec2 instance and using rds instance i.e Mysql as database. Ambari server's disk space is 80% full now. What is the best way to take backup and ambari server up and running. Can anyone please tell me the procedure?

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Ram D

Clone the vm if ambari is running in vm

If it's on baremetal then backup the database and follow this http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_back_up_c...

AMS stores the data in embeded HBASE instance. See this https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode

You need to backup AMS

View solution in original post

7 REPLIES 7

avatar
Super Collaborator

You can take a dump of the MySQL database to a text file using the mysqldump command. You can see further info on the documentation site at https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_upgrading_Ambari/content/_perform_backup...

avatar
Expert Contributor

@Terry Padgett

Thank you.I am asking about ambari server backup, which is having metrics data from the last 2 months and captured most of the disk space. Let me know the process how to backup the metrics data and ambari server up and running without having downtime. Is there any downtime while doing the backup?

avatar
Master Mentor
@Ram D

Clone the vm if ambari is running in vm

If it's on baremetal then backup the database and follow this http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_back_up_c...

AMS stores the data in embeded HBASE instance. See this https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode

You need to backup AMS

avatar
Master Mentor
@Ram D

you can use the ambari metrics api or go directly to the Phoenix database, AMbari metrics leverages Phoenix for it's storage.

https://cwiki.apache.org/confluence/display/AMBARI/Phoenix+Schema

Since its in Phoenix, you can use Mapreduce, Spark, Pig, JDBC to grab the data or using the REST API I mentioned above

https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Metrics+API+specification

avatar

@Ram D

What is the Total space you have allocated for Ambari Metrics? It is expected to be about 100Gb based on the workloads. How many nodes are in the cluster and what components run on this system? Do you need all those data?

You could also review the TTL parameters in AMS to reduce the amount of data retained over a period of time.

If you have 100's of nodes, you could also look at using HDFS for storage[ie, move from embedded to distributed mode]. This way you could move the content into HDFS.

avatar
Expert Contributor
@vpoornalingam

We are having a small cluster with 30 nodes, in which 18 are data nodes. We assigned 15GB for ambari-server. we deployed our packages through slider in hadoop cluster as a long running jobs. We are not using any ecosystems. Thank you. For how many days, we need to store the AMS data? Is there any specific calculation for that?

avatar
@Ram D

It is upto your cluster planning and how old data you need.