matser /slave issue on solr

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

matser /slave issue on solr

dudes dudes

Hello All,

I have taken the following steps to configure master and slave servers.... However, the slave doesn't seem to sync with the master...
Please let me know what I have done wrong ,,,

both are nightly version 2008-7-7 on ubuntu machine java 1.6

On the master machine:

1) the scripts.conf file .

user=
solr_hostname= localhost
solr_port= 8983
rsyncd_port= 18983
data_dir=
webapp_name= solr
master_host=
master_data_dir=
master_status_dir=

2) Indexed some docs

3) Then I issued the following commands..

./rsyncd-enable; rsyncd-start
./snapshooter

On the slave machine:

1) the scripts.conf file

user=
solr_hostname=mastereserver.companyname.com
solr_port=8080
rsyncd_port=18983
data_dir=
webapp_name=solr
master_host=localhost
master_data_dir=/root/masterSolr/apache-solr-nightly/example/solr/data/
master_status_dir=/root/masterSolr/apache-solr-nightly/example/solr/logs/clients/

2) Then the following commands are issued:

./snappuller -P 18983
./snapinstaller
./commit



3) however on the stats.jsp it says numDocs=0 ( on the salve machine).

thanks for your time and suggestions
ak





_________________________________________________________________
Get all your favourite content with the slick new MSN Toolbar - FREE
http://clk.atdmt.com/UKM/go/111354027/direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: matser /slave issue on solr

Bill Au
On your slave,

solr_hostname should be localhost
and
master_host should be the hostname of your master server

Check out the following Wiki for a full description of the variables in
scripts.conf:

http://wiki.apache.org/solr/SolrCollectionDistributionScripts

Bill

On Thu, Sep 4, 2008 at 4:46 AM, dudes dudes <[hidden email]> wrote:

>
> Hello All,
>
> I have taken the following steps to configure master and slave servers....
> However, the slave doesn't seem to sync with the master...
> Please let me know what I have done wrong ,,,
>
> both are nightly version 2008-7-7 on ubuntu machine java 1.6
>
> On the master machine:
>
> 1) the scripts.conf file .
>
> user=
> solr_hostname= localhost
> solr_port= 8983
> rsyncd_port= 18983
> data_dir=
> webapp_name= solr
> master_host=
> master_data_dir=
> master_status_dir=
>
> 2) Indexed some docs
>
> 3) Then I issued the following commands..
>
> ./rsyncd-enable; rsyncd-start
> ./snapshooter
>
> On the slave machine:
>
> 1) the scripts.conf file
>
> user=
> solr_hostname=mastereserver.companyname.com
> solr_port=8080
> rsyncd_port=18983
> data_dir=
> webapp_name=solr
> master_host=localhost
> master_data_dir=/root/masterSolr/apache-solr-nightly/example/solr/data/
>
> master_status_dir=/root/masterSolr/apache-solr-nightly/example/solr/logs/clients/
>
> 2) Then the following commands are issued:
>
> ./snappuller -P 18983
> ./snapinstaller
> ./commit
>
>
>
> 3) however on the stats.jsp it says numDocs=0 ( on the salve machine).
>
> thanks for your time and suggestions
> ak
>
>
>
>
>
> _________________________________________________________________
> Get all your favourite content with the slick new MSN Toolbar - FREE
> http://clk.atdmt.com/UKM/go/111354027/direct/01/
>
Reply | Threaded
Open this post in threaded view
|

RE: matser /slave issue on solr

dudes dudes

Hi Bill,

