<?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 Password - When trying to create a collection in SSH in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124094#M47247</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14402/raf.html" nodeid="14402"&gt;@Raf Mohammed&lt;/A&gt; , you can change ownership file if you're root. You cannot use sudo fo solr user because it does not have an sudo access. If you run &lt;STRONG&gt;sudo &lt;/STRONG&gt;&lt;STRONG&gt;chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/STRONG&gt;, it will not work.&lt;/P&gt;&lt;P&gt;You can however change the owning group to a group you're a member of. Your directory has solr:hadoop (as user and group) and you are changing it to solr:solr. But if you check whether solr group has solr user, you will not be able to find it because it is not there. So now you have to add solr user to the solr group. Run this command as root:&lt;/P&gt;&lt;PRE&gt;usermod -a -G solr solr&lt;/PRE&gt;&lt;P&gt;Now if you try your command, it should work.&lt;/P&gt;&lt;P&gt;PS: Doing this : sudo -u hdfs hadoop fs chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/P&gt;&lt;P&gt;does not make any sense because it is a local directory, not HDFS directory.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 01:59:35 GMT</pubDate>
    <dc:creator>mrizvi</dc:creator>
    <dc:date>2016-11-28T01:59:35Z</dc:date>
    <item>
      <title>Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124093#M47246</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to create a tweet collection and need to chance the owner for opt/lucidworks-hdpsearch/solr. &lt;/P&gt;&lt;P&gt;However, when I attempt to do this i get 'Operation not permitted'. So then I attempted to run the command as sudo, however now I am being asked for the solr password. As far as I know i've not set one and i can't seem to locate a default username/password for solr. please can someone help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;[solr@sandbox dashboards]$ chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/P&gt;&lt;P&gt;chown: changing ownership of `/opt/lucidworks-hdpsearch/solr/server/solr-webapp/webapp/banana/app/dashboards/default.json': Operation not permitted&lt;/P&gt;&lt;P&gt;[solr@sandbox dashboards]$ sudo -u hdfs hadoop fs chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/P&gt;&lt;P&gt;We trust you have received the usual lecture from the local System&lt;/P&gt;&lt;P&gt;Administrator. It usually boils down to these three things:&lt;/P&gt;&lt;P&gt;    #1) Respect the privacy of others.&lt;/P&gt;&lt;P&gt;    #2) Think before you type.&lt;/P&gt;&lt;P&gt;    #3) With great power comes great responsibility.&lt;/P&gt;&lt;P&gt;[sudo] password for solr: &lt;/P&gt;&lt;P&gt;Sorry, try again.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 01:19:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124093#M47246</guid>
      <dc:creator>raf1</dc:creator>
      <dc:date>2016-11-28T01:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124094#M47247</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14402/raf.html" nodeid="14402"&gt;@Raf Mohammed&lt;/A&gt; , you can change ownership file if you're root. You cannot use sudo fo solr user because it does not have an sudo access. If you run &lt;STRONG&gt;sudo &lt;/STRONG&gt;&lt;STRONG&gt;chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/STRONG&gt;, it will not work.&lt;/P&gt;&lt;P&gt;You can however change the owning group to a group you're a member of. Your directory has solr:hadoop (as user and group) and you are changing it to solr:solr. But if you check whether solr group has solr user, you will not be able to find it because it is not there. So now you have to add solr user to the solr group. Run this command as root:&lt;/P&gt;&lt;PRE&gt;usermod -a -G solr solr&lt;/PRE&gt;&lt;P&gt;Now if you try your command, it should work.&lt;/P&gt;&lt;P&gt;PS: Doing this : sudo -u hdfs hadoop fs chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/P&gt;&lt;P&gt;does not make any sense because it is a local directory, not HDFS directory.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 01:59:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124094#M47247</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-28T01:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124095#M47248</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt; Thanks for this, but I'm still doing something wrong but can't see what: &lt;/P&gt;&lt;P&gt;[root@sandbox ~]# usermod -a -G solr solr&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# chown -R solr:solr /opt/lucidworks-hdpsearch/solr&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# su solr&lt;/P&gt;&lt;P&gt;[solr@sandbox root]$ cp -R /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs  /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs&lt;/P&gt;&lt;P&gt;[solr@sandbox root]$ /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs/conf/solrconfig.xml&lt;/P&gt;&lt;P&gt;bash: /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs/conf/solrconfig.xml: Permission denied&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 02:47:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124095#M47248</guid>
      <dc:creator>raf1</dc:creator>
      <dc:date>2016-11-28T02:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124096#M47249</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14402/raf.html" nodeid="14402"&gt;@Raf Mohammed&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You ran chown command from root user, if you would have been ran it from solr user, that would have worked too. Running from root basically wasted your usermod thing.&lt;/P&gt;&lt;P&gt;Coming to the current issue, can you please check the permission of that file you want to access.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 02:54:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124096#M47249</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-28T02:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124097#M47250</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10331/mrizvi.html" nodeid="10331"&gt;@Mushtaq Rizvi&lt;/A&gt; Here are the permissions for the file solrconfig.xml &lt;/P&gt;&lt;P&gt;[solr@sandbox root]$ ls -l /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs/conf&lt;/P&gt;&lt;P&gt;total 144&lt;/P&gt;&lt;P&gt;-rw-r--r-- 1 solr solr 60612 Nov 26 03:43 solrconfig.xml&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 03:10:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124097#M47250</guid>
      <dc:creator>raf1</dc:creator>
      <dc:date>2016-11-28T03:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124098#M47251</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14402/raf.html" nodeid="14402"&gt;@Raf Mohammed&lt;/A&gt;, with that permission,you should be able to edit the file. Can you please open that file? &lt;/P&gt;&lt;PRE&gt;vi /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs/conf/solrconfig.xml&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Nov 2016 03:14:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124098#M47251</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-11-28T03:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Solr Password - When trying to create a collection in SSH</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124099#M47252</link>
      <description>&lt;P&gt;wow thanks! how come I've just managed to open and edit and save this file but wasn't able to do so earlier? (Sorry if i sound really stupid, i've been working on a project all day)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 05:01:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-Password-When-trying-to-create-a-collection-in-SSH/m-p/124099#M47252</guid>
      <dc:creator>raf1</dc:creator>
      <dc:date>2016-11-28T05:01:11Z</dc:date>
    </item>
  </channel>
</rss>

