<?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 Error in SmartSense in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243461#M205259</link>
    <description>&lt;P&gt;While restarting SmartSense I am getting the below attached error. Please look into it:-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109613-smartsense.txt"&gt;SmartSense.txt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 01:46:50 GMT</pubDate>
    <dc:creator>pritam_konar</dc:creator>
    <dc:date>2019-06-28T01:46:50Z</dc:date>
    <item>
      <title>Error in SmartSense</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243461#M205259</link>
      <description>&lt;P&gt;While restarting SmartSense I am getting the below attached error. Please look into it:-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109613-smartsense.txt"&gt;SmartSense.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 01:46:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243461#M205259</guid>
      <dc:creator>pritam_konar</dc:creator>
      <dc:date>2019-06-28T01:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SmartSense</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243462#M205260</link>
      <description>&lt;P&gt;Can anyone please help on this?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2019 19:41:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243462#M205260</guid>
      <dc:creator>pritam_konar</dc:creator>
      <dc:date>2019-06-30T19:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SmartSense</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243463#M205261</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/114571/pritamkonar.html" nodeid="114571"&gt;@Pritam Konar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we see the following error:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
&amp;nbsp; File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 62, in _ensure_metadata
&amp;nbsp; &amp;nbsp; _group_entity = grp.getgrnam(group)
KeyError: 'getgrnam(): name not found: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\nroot'

The above exception was the cause of the following exception:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Traceback (most recent call last):
&amp;nbsp; File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/scripts/activity_analyzer.py", line 13, in &amp;lt;module&amp;gt;
&amp;nbsp; &amp;nbsp; Activity('analyzer').execute()&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So can you please try this and then see if it works for you?&lt;/P&gt;&lt;P&gt;Edit the &lt;STRONG&gt;AGENT_WORKING_DIR&lt;/STRONG&gt; property value inside the&lt;STRONG&gt; "/var/lib/ambari-agent/bin/ambari-agent"&lt;/STRONG&gt;  to something else and then try again. The default location will be something like following on  all hosts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default setting&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# grep 'AGENT_WORKING_DIR' /var/lib/ambari-agent/bin/ambari-agent
AGENT_WORKING_DIR=/var/lib/ambari-agent&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example try changing it to something like "/tmp/ambari-agent " as following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example After change&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# grep 'AGENT_WORKING_DIR' /var/lib/ambari-agent/bin/ambari-agent
AGENT_WORKING_DIR=/tmp/ambari-agent &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then restart Ambari Agent on all hosts.&lt;/P&gt;&lt;PRE&gt;# ambari-agent restart&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Jun 2019 20:38:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243463#M205261</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-06-30T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SmartSense</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243464#M205262</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As mentioned in the above steps, i restarted ambari-agent in all the hosts, but i am getting this error in the attached smartsense log:-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/109706-smartsense.txt"&gt;SmartSense.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 14:40:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243464#M205262</guid>
      <dc:creator>pritam_konar</dc:creator>
      <dc:date>2019-07-01T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SmartSense</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243465#M205263</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/114571/pritamkonar.html" nodeid="114571"&gt;@Pritam Konar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I do not see the error any more in the SmartSense startup log.  Seems that the previous remedy worked in getting it fixed&lt;/P&gt;&lt;PRE&gt;shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory&lt;/PRE&gt;&lt;P&gt;It will be great if you can mark the current HCC thread as Answered by clicking the  "Accept" button on the helpful answer and that way we can keep one HCC thread dedicate to One particular issue and one particular resolution. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Your current error is completely different&lt;/STRONG&gt;&lt;/EM&gt; and will require separate investigation. I will suggest you to please open a separate HCC thread with  " /var/log/smartsense-activity/activity-analyzer.log" log attached for the review of the following error that you are getting now.&lt;/P&gt;&lt;PRE&gt;Waiting for activity analyzer to start...................
SmartSense Activity Analyzer failed to start, with exitcode -1. Check /var/log/smartsense-activity/activity-analyzer.log for more information.
User root failed to execute command : /usr/sbin/hst activity-analyzer start&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 16:07:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-SmartSense/m-p/243465#M205263</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-07-01T16:07:18Z</dc:date>
    </item>
  </channel>
</rss>