Thanks very much for your kind reply... I have tried your suggestion, but unfortunately   didn't work...
and  tried other tweaks from the link you sent,,, but no luck :(,,, I also don't find any errors in the log files..

is there any online step by step docs on this topic by any chance ?

thanks
ak

----------------------------------------

> Date: Thu, 4 Sep 2008 09:40:01 -0400
> From: [hidden email]
> To: [hidden email]
> Subject: Re: matser /slave issue on solr
>
> On your slave,
>
> solr_hostname should be localhost
> and
> master_host should be the hostname of your master server
>
> Check out the following Wiki for a full description of the variables in
> scripts.conf:
>
> http://wiki.apache.org/solr/SolrCollectionDistributionScripts
>
> Bill
>
> On Thu, Sep 4, 2008 at 4:46 AM, dudes dudes  wrote:
>
>>
>> Hello All,
>>
>> I have taken the following steps to configure master and slave servers....
>> However, the slave doesn't seem to sync with the master...
>> Please let me know what I have done wrong ,,,
>>
>> both are nightly version 2008-7-7 on ubuntu machine java 1.6
>>
>> On the master machine:
>>
>> 1) the scripts.conf file .
>>
>> user=
>> solr_hostname= localhost
>> solr_port= 8983
>> rsyncd_port= 18983
>> data_dir=
>> webapp_name= solr
>> master_host=
>> master_data_dir=
>> master_status_dir=
>>
>> 2) Indexed some docs
>>
>> 3) Then I issued the following commands..
>>
>> ./rsyncd-enable; rsyncd-start
>> ./snapshooter
>>
>> On the slave machine:
>>
>> 1) the scripts.conf file
>>
>> user=
>> solr_hostname=mastereserver.companyname.com
>> solr_port=8080
>> rsyncd_port=18983
>> data_dir=
>> webapp_name=solr
>> master_host=localhost
>> master_data_dir=/root/masterSolr/apache-solr-nightly/example/solr/data/
>>
>> master_status_dir=/root/masterSolr/apache-solr-nightly/example/solr/logs/clients/
>>
>> 2) Then the following commands are issued:
>>
>> ./snappuller -P 18983
>> ./snapinstaller
>> ./commit
>>
>>
>>
>> 3) however on the stats.jsp it says numDocs=0 ( on the salve machine).
>>
>> thanks for your time and suggestions
>> ak
>>
>>
>>
>>
>>
>> _________________________________________________________________
>> Get all your favourite content with the slick new MSN Toolbar - FREE
>> http://clk.atdmt.com/UKM/go/111354027/direct/01/
>>

_________________________________________________________________
Discover Bird's Eye View now with Multimap from Live Search
http://clk.atdmt.com/UKM/go/111354026/direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: matser /slave issue on solr

Bill Au
Try running snappuller with the -V option to show debug output.

Here's the closest thing to a step by step doc:
http://wiki.apache.org/solr/SolrCollectionDistributionOperationsOutline

Please note the first bullet under "slave Solr server" that the user id
under which the scripts run must be able to ssh/scp from the slave to the
master without being prompted for a password.

Bill

On Fri, Sep 5, 2008 at 9:17 AM, dudes dudes <[hidden email]> wrote:

>
> Hi Bill,
>
> Thanks very much for your kind reply... I have tried your suggestion, but
> unfortunately   didn't work...
> and  tried other tweaks from the link you sent,,, but no luck :(,,, I also
> don't find any errors in the log files..
>
> is there any online step by step docs on this topic by any chance ?
>
> thanks
> ak
>
> ----------------------------------------
> > Date: Thu, 4 Sep 2008 09:40:01 -0400
> > From: [hidden email]
> > To: [hidden email]
> > Subject: Re: matser /slave issue on solr
> >
> > On your slave,
> >
> > solr_hostname should be localhost
> > and
> > master_host should be the hostname of your master server
> >
> > Check out the following Wiki for a full description of the variables in
> > scripts.conf:
> >
> > http://wiki.apache.org/solr/SolrCollectionDistributionScripts
> >
> > Bill
> >
> > On Thu, Sep 4, 2008 at 4:46 AM, dudes dudes  wrote:
> >
> >>
> >> Hello All,
> >>
> >> I have taken the following steps to configure master and slave
> servers....
> >> However, the slave doesn't seem to sync with the master...
> >> Please let me know what I have done wrong ,,,
> >>
> >> both are nightly version 2008-7-7 on ubuntu machine java 1.6
> >>
> >> On the master machine:
> >>
> >> 1) the scripts.conf file .
> >>
> >> user=
> >> solr_hostname= localhost
> >> solr_port= 8983
> >> rsyncd_port= 18983
> >> data_dir=
> >> webapp_name= solr
> >> master_host=
> >> master_data_dir=
> >> master_status_dir=
> >>
> >> 2) Indexed some docs
> >>
> >> 3) Then I issued the following commands..
> >>
> >> ./rsyncd-enable; rsyncd-start
> >> ./snapshooter
> >>
> >> On the slave machine:
> >>
> >> 1) the scripts.conf file
> >>
> >> user=
> >> solr_hostname=mastereserver.companyname.com
> >> solr_port=8080
> >> rsyncd_port=18983
> >> data_dir=
> >> webapp_name=solr
> >> master_host=localhost
> >> master_data_dir=/root/masterSolr/apache-solr-nightly/example/solr/data/
> >>
> >>
> master_status_dir=/root/masterSolr/apache-solr-nightly/example/solr/logs/clients/
> >>
> >> 2) Then the following commands are issued:
> >>
> >> ./snappuller -P 18983
> >> ./snapinstaller
> >> ./commit
> >>
> >>
> >>
> >> 3) however on the stats.jsp it says numDocs=0 ( on the salve machine).
> >>
> >> thanks for your time and suggestions
> >> ak
> >>
> >>
> >>
> >>
> >>
> >> _________________________________________________________________
> >> Get all your favourite content with the slick new MSN Toolbar - FREE
> >> http://clk.atdmt.com/UKM/go/111354027/direct/01/
> >>
>
> _________________________________________________________________
> Discover Bird's Eye View now with Multimap from Live Search
> http://clk.atdmt.com/UKM/go/111354026/direct/01/
Reply | Threaded
Open this post in threaded view
|

