Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

how to install Solr using Ambari view?

avatar
New Member

Please, can someone helpme to figure out this problem. I got this error message while installing Solr

"500 status codereceived on POST method for API: /api/v1/stacks/HDP/versions/2.5/recommendations"

<strong>Error message: </strong>Error occured during stack advisor command invocation: File does not exist: /var/run/ambari-server/stack-recommendations/1/stackadvisor.out
1 ACCEPTED SOLUTION

avatar
Super Collaborator

Also the HDP 2.5 documentation library has instructions for installing the HDP Search management pack (including Solr):

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_solr-search-installation/content/ch_hdp-s...

View solution in original post

6 REPLIES 6

avatar
Not applicable

@Abdelmajid Boutjim

The following link talks about installing SOLR service using Ambari:

https://github.com/abajwa-hw/solr-stack

Also can you please post the snippet from 'ambari-server.log" here when this error occurs.

What do you see inside :

[root@test ambari-server]# ls -lrt /var/run/ambari-server/stack-recommendations/
[root@test ambari-server]# ls -lrt /var/run/ambari-server/
[root@test ambari-server]# ls -lart /var/run/ambari-server/stack-recommendations/1/

avatar
New Member

For the command: ls -lrt /var/run/ambari-server/stack-recommendations/

this is what i got:

drwxrwxrwx 1 root root 115 Sep 29 15:42 1

drwxr-xr-x 1 root root  115 Sep 29 15:43 6
drwxr-xr-x 2 root root  115 Oct  5 08:58 2
drwxr-xr-x 2 root root 4096 Oct  5 09:01 3
drwxr-xr-x 2 root root 4096 Oct  5 09:02 4
drwxr-xr-x 2 root root  115 Oct  5 09:02 5
drwxr-xr-x 2 root root  115 Oct  5 12:13 7
drwxr-xr-x 2 root root  126 Oct  5 13:01 8
drwxr-xr-x 2 root root  115 Oct  5 13:01 9
drwxr-xr-x 2 root root  115 Oct  5 13:06 10
drwxr-xr-x 2 root root  115 Oct  5 13:07 11
drwxr-xr-x 2 root root  115 Oct  5 13:13 12
drwxr-xr-x 2 root root  115 Oct  5 13:38 13
drwxr-xr-x 2 root root  115 Oct  5 14:27 14
drwxr-xr-x 2 root root  115 Oct  5 14:43 15
drwxr-xr-x 2 root root  126 Oct  5 14:47 16
drwxr-xr-x 2 root root  115 Oct  5 14:47 17
drwxr-xr-x 2 root root  115 Oct  5 14:59 18
drwxr-xr-x 2 root root  115 Oct  5 15:59 19
drwxr-xr-x 2 root root  117 Oct  6 10:35 20
drwxr-xr-x 2 root root  128 Oct  6 10:35 21
drwxr-xr-x 2 root root  128 Oct  6 10:35 22
drwxr-xr-x 2 root root  128 Oct  6 10:35 23
drwxr-xr-x 2 root root  115 Oct  6 10:35 24
drwxr-xr-x 2 root root  126 Oct  6 10:36 25
drwxr-xr-x 2 root root  115 Oct  6 11:03 26
drwxr-xr-x 2 root root  115 Oct  6 11:03 27
drwxr-xr-x 2 root root  115 Oct  6 11:03 28
drwxr-xr-x 2 root root  115 Oct  6 11:04 29
drwxr-xr-x 2 root root  115 Oct  6 11:05 30
drwxr-xr-x 2 root root  115 Oct  6 11:05 31
drwxr-xr-x 2 root root  115 Oct  6 11:06 32
drwxr-xr-x 2 root root  115 Oct  6 11:07 33
drwxr-xr-x 2 root root  115 Oct  6 11:09 34

avatar
New Member

for the command: ls -lrt /var/run/ambari-server/

this is what i got:

drwxr-xr-x 1 root root 6 Sep 13 10:34

bootstrap drwxrwxrwx 1 root root 4096 Oct 6 11:09

stack-recommendations -rw-r--r-- 1 root root 5 Oct 7 15:23 ambari-server.pid

avatar
New Member

For the last the command this is the output:

ls: cannot access /var/run/ambari-server/stack-recommendations/1/configurations.json: No such file or directory

ls: cannot access /var/run/ambari-server/stack-recommendations/1/hosts.json: No such file or directory
ls: cannot access /var/run/ambari-server/stack-recommendations/1/services.json: No such file or directory
ls: cannot access /var/run/ambari-server/stack-recommendations/1/stackadvisor.err: No such file or directory
ls: cannot access /var/run/ambari-server/stack-recommendations/1/stackadvisor.out: No such file or directory                                                                                                       
total 4                                                                                                                                                                                                            
?????????? ? ?    ?       ?            ? stackadvisor.out
?????????? ? ?    ?       ?            ? stackadvisor.err
?????????? ? ?    ?       ?            ? services.json
?????????? ? ?    ?       ?            ? hosts.json
?????????? ? ?    ?       ?            ? configurations.json
drwxrwxrwx 1 root root  115 Sep 29 15:42 .
drwxrwxrwx 1 root root 4096 Oct  6 11:09 ..

avatar
Super Collaborator

Also the HDP 2.5 documentation library has instructions for installing the HDP Search management pack (including Solr):

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_solr-search-installation/content/ch_hdp-s...

avatar
New Member

I want to thank everybody for supporting me