<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Solr &amp;quot;Request is a replay&amp;quot; (Ambari Infra Solr 2.5) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212874#M174804</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/150/sroberts.html" nodeid="150"&gt;@Sean Roberts&lt;/A&gt; - Was Solr completely initialized when you were hitting it with curl? Did you restart Solr or reload the ranger_audit collection? &lt;/P&gt;&lt;P&gt;One way to get a better error message:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://hostname:8886/solr/ranger_audits_shard1_replica1/query?debug=query&amp;amp;q=*:*&amp;amp;distrib=false" target="_blank"&gt;http://hostname:8886/solr/ranger_audits_shard1_replica1/query?debug=query&amp;amp;q=*:*&amp;amp;distrib=false&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;This will query only a single shard and not try to get bounced around.&lt;/P&gt;&lt;P&gt;On my Ambari Infra server, if I reboot and issue queries before the collections are completely loaded I get the request is a replay hitting /solr/ranger_audits/ but if I hit a single shard I get this error message:&lt;/P&gt;&lt;PRE&gt;{
  "responseHeader":{
    "status":503,
    "QTime":0,
    "params":{
      "q":"*:*",
      "debug":"query"}},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"no servers hosting shard: shard2",
    "code":503}}&lt;/PRE&gt;&lt;P&gt;The shard2 could be any shard that is still initializing. You should also be able to see this in the Solr Admin UI -&amp;gt; Cloud and see which shards aren't green.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Nov 2017 12:48:15 GMT</pubDate>
    <dc:creator>risdenk</dc:creator>
    <dc:date>2017-11-12T12:48:15Z</dc:date>
    <item>
      <title>Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212870#M174800</link>
      <description>&lt;P&gt;
	We are unable to make queries to collections on Ambari Infra Solr. This same request works on other Ambari 2.5 clusters.&lt;/P&gt;
&lt;PRE&gt;# curl -g --negotiate -u : "http://hostname:8886/solr/ranger_audits/query?debug=query&amp;amp;q=*:*"&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&amp;gt;
&amp;lt;title&amp;gt;Error 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Request is a replay (34))&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 403&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Problem accessing /solr/ranger_audits/select. Reason:
&amp;lt;pre&amp;gt;    GSSException: Failure unspecified at GSS-API level (Mechanism level: Request is a replay (34))&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;hr/&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/PRE&gt;&lt;P&gt;
	Here is the krb5 debug log showing the duplicate key after setting &lt;CODE&gt;SOLR_OPTS="$SOLR_OPTS -Dsun.security.krb5.debug=true&lt;/CODE&gt;.&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; KrbApReq: authenticate succeed.
Krb5Context setting peerSeqNumber to: 907174024
&amp;gt;&amp;gt;&amp;gt; EType: sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType
Krb5Context setting mySeqNumber to: 512754846
Found KeyTab /etc/security/keytabs/spnego.service.keytab for HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
Found KeyTab /etc/security/keytabs/spnego.service.keytab for HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
Entered Krb5Context.acceptSecContext with state=STATE_NEW
Looking for keys for: HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
Added key: 17version: 2
Found unsupported keytype (1) for HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
Found unsupported keytype (3) for HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
Added key: 18version: 2
&amp;gt;&amp;gt;&amp;gt; EType: sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType
Using builtin default etypes for permitted_enctypes
default etypes for permitted_enctypes: 18 17 16 23.
&amp;gt;&amp;gt;&amp;gt; EType: sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType
MemoryCache: add 1508065886/914380/B8B23803754E028D7923075AFEB12AAC/infra-solr/hostname.domain.com@MYCLUSTER.DOMAIN.COM to infra-solr/hostname.domain.com@MYCLUSTER.DOMAIN.COM|HTTP/hostname.domain.com@MYCLUSTER.DOMAIN.COM
MemoryCache: Existing AuthList:
#3: 1508065826/137763/263ACEC1894287E10DE785337DF032E1/infra-solr/hostname.domain.com@MYCLUSTER.DOMAIN.COM
#2: 1508065868/906511/338AF89A3C5C5E73950D89CD559EBEFD/infra-solr/hostname.domain.com@MYCLUSTER.DOMAIN.COM
#1: 1508065886/914380/B8B23803754E028D7923075AFEB12AAC/infra-solr/hostname.domain.com@MYCLUSTER.DOMAIN.COM


