<?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: Infra Solr can not start after installation on Ambari 2.7.1 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Infra-Solr-can-not-start-after-installation-on-Ambari-2-7-1/m-p/288348#M213587</link>
    <description>&lt;P&gt;I resolve the problem. The cause of the error is that when Solr is installed, Solr user and group can not be created automatically. I add Solar user and its group manually from the terminal with this command (1004 is the&amp;nbsp;Oozie's group id):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;useradd -g 1004 infra-solr -m -d /home/infra-solr --shell /bin/bash&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 11:24:23 GMT</pubDate>
    <dc:creator>mervezeybel</dc:creator>
    <dc:date>2020-01-27T11:24:23Z</dc:date>
    <item>
      <title>Infra Solr can not start after installation on Ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Infra-Solr-can-not-start-after-installation-on-Ambari-2-7-1/m-p/288165#M213480</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to install Infra Solr from Ambari. After installation, when i restart the Infra Solr, the status of the service is red and it gives error below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 51, in _ensure_metadata
    _user_entity = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: infra-solr'

The above exception was the cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 171, in &amp;lt;module&amp;gt;
    InfraSolr().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 54, in start
    self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 49, in configure
    setup_infra_solr(name = 'server')
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/setup_infra_solr.py", line 38, in setup_infra_solr
    group=params.user_group
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 125, in __new__
    cls(names_list.pop(0), env, provider, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 199, in action_create
    recursion_follow_links=self.resource.recursion_follow_links, safemode_folders=self.resource.safemode_folders)
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 53, in _ensure_metadata
    raise Fail("User '{0}' doesn't exist".format(user))
resource_management.core.exceptions.Fail: User 'infra-solr' doesn't exist&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;I google it, but i cannot find any solution. Does anybody know the cause of this error?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 14:14:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Infra-Solr-can-not-start-after-installation-on-Ambari-2-7-1/m-p/288165#M213480</guid>
      <dc:creator>mervezeybel</dc:creator>
      <dc:date>2020-01-23T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Infra Solr can not start after installation on Ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Infra-Solr-can-not-start-after-installation-on-Ambari-2-7-1/m-p/288348#M213587</link>
      <description>&lt;P&gt;I resolve the problem. The cause of the error is that when Solr is installed, Solr user and group can not be created automatically. I add Solar user and its group manually from the terminal with this command (1004 is the&amp;nbsp;Oozie's group id):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;useradd -g 1004 infra-solr -m -d /home/infra-solr --shell /bin/bash&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:24:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Infra-Solr-can-not-start-after-installation-on-Ambari-2-7-1/m-p/288348#M213587</guid>
      <dc:creator>mervezeybel</dc:creator>
      <dc:date>2020-01-27T11:24:23Z</dc:date>
    </item>
  </channel>
</rss>

