瀏覽代碼

AMBARI-5625. ambari-server setup does not allow to specify existing Postgres db through command line option --database. (Myroslav Papirkovskyy via swagle)

Siddharth Wagle 11 年之前
父節點
當前提交
7d3eb698d9
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      ambari-server/src/main/python/ambari-server.py

+ 0 - 4
ambari-server/src/main/python/ambari-server.py

@@ -4120,10 +4120,6 @@ def main():
       parser.print_help()
       parser.print_help()
       parser.error("Incorrect database port " + options.database_port)
       parser.error("Incorrect database port " + options.database_port)
 
 
-  if options.dbms is not None and options.dbms == "postgres":
-    print "WARNING: HostName for postgres server " + options.database_host + \
-     " will be ignored: using localhost."
-    options.database_host = "localhost"
 
 
   if options.sid_or_sname.lower() not in ["sid", "sname"]:
   if options.sid_or_sname.lower() not in ["sid", "sname"]:
     print "WARNING: Valid values for sid_or_sname are 'sid' or 'sname'. Use 'sid' if the db identifier type is " \
     print "WARNING: Valid values for sid_or_sname are 'sid' or 'sname'. Use 'sid' if the db identifier type is " \