<?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: solrctrl init --force wiped zookeeper hbase entries in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8894#M1494</link>
    <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Still for a solr CLI tool to default back to '/' of the entire quorum, without any notice and clearing it with a --force is pretty scarry and not what you expect as an end user of a solr specific tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand. However you are passing the "--force" option, which is really just meant for the case where you absolutely want to force the clearance (e.g. "rm -f /*" being a classic/similar case). W/o this option we would complain and tell you that if you really want to do this you need to use --force (given it might be dangerous, etc...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem lies in what should we do to better handle this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requiring your to say "solrctl --force --really" or somesuch doesn't sound like it would be reasonable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say you specify "/" in your --zk rather than "/solr" (or it's the default as in your case). One option is that we could refuse to make the change if we find znodes in "/" (in this case) that shouldn't belong. However that seems erorr prone and not a great solution (say it's not /hbase and rather something else, etc...). Say you have "/solr1" and "/solr2", the same issue would apply if you accidentally specified the wrong one with --force, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions/ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess solrctl could prompt you interactively when you use --force:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"solrctl is about to reinitialize '/solr' repository, accept?"&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;"solrctl is about to reinitialize "/" repository, accept?" in your case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but then non-interactive use might suffer (but then add a "-y" option or somesuch to compensate). This is the way I'm leaning at the moment.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2014 17:59:10 GMT</pubDate>
    <dc:creator>phunt</dc:creator>
    <dc:date>2014-04-16T17:59:10Z</dc:date>
    <item>
      <title>solrctrl init --force wiped zookeeper hbase entries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8406#M1491</link>
      <description>&lt;P&gt;I had an 'interesting' experience setting up cloudera search as an addition to a not to shabby hbase cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problems started when I created a collection with a trailing '/ ' , which is not allowed apparently. In hindsight I now know that this created a item in the overseer queue, which could not be processed, blocking all further requests. Showing up in the logs as the overseer being in a loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I did not know this I tried a 'solrctl init', which did not work. After reading the warnings that this could mess up any previous &lt;U&gt;solr&lt;/U&gt; state, which we didn't have, i continued using "solrctl init --force". I was a little surprised to see that the entire /hbase entry in zookeeper was wiped clean and all of hbase being in a state of panic, losing it's entire administration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revering back to zookeeper snapshots got my hbase back up and running, but I'm still baffled on:&lt;/P&gt;&lt;P&gt;1. How could this have happened?&lt;/P&gt;&lt;P&gt;2. If this is even a remote possibility of this command, I would recommend adding some extra red flags around the documentation recommending this option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I'm running CDH4.5 with solr 1.1.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:56:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8406#M1491</guid>
      <dc:creator>RobV</dc:creator>
      <dc:date>2022-09-16T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: solrctrl init --force wiped zookeeper hbase entries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8730#M1492</link>
      <description>&lt;P&gt;Hi RobV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using CM to manage the cluster or non-CM? I suspect that the "--zk" option is not being passed correctly, either on the command line or as setup in the default solr config (perhaps you switched hosts?). solrctl should be managing "/solr" in ZK, however it can be passed another root. If the root is not specified it will default to "/". At which point it might try to delete "/hbase" accidentally (cleanup). I'll enter a bug report for us to look at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re the overseer getting stuck, it sounds similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Release-Notes/cd5rn_fixed_in_50.html?scroll=concept_lm5_fgf_mn_unique_1#concept_lm5_fgf_mn_unique_1"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Release-Notes/cd5rn_fixed_in_50.html?scroll=concept_lm5_fgf_mn_unique_1#concept_lm5_fgf_mn_unique_1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll verify that we check the collection doesn't end with a "/" character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 05:21:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8730#M1492</guid>
      <dc:creator>phunt</dc:creator>
      <dc:date>2014-04-14T05:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: solrctrl init --force wiped zookeeper hbase entries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8892#M1493</link>
      <description>&lt;P&gt;Yes we manage the cluster with CM. Reading your reply I'm now sure the new edge node we added did not get a 'deploy client config' so was missing the proper settings. Not knowing this at the time, the solrctl did not work as expected(without the proper client configs) I remember manually adding them to the solrctl command, most likely without the required /solr root, resulting in the wipe of zookeeper /. Thanks for clearing this up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still for a solr CLI tool to default back to '/' of the entire quorum, without any notice and clearing it with a --force is pretty scarry and not what you expect as an end user of a solr specific tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for filing the reports,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:35:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8892#M1493</guid>
      <dc:creator>RobV</dc:creator>
      <dc:date>2014-04-16T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: solrctrl init --force wiped zookeeper hbase entries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8894#M1494</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Still for a solr CLI tool to default back to '/' of the entire quorum, without any notice and clearing it with a --force is pretty scarry and not what you expect as an end user of a solr specific tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand. However you are passing the "--force" option, which is really just meant for the case where you absolutely want to force the clearance (e.g. "rm -f /*" being a classic/similar case). W/o this option we would complain and tell you that if you really want to do this you need to use --force (given it might be dangerous, etc...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem lies in what should we do to better handle this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requiring your to say "solrctl --force --really" or somesuch doesn't sound like it would be reasonable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say you specify "/" in your --zk rather than "/solr" (or it's the default as in your case). One option is that we could refuse to make the change if we find znodes in "/" (in this case) that shouldn't belong. However that seems erorr prone and not a great solution (say it's not /hbase and rather something else, etc...). Say you have "/solr1" and "/solr2", the same issue would apply if you accidentally specified the wrong one with --force, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions/ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess solrctl could prompt you interactively when you use --force:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"solrctl is about to reinitialize '/solr' repository, accept?"&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;"solrctl is about to reinitialize "/" repository, accept?" in your case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but then non-interactive use might suffer (but then add a "-y" option or somesuch to compensate). This is the way I'm leaning at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:59:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8894#M1494</guid>
      <dc:creator>phunt</dc:creator>
      <dc:date>2014-04-16T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: solrctrl init --force wiped zookeeper hbase entries</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8946#M1495</link>
      <description>&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I'm wondering if there ever is a reason for solr to be in the root of a zookeeper install. Shouldn't it always be in some path inside '/'? In that case --zk being '/' would indicate a problem, either in configuration or in the user making a mistake, something you could alert on or even refuse to run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;Adding the prompt on --force would be a great step and I see the use of the -y option.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/solrctrl-init-force-wiped-zookeeper-hbase-entries/m-p/8946#M1495</guid>
      <dc:creator>RobV</dc:creator>
      <dc:date>2014-04-17T19:05:15Z</dc:date>
    </item>
  </channel>
</rss>

