Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to install LogSearch on Hortonworks Sandbox for HDP 2.5

Highlighted

Unable to install LogSearch on Hortonworks Sandbox for HDP 2.5

I'm attempting to add the LogSearch service to Hortonworks Sandbox for HDP 2.5, but the process is not going smoothly.

This is what I see when I first click the green Next on the add service page:

7769-screen-shot-2016-09-19-at-23837-pm.png

If I click the green OK button, it seems to sit at this screen forever:

7770-screen-shot-2016-09-19-at-23847-pm.png

I tried the process several times. After 3 or 4 tries, it seemed to move beyond this point, but fails to install:

7791-screen-shot-2016-09-19-at-24541-pm.png

Here is the error message:

Caught an exception while executing custom service command: <class 'ambari_agent.AgentException.AgentException'>: 'Script /var/lib/ambari-agent/cache/common-services/LOGSEARCH/0.5.0/package/scripts/logfeeder.py does not exist'; 'Script /var/lib/ambari-agent/cache/common-services/LOGSEARCH/0.5.0/package/scripts/logfeeder.py does not exist'
3 REPLIES 3
Highlighted

Re: Unable to install LogSearch on Hortonworks Sandbox for HDP 2.5

What user is ambari server running as?

What is the ownership of /var/run/ambari-server/stack-recommendations ?

If /var/lib/ambari-agent/cache/common-services/LOGSEARCH/0.5.0/package/scripts/ doesn't exist, you may have to restart Ambari Server and the Agent on that host.

Re: Unable to install LogSearch on Hortonworks Sandbox for HDP 2.5

@Alejandro Fernandez

This is running in the Sandbox, so everything is default (out of the box) after a clean import into VirtualBox.

  1. ambari-server is running as root
  2. /var/run/ambari-server/stack-recommendations is owned by root:
  3. The scripts directory does exist, however there are some obvious issues with the files:
[root@sandbox scripts]# pwd
/var/lib/ambari-agent/cache/common-services/LOGSEARCH/0.5.0/package/scripts
[root@sandbox scripts]# ls -la
ls: cannot access logfeeder.py: No such file or directory
ls: cannot access logfeeder.pyo: No such file or directory
ls: cannot access logsearch.py: No such file or directory
ls: cannot access logsearch.pyo: No such file or directory
ls: cannot access logsearch_common.py: No such file or directory
ls: cannot access logsearch_common.pyo: No such file or directory
ls: cannot access params.py: No such file or directory
ls: cannot access params.pyo: No such file or directory
ls: cannot access service_check.py: No such file or directory
ls: cannot access service_check.pyo: No such file or directory
ls: cannot access setup_logfeeder.py: No such file or directory
ls: cannot access setup_logfeeder.pyo: No such file or directory
ls: cannot access setup_logsearch.py: No such file or directory
ls: cannot access setup_logsearch.pyo: No such file or directory
ls: cannot access status_params.py: No such file or directory
ls: cannot access status_params.pyo: No such file or directory
total 4
drwxr-xr-x 1 root root 4096 Sep 19 18:45 .
drwxr-xr-x 1 root root   36 Sep 15 12:34 ..
?????????? ? ?    ?       ?            ? logfeeder.py
?????????? ? ?    ?       ?            ? logfeeder.pyo
?????????? ? ?    ?       ?            ? logsearch_common.py
?????????? ? ?    ?       ?            ? logsearch_common.pyo
?????????? ? ?    ?       ?            ? logsearch.py
?????????? ? ?    ?       ?            ? logsearch.pyo
?????????? ? ?    ?       ?            ? params.py
?????????? ? ?    ?       ?            ? params.pyo
?????????? ? ?    ?       ?            ? service_check.py
?????????? ? ?    ?       ?            ? service_check.pyo
?????????? ? ?    ?       ?            ? setup_logfeeder.py
?????????? ? ?    ?       ?            ? setup_logfeeder.pyo
?????????? ? ?    ?       ?            ? setup_logsearch.py
?????????? ? ?    ?       ?            ? setup_logsearch.pyo
?????????? ? ?    ?       ?            ? status_params.py
?????????? ? ?    ?       ?            ? status_params.pyo
Highlighted

Re: Unable to install LogSearch on Hortonworks Sandbox for HDP 2.5

Because of resource restrictions on the virtual machine, it appears that LogSearch is not included in the HDP 2.5 Sandbox.

Don't have an account?
Coming from Hortonworks? Activate your account here