Selaa lähdekoodia

AMBARI-1648. Hue configuration - DB properties cannot be empty. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1457043 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 vuotta sitten
vanhempi
commit
e37878aaf4

+ 2 - 0
CHANGES.txt

@@ -493,6 +493,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1648. Hue configuration - DB properties cannot be empty. (swagle)
+
  AMBARI-1641. Some map and reduce task metrics are missing for the
  tasktrackers in the API. (tbeerbower)
 

+ 2 - 0
ambari-agent/src/main/puppet/modules/hdp-hue/templates/hue-ini.cfg.erb

@@ -168,12 +168,14 @@
     #
     # Note that for sqlite3, 'name', below is a filename;
     # for other backends, it is the database name.
+  <% if scope.function_hdp_template_var("::hdp-hue::params::hue_db_engine") != "" %>
     engine=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_engine")%>
     host=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_port")%>
     port=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_host")%>
     user=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_user")%>
     password=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_password")%>
     name=<%=scope.function_hdp_template_var("::hdp-hue::params::hue_db_name")%>
+  <% end %>
 
 
   # Configuration options for connecting to an external SMTP server