You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/09/15 17:04:20 UTC
[jira] [Commented] (AMBARI-17889) Bad error message if user has not
performed ambari-server setup for jdbc driver before configuring custom DB
[ https://issues.apache.org/jira/browse/AMBARI-17889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15493945#comment-15493945 ]
Hudson commented on AMBARI-17889:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #40 (See [https://builds.apache.org/job/Ambari-branch-2.5/40/])
AMBARI-17889. Bad error message if user has not performed ambari-server (vbrodetskyi: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e3a0cc5f762657c5640724fb19be9a0414db4490])
* (edit) ambari-server/src/main/resources/custom_actions/scripts/check_host.py
> Bad error message if user has not performed ambari-server setup for jdbc driver before configuring custom DB
> ------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-17889
> URL: https://issues.apache.org/jira/browse/AMBARI-17889
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.4.0
> Reporter: Vitaly Brodetskyi
> Assignee: Vitaly Brodetskyi
> Fix For: 2.5.0
>
> Attachments: AMBARI-17889.patch
>
>
> While installing a cluster, I forgot to call:
> {{ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar}}
> Check DB connection failed with:
> {code}
> 2016-07-13 00:56:32,751 - There was an unknown error while checking database connectivity: cannot concatenate 'str' and 'NoneType' objects
> Traceback (most recent call last):
> File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 144, in actionexecute
> db_connection_check_structured_output = self.execute_db_connection_check(config, tmp_dir)
> File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 285, in execute_db_connection_check
> jdbc_url = jdk_location + jdbc_driver_mysql_name
> TypeError: cannot concatenate 'str' and 'NoneType' objects
> 2016-07-13 00:56:32,752 - Check db_connection_check was unsuccessful. Exit code: 1. Message: cannot concatenate 'str' and 'NoneType' objects
> Traceback (most recent call last):
> File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 506, in <module>
> CheckHost().execute()
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 206, in actionexecute
> raise Fail(error_message)
> resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: cannot concatenate 'str' and 'NoneType' objects
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)