You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ishan Chattopadhyaya (JIRA)" <ji...@apache.org> on 2016/01/06 08:37:39 UTC
[jira] [Comment Edited] (SOLR-8493)
SolrHadoopAuthenticationFilter.getZkChroot:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[ https://issues.apache.org/jira/browse/SOLR-8493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085140#comment-15085140 ]
Ishan Chattopadhyaya edited comment on SOLR-8493 at 1/6/16 7:37 AM:
--------------------------------------------------------------------
SolrHadoopAuthenticationFilter is custom code introduced in CDH's version of Solr. Can you please check with Cloudera's support? (It is roughly equivalent to Solr's KerberosFilter in Solr.)
was (Author: ichattopadhyaya):
SolrHadoopAuthenticationFilter is custom code introduced in CDH's version of Solr. Can you please check with Cloudera's support?
> SolrHadoopAuthenticationFilter.getZkChroot: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> --------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-8493
> URL: https://issues.apache.org/jira/browse/SOLR-8493
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 4.10.3
> Reporter: zuotingbing
>
> [error info]
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1904)
> at org.apache.solr.servlet.SolrHadoopAuthenticationFilter.getZkChroot(SolrHadoopAuthenticationFilter.java:147)
> [source code]:
> SolrHadoopAuthenticationFilter.java
> private String getZkChroot() {
> String zkHost = System.getProperty("zkHost");
> return zkHost != null?
> zkHost.substring(zkHost.indexOf("/"), zkHost.length()) : "/solr";
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org