Reply
Highlighted
Explorer
Posts: 8
Registered: ‎08-16-2018
Accepted Solution

Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

Hi, 

 

I've changed the Host Monitor Storage Directory (firehose.storage.base.directory) from /var/lib/cloudera-host-monitor to somewhere else in order to make some tests. After that, I turned back to the old place, having never deleted the data from before those directory changes. 

 

Nevertheless, after this directory changes, the data collected before is not used to plot the charts. I can only see on charts data collected after al those changes, despite having much more information in the directory. 

 

Is there anything I could do for the old data to be seen on charts? My current CDH and CDM version is 5.15

 

Thanks!

Explorer
Posts: 8
Registered: ‎08-16-2018

Re: Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

[ Edited ]

Adding more information:

 

It seems that my issue has been caused by not stopping Host Monitor and Service Monitor roles BEFORE moving data between folders. I've just done it when it was needed due to the reconfiguration of firehose.storage.base.directory (the moment that cloudera manager demands a restart of these roles). 

 

That being said, I slightly change my query here: is it possible to merge information from 2 different firehose.storage.base.directory folders? When I try to do that, the charts show only the information related to the most recent folder. 

Cloudera Employee
Posts: 229
Registered: ‎01-15-2015

Re: Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

Hi raphaelt,

 

not it's not possible to merge the two directories. You need to make a decision with which folder to proceed, thus where to have gaps in the charts in CM.

Explorer
Posts: 8
Registered: ‎08-16-2018

Re: Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

Hi, @gzigldrum , thaks for your message, i'll do that.

 

Would you be able to explay why it's not possible to be done? 

 

 

Cloudera Employee
Posts: 229
Registered: ‎01-15-2015

Re: Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

Sure! The data of the two timeseries databases would have to be merged. Technically this is possible but there is no code in Cloudera Manager to do it, as this is not an intended use case.

Explorer
Posts: 8
Registered: ‎08-16-2018

Re: Is it possible to use old data after changing Host Monitor Storage Directory? I can't do it.

Thanks, @gzigldrum , for the explanation!