&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;But administrative requests work:&lt;/P&gt;
&lt;PRE&gt;# sudo curl -g --negotiate -u : "http://hostname:8886/solr/admin/collections?action=LIST"
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;lst name="responseHeader"&amp;gt;&amp;lt;int name="status"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;int name="QTime"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;arr name="collections"&amp;gt;&amp;lt;str&amp;gt;fulltext_index&amp;lt;/str&amp;gt;&amp;lt;str&amp;gt;ranger_audits&amp;lt;/str&amp;gt;&amp;lt;str&amp;gt;edge_index&amp;lt;/str&amp;gt;&amp;lt;str&amp;gt;vertex_index&amp;lt;/str&amp;gt;&amp;lt;/arr&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Oct 2017 17:21:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212870#M174800</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2017-10-15T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212871#M174801</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/150/sroberts.html"&gt;Sean Roberts&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;Can you try the same curl request with the verbose option and share the response. Looks like the response,&lt;/P&gt;&lt;PRE&gt;GSSException:Failure unspecified at GSS-API level (Mechanism level:Requestis a replay (34))&lt;/PRE&gt;&lt;P&gt;implies that the request carries the same token which was previously used for a different request and the connection doesn't seem to be closed. In that case you can destroy the current ticket and try with a fresh ticket.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:49:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212871#M174801</guid>
      <dc:creator>vsuvagia</dc:creator>
      <dc:date>2017-10-16T12:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212872#M174802</link>
      <description>&lt;P&gt;Curl shows the same.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:22:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212872#M174802</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2017-10-16T15:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212873#M174803</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/150/sroberts.html"&gt;Sean Roberts&lt;/A&gt;, did you try curl with -v option ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:56:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212873#M174803</guid>
      <dc:creator>vsuvagia</dc:creator>
      <dc:date>2017-10-17T01:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212874#M174804</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/150/sroberts.html" nodeid="150"&gt;@Sean Roberts&lt;/A&gt; - Was Solr completely initialized when you were hitting it with curl? Did you restart Solr or reload the ranger_audit collection? &lt;/P&gt;&lt;P&gt;One way to get a better error message:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://hostname:8886/solr/ranger_audits_shard1_replica1/query?debug=query&amp;amp;q=*:*&amp;amp;distrib=false" target="_blank"&gt;http://hostname:8886/solr/ranger_audits_shard1_replica1/query?debug=query&amp;amp;q=*:*&amp;amp;distrib=false&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;This will query only a single shard and not try to get bounced around.&lt;/P&gt;&lt;P&gt;On my Ambari Infra server, if I reboot and issue queries before the collections are completely loaded I get the request is a replay hitting /solr/ranger_audits/ but if I hit a single shard I get this error message:&lt;/P&gt;&lt;PRE&gt;{
  "responseHeader":{
    "status":503,
    "QTime":0,
    "params":{
      "q":"*:*",
      "debug":"query"}},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"no servers hosting shard: shard2",
    "code":503}}&lt;/PRE&gt;&lt;P&gt;The shard2 could be any shard that is still initializing. You should also be able to see this in the Solr Admin UI -&amp;gt; Cloud and see which shards aren't green.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2017 12:48:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212874#M174804</guid>
      <dc:creator>risdenk</dc:creator>
      <dc:date>2017-11-12T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Solr "Request is a replay" (Ambari Infra Solr 2.5)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212875#M174805</link>
      <description>&lt;P&gt;These seems to be bogus replay exception when running solr service. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changes hadoop-env.sh or solr JVM option with &lt;/STRONG&gt;-Dsun.security.krb5.rcache=none should fix the problem.&lt;/P&gt;&lt;PRE&gt;# # Extra Java runtime options.  Empty by default.
export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true -Dsun.security.krb5.rcache=none ${HADOOP_OPTS}"
&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 07:10:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Solr-quot-Request-is-a-replay-quot-Ambari-Infra-Solr-2-5/m-p/212875#M174805</guid>
      <dc:creator>xyao</dc:creator>
      <dc:date>2018-10-05T07:10:59Z</dc:date>
    </item>
  </channel>
</rss>

