- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ambari metrics + change the path of hbase.rootdir because local disk not have space
Created ‎05-13-2019 06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
Created ‎05-13-2019 06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @Michael Bronson ,
Referring to your doubt of Changing the hbase.rootdir
Please follow the following steps and let me know if this helps ( I am assuming that you need to preserve all the Previously collected metrics )
Steps
1)Stop ambari-metrics
2) Copy the contents of /var/lib/ambari-metrics-collector/ to the New directory you want to set as new
for ex :
cd /var/lib/ambari-metrics-collector/ mv hbase hbase-tmp/ /tmp/ambari-metrics-collector/
3) go to ambari-ui->services->ambari-metrics->config -> search for hbase.rootdir and hbase.tmpdir and change it accordingly as per new Folder sctructure.
4) Start ambari-metrics collector
5) you can see AMS has successfully using the new Hbase dir and also the old matrics are preserved
Let me know if this helps. Please accept the answer if it did.
Created ‎05-13-2019 06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @Michael Bronson ,
Referring to your doubt of Changing the hbase.rootdir
Please follow the following steps and let me know if this helps ( I am assuming that you need to preserve all the Previously collected metrics )
Steps
1)Stop ambari-metrics
2) Copy the contents of /var/lib/ambari-metrics-collector/ to the New directory you want to set as new
for ex :
cd /var/lib/ambari-metrics-collector/ mv hbase hbase-tmp/ /tmp/ambari-metrics-collector/
3) go to ambari-ui->services->ambari-metrics->config -> search for hbase.rootdir and hbase.tmpdir and change it accordingly as per new Folder sctructure.
4) Start ambari-metrics collector
5) you can see AMS has successfully using the new Hbase dir and also the old matrics are preserved
Let me know if this helps. Please accept the answer if it did.
Created ‎05-13-2019 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
Created ‎05-13-2019 07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
