[ https://issues.apache.org/jira/browse/AMBARI-18898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivér Szabó updated AMBARI-18898: ---------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) committed to trunk: {code:java} commit b70c78b2a2f4d1fa33aae180abea6724eca1b01a Author: Miklos Gergely <mgerg...@hortonworks.com> Date: Wed Nov 16 11:48:57 2016 +0100 AMBARI-18898. Multiple kerberos name rules can not be set up for Ambari Infra Solr (Miklos Gergely via oleewere) Change-Id: I06fa25b7d0e700f37a8d93eb15ee8a2ff884021b {code} comitted to branch-2.5: {code:java} commit 72953633b5589659e4127974c5dc54afc9674e01 Author: Miklos Gergely <mgerg...@hortonworks.com> Date: Wed Nov 16 11:48:57 2016 +0100 AMBARI-18898. Multiple kerberos name rules can not be set up for Ambari Infra Solr (Miklos Gergely via oleewere) Change-Id: I06fa25b7d0e700f37a8d93eb15ee8a2ff884021b {code} > Multiple kerberos name rules can not be set up for Ambari Infra Solr > -------------------------------------------------------------------- > > Key: AMBARI-18898 > URL: https://issues.apache.org/jira/browse/AMBARI-18898 > Project: Ambari > Issue Type: Bug > Components: ambari-logsearch > Affects Versions: 2.4.0 > Reporter: Miklos Gergely > Assignee: Miklos Gergely > Priority: Critical > Fix For: 2.5.0 > > Attachments: AMBARI-18898.patch > > > If multiple rules are entered into the proprety > Advanced infra-solr-env / Infra Solr Kerberos name rules > There are multiple issues here: > 1. The rules should be escaped, the $ characters in them should be handled, > so that the expressions in the rules like $0, $1 are not replaced with the > script directory, and the script file name. Currently the user must do this > in the value entered, which is not even documented. > 2. The variable SOLR_KERB_NAME_RULES in infra-solr-env.sh should have quotes > around it's value, so that the whole string is assigned to it, not only the > first rule. > 3. SOLR_KERB_NAME_RULES can not be the part of SOLR_AUTHENTICATION_OPTS, > because it is handled incorrectly, if an expression like -Dname="value1 > value2" is passed to the jvm from a bash variable. Therefore > /usr/lib/ambari-infra-solr/bin/solr should be updated, and > -Dsolr.kerberos.name.rules="$SOLR_KERB_NAME_RULES" should be added directly > into the command script. > Options -- This message was sent by Atlassian JIRA (v6.3.4#6332)