[
https://issues.apache.org/jira/browse/AMBARI-23247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Myroslav Papirkovskyi resolved AMBARI-23247.
--------------------------------------------
Resolution: Fixed
Merged to trunk
> Ambari Setup with external postgres db failed on configuring database.
> ----------------------------------------------------------------------
>
> Key: AMBARI-23247
> URL: https://issues.apache.org/jira/browse/AMBARI-23247
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.7.0
> Reporter: Myroslav Papirkovskyi
> Assignee: Myroslav Papirkovskyi
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 2.7.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Suse deployments fails during ambari-server setup with error:
> {noformat}
> Configuring ambari database...
> INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
> Enter full path to custom jdbc driver:
> Traceback (most recent call last):
> File "/usr/sbin/ambari-server.py", line 1042, in <module>
> mainBody()
> File "/usr/sbin/ambari-server.py", line 1012, in mainBody
> main(options, args, parser)
> File "/usr/sbin/ambari-server.py", line 962, in main
> action_obj.execute()
> File "/usr/sbin/ambari-server.py", line 79, in execute
> self.fn(*self.args, **self.kwargs)
> File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 1199,
> in setup
> _setup_database(options)
> File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 1012,
> in _setup_database
> dbmsAmbari.setup_database()
> File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line
> 154, in setup_database
> self._setup_remote_database()
> File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py",
> line 162, in _setup_remote_database
> if self.ensure_jdbc_driver_installed(properties):
> File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line
> 177, in ensure_jdbc_driver_installed
> path_to_custom_jdbc_driver = get_validated_string_input("Enter full path to
> custom jdbc driver: ", None, None, None, False, False)
> File "/usr/lib/ambari-server/lib/ambari_server/userInput.py", line 87, in
> get_validated_string_input
> if not input.strip():
> AttributeError: 'NoneType' object has no attribute 'strip'
> {noformat}
> Executed command during test:
> {noformat}
> ambari-server setup --database=postgres --databasehost=<hostName>
> --databaseport=<port> --databasename=<databaseName>
> --databaseusername=<userName> --databasepassword=<password>
> --java-home=/base/tools/jdk1.8.0_112 -s
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)