Support Questions
Find answers, ask questions, and share your expertise

How to override default configs before everything starts in hdp or hdp sandbox ?

How to override default configs before everything starts in hdp or hdp sandbox ?

Contributor

Hi, 

 

I am using hdp docker sandbox https://hub.docker.com/r/hortonworks/sandbox-hdp/tags?page=1&ordering=last_updated and I would like to override some configs so that I can have expected configs every time the sandbox starts instead of modifying in the Ambari UI and restarting to take effect.

 

For example, I want to change the default value of `metastore.catalog.default` from `spark` to `hive`, which file should I override ? I have tried several files that do not work, including:

 

* /usr/hdp/current/spark2-client/conf/hive-site.xml

* /usr/hdp/current/spark2-client/conf/spark-defaults.conf

* /usr/hdp/3.0.1.0-187/spark2/conf/hive-site.xml

* /var/lib/ambari-server/resources/stacks/HDP/3.0/services/SPARK2/configuration/spark2-hive-site-override.xml

* /var/lib/ambari-server/resources/common-services/SPARK2/2.0.0/configuration/spark2-hive-site-override.xml

 

Thanks