diff --git a/sahara/plugins/mapr/services/impala/impala.py b/sahara/plugins/mapr/services/impala/impala.py index cdc61cce..bbd203d6 100755 --- a/sahara/plugins/mapr/services/impala/impala.py +++ b/sahara/plugins/mapr/services/impala/impala.py @@ -57,7 +57,7 @@ class Impala(s.Service): return {} def get_config_files(self, cluster_context, configs, instance=None): - defaults = 'plugins/mapr/services/impala/resources/impala-env.sh' + defaults = 'plugins/mapr/services/impala/resources/impala-env.sh.j2' impala_env = bcf.TemplateFile("env.sh") impala_env.remote_path = self.conf_dir(cluster_context) diff --git a/sahara/plugins/mapr/services/impala/resources/impala-env.sh b/sahara/plugins/mapr/services/impala/resources/impala-env.sh.j2 similarity index 89% rename from sahara/plugins/mapr/services/impala/resources/impala-env.sh rename to sahara/plugins/mapr/services/impala/resources/impala-env.sh.j2 index 704f8a01..9748c60c 100644 --- a/sahara/plugins/mapr/services/impala/resources/impala-env.sh +++ b/sahara/plugins/mapr/services/impala/resources/impala-env.sh.j2 @@ -1,4 +1,3 @@ -#!/bin/bash # these are configured automatically when impala is installed export IMPALA_HOME=/opt/mapr/impala/impala-{{ impala_version }} export MAPR_HOME=/opt/mapr @@ -8,9 +7,9 @@ export IMPALA_VERSION={{ impala_version }} [ -f ${MAPR_HOME}/conf/env.sh ] && . ${MAPR_HOME}/conf/env.sh # This MUST point to the node running statestore -IMPALA_STATE_STORE_HOST=$(statestore_host | default("localhost", True)) -IMPALA_STATE_STORE_PORT=$(statestore_port | default("24000", True)) -CATALOG_SERVICE_HOST=$(catalog_host | default("localhost", True)) +IMPALA_STATE_STORE_HOST={{ statestore_host | default("localhost", True) }} +IMPALA_STATE_STORE_PORT={{ statestore_port | default("24000", True) }} +CATALOG_SERVICE_HOST={{ catalog_host | default("localhost", True) }} # By default, we use the Hive configuration. # Uncomment this If hive is not configured, or we wish to override it.