Support Questions

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

ambari metrics + change the path of hbase.rootdir because local disk not have space

avatar

hi all



in ambari metrics configuration , we have the following

hbase.rootdir=/var/lib/ambari-metrics-collector/hbase

since /var is 97%

we want to replace the path to the new disk ( that mounted to data_metrics folder )

as the following:

hbase.rootdir=/data_metrics/lib/ambari-metrics-collector/hbase

can we just change the path and restart the metrics service ?

so all metrics data will be under - /data_metrics/lib/ambari-metrics-collector/hbase

instead of - /var/lib/ambari-metrics-collector/hbase ?



Michael-Bronson
1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar

do you mean to copy the folder /var/lib/ambari-metrics-collector/hbase to the new path - /data_metrics/lib/ambari-metrics-collector/


as


mv /var/lib/ambari-metrics-collector/hbase /data_metrics/lib/ambari-metrics-collector/ 
Michael-Bronson

avatar

you should be copying the directory structure as it is . Create folder hbase and hbase in /data_metrics/lib/ambari-metrics-collector/ and copy the contents from other place as it is.