Do this to fix your issue:
change the config something like this ...
add yaml env variable "${dir_for_config}" note that '~/' is bash expansion [0] eg: ... conf.yml
dbConfig: dbType: H2 driver: org.h2.Driver url: jdbc:h2:~/${dir_for_config}/config-service;DB_CLOSE_DELAY=-1;AUTO_RECONNECT=TRUE;DB_CLOSE_ON_EXIT=FALSE
In CM WebUI CM> Yarn Queue...>Conf>
find "YARN Queue Manager Service Environment Advanced Configuration Snippet (Safety Valve)"add: key: dir_for_config value: x