HiveMQ

Hivemq-ce persistence config

What is the equivalent of mosquitto:

persistence true
persistence_location /mosquitto/data

Thanks

Hi caevv,
HiveMQ always persists its data.
You can change the folder by following the user guide.

Kind regards,
Florian

So basically for the persistence storage folder, would it be?

hivemq.data.folder HIVEMQ_DATA_FOLDER HiveMQ data folder

In order to set your data folder you need to add the following:

As Java option:

JAVA_OPTS="$JAVA_OPTS -Dhivemq.data.folder=/path/to/folder"

as Environment variable:

export HIVEMQ_DATA_FOLDER=/path/to/your/folder

Please not that HiveMQ uses the HIVEMQ_HOME/data folder by default, if you do not specifically set a folder.

1 Like