[ 
https://issues.apache.org/jira/browse/AMBARI-21882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158007#comment-16158007
 ] 

Jonathan Hurley commented on AMBARI-21882:
------------------------------------------

[~stoader] Can you please check this commit ... I think it's causing Python 
test failures on {{branch-2.6}}:

{code}
----------------------------------------------------------------------
Failed tests:
ERROR: test_jdbc_type_2_1_0_3_0 (test_jdbc_driver_config.TestJdbcDriverConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/HIVE/test_jdbc_driver_config.py",
 line 53, in test_jdbc_type_2_1_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, "hive_default.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class HiveServer from 
HIVE/2.1.0.3.0/package/scripts/hive_server.py:

ERROR: test_unsupported_jdbc_type_throws_error_2_1_0_3_0 
(test_jdbc_driver_config.TestJdbcDriverConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/HIVE/test_jdbc_driver_config.py",
 line 62, in test_unsupported_jdbc_type_throws_error_2_1_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, 
"hive_unsupported_jdbc_type.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class HiveServer from 
HIVE/2.1.0.3.0/package/scripts/hive_server.py:

ERROR: test_db_flavor_1_0_0_3_0 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/RANGER/test_db_flavor_config.py",
 line 54, in test_db_flavor_1_0_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, "ranger_admin_default.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class RangerAdmin from 
RANGER/1.0.0.3.0/package/scripts/ranger_admin.py:

ERROR: test_unsupported_db_flavor_1_0_0_3_0 
(test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/RANGER/test_db_flavor_config.py",
 line 63, in test_unsupported_db_flavor_1_0_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, 
"ranger_admin_unsupported_db_flavor.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class RangerAdmin from 
RANGER/1.0.0.3.0/package/scripts/ranger_admin.py:

ERROR: test_db_flavor_1_0_0_3_0 (test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/RANGER_KMS/test_db_flavor_config.py",
 line 54, in test_db_flavor_1_0_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, "ranger_kms_default.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class KmsServer from 
RANGER_KMS/1.0.0.3.0/package/scripts/kms_server.py:

ERROR: test_unsupported_db_flavor_1_0_0_3_0 
(test_db_flavor_config.TestDbFlavorConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/RANGER_KMS/test_db_flavor_config.py",
 line 63, in test_unsupported_db_flavor_1_0_0_3_0
    config_file=os.path.join(self.CONFIG_DIR, 
"ranger_kms_unsupported_db_flavor.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class KmsServer from 
RANGER_KMS/1.0.0.3.0/package/scripts/kms_server.py:

ERROR: test_jdbc_driver_1_4_4_2_0 (test_jdbc_driver_config.TestJdbcDriverConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/SQOOP/test_jdbc_driver_config.py",
 line 37, in test_jdbc_driver_1_4_4_2_0
    config_file=os.path.join(self.CONFIG_DIR, "sqoop_default.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 152, in executeScript
    method(RMFTestCase.env, *command_args)
  File 
"/Users/jhurley/src/apache/ambari/ambari-common/src/main/python/resource_management/libraries/script/script.py",
 line 119, in locking_configure
    original_configure(obj, *args, **kw)
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/sqoop_client.py",
 line 41, in configure
    sqoop(type='client')
  File 
"/Users/jhurley/src/apache/ambari/ambari-common/src/main/python/ambari_commons/os_family_impl.py",
 line 89, in thunk
    return fn(*args, **kwargs)
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/main/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/sqoop.py",
 line 56, in sqoop
    configs.update(params.config['configurations']['sqoop-site'])
  File 
"/Users/jhurley/src/apache/ambari/ambari-common/src/main/python/resource_management/libraries/script/config_dictionary.py",
 line 73, in __getattr__
    raise Fail("Configuration parameter '" + self.name + "' was not found in 
configurations dictionary!")
Fail: Configuration parameter 'sqoop-site' was not found in configurations 
dictionary!

ERROR: test_jdbc_driver_1_4_4_3_0 (test_jdbc_driver_config.TestJdbcDriverConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/SQOOP/test_jdbc_driver_config.py",
 line 54, in test_jdbc_driver_1_4_4_3_0
    config_file=os.path.join(self.CONFIG_DIR, "sqoop_default.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class SqoopClient from 
SQOOP/1.4.4.3.0/package/scripts/sqoop_client.py:

ERROR: test_unsupported_jdbc_driver_1_4_4_3_0 
(test_jdbc_driver_config.TestJdbcDriverConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/common-services/SQOOP/test_jdbc_driver_config.py",
 line 63, in test_unsupported_jdbc_driver_1_4_4_3_0
    config_file=os.path.join(self.CONFIG_DIR, 
"sqoop_unsupported_jdbc_driver.json"))
  File 
"/Users/jhurley/src/apache/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 126, in executeScript
    raise RuntimeError("Cannot load class %s from %s: %s" % (classname, 
norm_path, err.message))
RuntimeError: Cannot load class SqoopClient from 
SQOOP/1.4.4.3.0/package/scripts/sqoop_client.py:

----------------------------------------------------------------------
Total run:1198
Total errors:9
Total failures:0
{code}

> Throw an error if unsupported database JDBC driver is configured for HDP 
> services
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-21882
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21882
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>            Reporter: Sebastian Toader
>            Assignee: Sebastian Toader
>             Fix For: 2.6.0
>
>         Attachments: AMBARI-21882.v1.patch
>
>
> Ambari supports a couple of RDBMSes which can be set up via {{ambari-server 
> setup}} in order to have JDBC drivers available for agents. Agent will 
> download the JDBC driver from the server for HDP services that needs access 
> to a RDBMS. 
> The start scripts of these HDP service component checks the service 
> configuration for the type of JDBC driver and will use the appropriate JDBC 
> driver.
> In case the service configuration refers to a JDBC driver type that is not 
> supported by Ambari the start script should fail with an error that 
> explicitly informs the user that an unsupported JDBC driver type has been 
> specified.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to