RE: matser /slave issue on solr

dudes dudes

Thanks Bill for your suggestions, they helped a lot,,, problems are resolved :)

cheers
ak
----------------------------------------

> Date: Fri, 5 Sep 2008 15:24:06 -0400
> From: [hidden email]
> To: [hidden email]
> Subject: Re: matser /slave issue on solr
>
> Try running snappuller with the -V option to show debug output.
>
> Here's the closest thing to a step by step doc:
> http://wiki.apache.org/solr/SolrCollectionDistributionOperationsOutline
>
> Please note the first bullet under "slave Solr server" that the user id
> under which the scripts run must be able to ssh/scp from the slave to the
> master without being prompted for a password.
>
> Bill
>
> On Fri, Sep 5, 2008 at 9:17 AM, dudes dudes  wrote:
>
>>
>> Hi Bill,
>>
>> Thanks very much for your kind reply... I have tried your suggestion, but
>> unfortunately   didn't work...
>> and  tried other tweaks from the link you sent,,, but no luck :(,,, I also
>> don't find any errors in the log files..
>>
>> is there any online step by step docs on this topic by any chance ?
>>
>> thanks
>> ak
>>
>> ----------------------------------------
>>> Date: Thu, 4 Sep 2008 09:40:01 -0400
>>> From: [hidden email]
>>> To: [hidden email]
>>> Subject: Re: matser /slave issue on solr
>>>
>>> On your slave,
>>>
>>> solr_hostname should be localhost
>>> and
>>> master_host should be the hostname of your master server
>>>
>>> Check out the following Wiki for a full description of the variables in
>>> scripts.conf:
>>>
>>> http://wiki.apache.org/solr/SolrCollectionDistributionScripts
>>>
>>> Bill
>>>
>>> On Thu, Sep 4, 2008 at 4:46 AM, dudes dudes  wrote:
>>>
>>>>
>>>> Hello All,
>>>>
>>>> I have taken the following steps to configure master and slave
>> servers....
>>>> However, the slave doesn't seem to sync with the master...
>>>> Please let me know what I have done wrong ,,,
>>>>
>>>> both are nightly version 2008-7-7 on ubuntu machine java 1.6
>>>>
>>>> On the master machine:
>>>>
>>>> 1) the scripts.conf file .
>>>>
>>>> user=
>>>> solr_hostname= localhost
>>>> solr_port= 8983
>>>> rsyncd_port= 18983
>>>> data_dir=
>>>> webapp_name= solr
>>>> master_host=
>>>> master_data_dir=
>>>> master_status_dir=
>>>>
>>>> 2) Indexed some docs
>>>>
>>>> 3) Then I issued the following commands..
>>>>
>>>> ./rsyncd-enable; rsyncd-start
>>>> ./snapshooter
>>>>
>>>> On the slave machine:
>>>>
>>>> 1) the scripts.conf file
>>>>
>>>> user=
>>>> solr_hostname=mastereserver.companyname.com
>>>> solr_port=8080
>>>> rsyncd_port=18983
>>>> data_dir=
>>>> webapp_name=solr
>>>> master_host=localhost
>>>> master_data_dir=/root/masterSolr/apache-solr-nightly/example/solr/data/
>>>>
>>>>
>> master_status_dir=/root/masterSolr/apache-solr-nightly/example/solr/logs/clients/
>>>>
>>>> 2) Then the following commands are issued:
>>>>
>>>> ./snappuller -P 18983
>>>> ./snapinstaller
>>>> ./commit
>>>>
>>>>
>>>>
>>>> 3) however on the stats.jsp it says numDocs=0 ( on the salve machine).
>>>>
>>>> thanks for your time and suggestions
>>>> ak
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________
>>>> Get all your favourite content with the slick new MSN Toolbar - FREE
>>>> http://clk.atdmt.com/UKM/go/111354027/direct/01/
>>>>
>>
>> _________________________________________________________________
>> Discover Bird's Eye View now with Multimap from Live Search
>> http://clk.atdmt.com/UKM/go/111354026/direct/01/

_________________________________________________________________
Discover Bird's Eye View now with Multimap from Live Search
http://clk.atdmt.com/UKM/go/111354026/direct/01/