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

Andrew Onischuk commented on AMBARI-17621:
------------------------------------------

{noformat}
----------------------------------------------------------------------
Failed tests:
ERROR: test_validateStormRangerPluginConfigurations 
(test_stack_advisor.TestHDP22StackAdvisor)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py",
 line 3947, in test_validateStormRangerPluginConfigurations
    res = self.stackAdvisor.validateStormRangerPluginConfigurations(properties, 
recommendedDefaults, configurations, services, {})
  File 
"/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/test/python/stacks/2.2/common/../../../../../main/resources/stacks/HDP/2.2/services/stack_advisor.py",
 line 1508, in validateStormRangerPluginConfigurations
    servicesList = [service["StackServices"]["service_name"] for service in 
services["services"]]
KeyError: 'services'

----------------------------------------------------------------------
Total run:1016
Total errors:1
Total failures:0
ERROR
{noformat}

The failure is not related to the patch and reproduces even without. The patch 
didn't introduce any new test failures.

> Kerberized Solr support for Atlas
> ---------------------------------
>
>                 Key: AMBARI-17621
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17621
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17621.patch
>
>
> Currently Atlas does not support kerberized Solr communication.  
> To make kerberized Solr client work:  
> 1\. Set `java.security.auth.login.config` property, which points to a jaas-
> file (with Client block)  
> 2\. Use Kerberos http client configurer.
> This option should be bind to a new property (e.g.:
> "atlas.solr.kerberos.enable")
> call this before creating CloudSolrClient instance: (most likely
> Solr5Index.java)
>     
>     
>     
>     boolean securityEnabled = 
> PropertiesUtil.getBooleanProperty("atlas.solr.kerberos.enable", false);
>     if (securityEnabled) {
>       System.setProperty("java.security.auth.login.config", 
> "/etc/atlas/conf/atlas-jaas.conf");
>       HttpClientUtil.setConfigurer(new Krb5HttpClientConfigurer());
>     }
>     
> some useful documentation from Ranger:  
> <https://cwiki.apache.org/confluence/display/RANGER/How+to+configure+Solr+Clou
> d+with+Kerberos+for+Ranger+0.5>
> On ambari side: we should handle this property if kerberos is enabled. The new
> property should be added only if Solr is used for Atlas



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to