You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "scott.chu" <sc...@udngroup.com> on 2016/05/17 06:29:05 UTC

Updating error while add doc to Solrcloud

I build Solrcloud with 2 nodes, 1 shard, 2 replica. I add doc in xml format using post.jar up to 2.85M+ no. of docs and 10gb index size. When I add more docs. the solr.log shows:

--------------------------------------
    2016-05-17 14:01:09,024 WARN  (main) [   ] o.e.j.s.h.RequestLogHandler !RequestLog
    2016-05-17 14:01:09,275 WARN  (main) [   ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@57fffcd7{/solr,file:/D:/portable_sw/solr-5.4.1/server/solr-webapp/webapp/,STARTING}{D:\portable_sw\solr-5.4.1\server/solr-webapp/webapp} has uncovered http methods for path: /
    2016-05-17 14:01:09,346 WARN  (main) [   ] o.a.s.c.CoreContainer Couldn't add files from D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib to classpath: D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib
    2016-05-17 14:01:11,419 WARN  (coreLoadExecutor-7-thread-1-processing-n:10.18.59.179:8983_solr) [c:cugna s:shard1 r:core_node2 x:cugna_shard1_replica2] o.a.s.u.UpdateLog Exception reverse reading log 
java.io.EOFException
...
--------------------------------------

Later I stop all and kill write.lock (I ususally do this in Solr 3 when add doc fails) and add doc again but Solrcloud show can't find write.lock. So I recover write.lock and call post.jar again. The output shows:

--------------------------------------
    "SimplePostTool version 5.0.0
    Posting files to [base] url http://localhost:8983/solr/cugna/update using content-type application/xml...
    POSTing file NMLBOym_a_UN2000_10_20160511_1014.xml to [base]
    SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for url: http://localhost:8983/solr/cugna/update
    SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <lst name="responseHeader"><int name="status">400</int><int name="QTime">3</int></lst><lst name="error"><str name="msg">
    Exception writing document id un_555917 to the index; possible analysis error.</str><int name="code">400</int></lst>
      </response>
    SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 40
    0 for URL: http://localhost:8983/solr/cugna/update
    1 files indexed.
    COMMITting Solr index changes to http://localhost:8983/solr/cugna/update...
    Time spent: 0:00:00.259"
-------------------------------------

I thought it's that doc un_555917 problem, then I comment out it in xml and do again, it keeps showing same error to every single doc. I assume there's something wrong with Solrcloud. Does anyone experience this before? What could be the problem? Can I recover it? Or I have to add all docs again? 


scott.chu,scott.chu@udngroup.com
2016/5/17 (週二)
----- Original Message ----- 
From: scott(自己) 
To: solr-user 
CC: 
Date: 2016/5/17 (週二) 09:39
Subject: Re(2): [scottchu] Cab I migrate solrcloud by just copying wholepackagefolder?



OK! Thanks for reminding. I'll stick to the convention. 

scott.chu,scott.chu@udngroup.com 
2016/5/17 (週二) 
----- Original Message ----- 
From: Chris Hostetter 
To: solr-user ; scott(自己) 
CC: 
Date: 2016/5/17 (週二) 02:43 
Subject: Re: [scottchu] Cab I migrate solrcloud by just copying whole packagefolder? 



: Message-Id: <7F...@udngroup.com> 
: Subject: [scottchu] Cab I migrate solrcloud by just copying whole package 
: folder? 
: References: 
: <DC...@udngroup.com><C162E1B1F0311FC46A64E2E2AA 
: 729138@udngroup.com>, 
: <85...@elyograg.org> 
: In-Reply-To: <85...@elyograg.org> 

https://people.apache.org/~hossman/#threadhijack 
Thread Hijacking on Mailing Lists 

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email. Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention. It makes following discussions in the mailing list archives 
particularly difficult. 




-Hoss 
http://www.lucidworks.com/ 


----- 
??????????? 
??? AVG ?? - www.avg.com 
??: 2015.0.6201 / ???: 4568/12238 - ????: 05/15/16 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16

Re: Updating error while add doc to Solrcloud

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/17/2016 12:29 AM, scott.chu wrote:
> I build Solrcloud with 2 nodes, 1 shard, 2 replica. I add doc in xml format using post.jar up to 2.85M+ no. of docs and 10gb index size. When I add more docs. the solr.log shows:
>
> --------------------------------------
>     2016-05-17 14:01:09,024 WARN  (main) [   ] o.e.j.s.h.RequestLogHandler !RequestLog
>     2016-05-17 14:01:09,275 WARN  (main) [   ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@57fffcd7{/solr,file:/D:/portable_sw/solr-5.4.1/server/solr-webapp/webapp/,STARTING}{D:\portable_sw\solr-5.4.1\server/solr-webapp/webapp} has uncovered http methods for path: /
>     2016-05-17 14:01:09,346 WARN  (main) [   ] o.a.s.c.CoreContainer Couldn't add files from D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib to classpath: D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib
>     2016-05-17 14:01:11,419 WARN  (coreLoadExecutor-7-thread-1-processing-n:10.18.59.179:8983_solr) [c:cugna s:shard1 r:core_node2 x:cugna_shard1_replica2] o.a.s.u.UpdateLog Exception reverse reading log 
> java.io.EOFException
> ...
> --------------------------------------

I have no idea what those warnings are saying.  The first two are from
Jetty.

I assume that your xml is in the Solr XML update format.  How big is the
xml file you are sending?  Solr has a default 2MB limit on the POST body
size.  This can be increased with the formdataUploadLimitInKB parameter
... but do not increase it too much.  One of the reason that the limits
are there to keep memory usage down.  Instead of trying to index one
really massive file, break it into pieces small enough to fit in the
POST size limit.

> Later I stop all and kill write.lock (I ususally do this in Solr 3 when add doc fails) and add doc again but Solrcloud show can't find write.lock. So I recover write.lock and call post.jar again. The output shows:

If you need to delete write.lock after you stop Solr, that means you are
forcibly terminating Solr, not asking it to stop and waiting for
graceful shutdown.  When doing a normal shutdown, Solr will erase all
the write.lock files itself.  The bin/solr script only waits five
seconds for Solr to stop before proceeding with forcible termination,
which often isn't enough, and should be adjusted.



Replying to things stated later in the thread:

If you only supply Solr with one zookeeper host, then Solr will stop
working if that zookeeper host goes down, because it will not have any
information about the other servers.  Zookeeper servers do not currently
inform zookeeper clients about other servers in the ensemble.  When
Zookeeper 3.5 comes out and Solr updates to use that version, this
*might* work, but I am not sure.  The best option is to simply inform
Solr about all your zookeeper servers when you start it, particularly
because you may not be sure which of those servers are actually *up*
when you start.

Zookeeper 3.5 will support dynamic cluster membership -- adding and
removing servers without restarting servers or clients.  You should
still give Solr at least three servers when you start it, though -- so
it can reliably *find* the cluster.



This might be info you know already:  Running everything on one server
is NOT suitable for production.  Once you do get to production with a
minimum of three zookeeper machines and two Solr machines (which may
also be zookeeper machines), if you do end up needing to run multiple
Solr instances per machine, this is the recommended way to do it (on
Linux and other *NIX operating systems):

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-RunningmultipleSolrnodesperhost

Thanks,
Shawn


Re: Updating error while add doc to Solrcloud

Posted by Erick Erickson <er...@gmail.com>.
I _think_ you are using "schemaless" mode and the
issue is that Solr guesses the type of the field based
on the first doc it encounters. Thereafter, if any
incoming doc has a different field (say the "guess"
is an int type and later something that's not an
int is in that field) then it is rejected. This is somewhat
borne out by the fact that when you blow away the collection,
the problem doc indexes.

By default, modern Solr uses "managed schema", which is
different than, but related to "schemaless". What I'd do:

Go to managed schema or even "classic" schema, here's
a place to get you started:
https://cwiki.apache.org/confluence/display/solr/Schema+Factory+Definition+in+SolrConfig

Best,
Erick

On Mon, May 16, 2016 at 11:36 PM, scott.chu <sc...@udngroup.com> wrote:
>
> I clear the cugna collection data (by renaming 'data' folder to 'xdata')and restart Solrcloud. I add previous possible-error xml doc, it succeeds. So I'm sure doc data has no problem. Is it because the index file size is too large? If the zk nodes fails during adding doc, could it cause this updating error since I do see some "can't find leader error' in solr log?
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/17 (週二)
> ----- Original Message -----
> From: scott(自己)
> To: solr-user
> CC:
> Date: 2016/5/17 (週二) 14:29
> Subject: Updating error while add doc to Solrcloud
>
>
>
> I build Solrcloud with 2 nodes, 1 shard, 2 replica. I add doc in xml format using post.jar up to 2.85M+ no. of docs and 10gb index size. When I add more docs. the solr.log shows:
>
> --------------------------------------
>     2016-05-17 14:01:09,024 WARN (main) [ ] o.e.j.s.h.RequestLogHandler !RequestLog
>     2016-05-17 14:01:09,275 WARN (main) [ ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@57fffcd7{/solr,file:/D:/portable_sw/solr-5.4.1/server/solr-webapp/webapp/,STARTING}{D:\portable_sw\solr-5.4.1\server/solr-webapp/webapp} has uncovered http methods for path: /
>     2016-05-17 14:01:09,346 WARN (main) [ ] o.a.s.c.CoreContainer Couldn't add files from D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib to classpath: D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib
>     2016-05-17 14:01:11,419 WARN (coreLoadExecutor-7-thread-1-processing-n:10.18.59.179:8983_solr) [c:cugna s:shard1 r:core_node2 x:cugna_shard1_replica2] o.a.s.u.UpdateLog Exception reverse reading log
> java.io.EOFException
> ...
> --------------------------------------
>
> Later I stop all and kill write.lock (I ususally do this in Solr 3 when add doc fails) and add doc again but Solrcloud show can't find write.lock. So I recover write.lock and call post.jar again. The output shows:
>
> --------------------------------------
>     "SimplePostTool version 5.0.0
>     Posting files to [base] url http://localhost:8983/solr/cugna/update using content-type application/xml...
>     POSTing file NMLBOym_a_UN2000_10_20160511_1014.xml to [base]
>     SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for url: http://localhost:8983/solr/cugna/update
>     SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?>
>     <response>
>     <lst name="responseHeader"><int name="status">400</int><int name="QTime">3</int></lst><lst name="error"><str name="msg">
>     Exception writing document id un_555917 to the index; possible analysis error.</str><int name="code">400</int></lst>
>       </response>
>     SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 40
>     0 for URL: http://localhost:8983/solr/cugna/update
>     1 files indexed.
>     COMMITting Solr index changes to http://localhost:8983/solr/cugna/update...
>     Time spent: 0:00:00.259"
> -------------------------------------
>
> I thought it's that doc un_555917 problem, then I comment out it in xml and do again, it keeps showing same error to every single doc. I assume there's something wrong with Solrcloud. Does anyone experience this before? What could be the problem? Can I recover it? Or I have to add all docs again?
>
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/17 (週二)
> ----- Original Message -----
> From: scott(自己)
> To: solr-user
> CC:
> Date: 2016/5/17 (週二) 09:39
> Subject: Re(2): [scottchu] Cab I migrate solrcloud by just copying wholepackagefolder?
>
>
>
> OK! Thanks for reminding. I'll stick to the convention.
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/17 (週二)
> ----- Original Message -----
> From: Chris Hostetter
> To: solr-user ; scott(自己)
> CC:
> Date: 2016/5/17 (週二) 02:43
> Subject: Re: [scottchu] Cab I migrate solrcloud by just copying whole packagefolder?
>
>
>
> : Message-Id: <7F...@udngroup.com>
> : Subject: [scottchu] Cab I migrate solrcloud by just copying whole package
> : folder?
> : References:
> : <DC...@udngroup.com><C162E1B1F0311FC46A64E2E2AA
> : 729138@udngroup.com>,
> : <85...@elyograg.org>
> : In-Reply-To: <85...@elyograg.org>
>
> https://people.apache.org/~hossman/#threadhijack
> Thread Hijacking on Mailing Lists
>
> When starting a new discussion on a mailing list, please do not reply to
> an existing message, instead start a fresh email. Even if you change the
> subject line of your email, other mail headers still track which thread
> you replied to and your question is "hidden" in that thread and gets less
> attention. It makes following discussions in the mailing list archives
> particularly difficult.
>
>
>
>
> -Hoss
> http://www.lucidworks.com/
>
>
> -----
> ???????????
> ??? AVG ?? - www.avg.com
> ??: 2015.0.6201 / ???: 4568/12238 - ????: 05/15/16
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16

Re: [scottchu] How to specify multiple zk nodes using solr start command under Windows

Posted by John Bickerstaff <jo...@johnbickerstaff.com>.
it's roundabout, but this might work -- ask for the healthcheck status
(from the solr box) and hit each zkNode separately.

I'm on Linux so you'll have to translate to Windows...  using the solr.cmd
file I assume...

./solr healthcheck -z 192.168.56.5:2181/solr5_4 -c collectionName
./solr healthcheck -z 192.168.56.6:2181/solr5_4 -c collectionName
./solr healthcheck -z 192.168.56.7:2181/solr5_4 -c collectionName

My original command included all the IP addresses without port numbers.
This does return healthcheck info (the same info) when I do it for each
zkNode separately...

I assume that if they've all got info for all your replicas and/or shards,
they're working as an ensemble.

You could also go looking at each zkNode (using the zkCli tool) and verify
that your collection appears where you expect it.



On Tue, May 17, 2016 at 10:17 AM, Abdel Belkasri <be...@gmail.com> wrote:

> The repetition is just a cut and paste from Scott's post.
>
> How can I check if I am getting the ensemble or just a single zk?
>
> Also if this is not the way to specify an ensemble, what is the right way?
>
> Because the comma delimited list does not work, I concur with Scott.
>
> On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com>
> wrote:
>
> > Are you absolutely sure you're getting an _ensemble_ and
> > not just connecting to a single node? My suspicion (without
> > proof) is that you're just getting one -z option. It'll work as
> > long as that ZK instance stays up, but it won't be fault-tolerant.
> >
> > And again you repeated the port (2181) twice.
> >
> > Best,
> > Erick
> >
> > On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com>
> > wrote:
> > > Hi Scott,
> > > what worked for me in Windows is this (no ",")
> > > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181
> -z
> > > localhost:2183
> > >
> > > -- Hope this helps
> > > Abdel.
> > >
> > > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com>
> > wrote:
> > >
> > >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
> > >> Go into Solr 5.4.1 root folder and issue and issue the command in
> > article
> > >> 'Setting Up an External ZooKeeper Ensemble' in reference guide
> > >>
> > >> bin\Solr start -c -s mynodes\node1 -z
> > >> localhost:2181,localhost:2181,localhost:2183
> > >>
> > >> but it doesn't run but just show help page of start command in
> solr.cmd.
> > >> How should I issue the correct command?
> > >>
> > >
> > >
> > >
> > > --
> > > Abdel K. Belkasri, PhD
> >
>
>
>
> --
> Abdel K. Belkasri, PhD
>

Re(2): Import html data in mysql and map schemas using onlySolrCELL+TIKA+DIH [scottchu]

Posted by "scott.chu" <sc...@udngroup.com>.
I read that but can't quite understand the steps! That's why I ask help here.

scott.chu,scott.chu@udngroup.com
2016/5/24 (週二)
----- Original Message ----- 
From: Markus Jelsma 
To: solr-user ; solr-user 
CC: 
Date: 2016/5/24 (週二) 17:52
Subject: RE: Import html data in mysql and map schemas using onlySolrCELL+TIKA+DIH [scottchu]


Hello - did you find this manual page? It explains how HTML can be uploaded. 

https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Solr+Cell+using+Apache+Tika 

Markus 



-----Original message----- 
> From:scott.chu <sc...@udngroup.com> 
> Sent: Tuesday 24th May 2016 7:48 
> To: solr-user <so...@lucene.apache.org> 
> Subject: Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu] 
> 
> Can anyone show me an example or short help of how I can do it? I am to use Solr 5 or up to carry out it. 
> 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/24 (週二) 
> ----- Original Message ----- 
> From: scott(自己) 
> To: solr-user 
> CC: 
> Date: 2016/5/20 (週五) 14:17 
> Subject: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu] 
> 
> 
> 
> I have a mysql table with over 300M blog articles. The records are in html format. Is it possible to import these records using only Solr CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map schema on mysql to schema in Solr? 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/20 (週五) 
> 
> 
> ----- 
> 未在此訊息中找到病毒。 
> 已透過 AVG 檢查 - www.avg.com 
> 版本: 2015.0.6201 / 病毒庫: 4568/12262 - 發佈日期: 05/19/16 
> 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12285 - 發佈日期: 05/23/16 

RE: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]

Posted by Markus Jelsma <ma...@openindex.io>.
Hello - did you find this manual page? It explains how HTML can be uploaded.

https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Solr+Cell+using+Apache+Tika

Markus

 
 
-----Original message-----
> From:scott.chu <sc...@udngroup.com>
> Sent: Tuesday 24th May 2016 7:48
> To: solr-user <so...@lucene.apache.org>
> Subject: Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]
> 
> Can anyone show me an example or short help of how I can do it? I am to use Solr 5 or up to carry out it.
> 
> 
> scott.chu,scott.chu@udngroup.com
> 2016/5/24 (週二)
> ----- Original Message ----- 
> From: scott(自己) 
> To: solr-user 
> CC: 
> Date: 2016/5/20 (週五) 14:17
> Subject: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]
> 
> 
> 
> I have a mysql table with over 300M blog articles. The records are in html format. Is it possible to import these records using only Solr CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map schema on mysql to schema in Solr? 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/20 (週五) 
> 
> 
> ----- 
> 未在此訊息中找到病毒。 
> 已透過 AVG 檢查 - www.avg.com 
> 版本: 2015.0.6201 / 病毒庫: 4568/12262 - 發佈日期: 05/19/16
> 

Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]

Posted by "scott.chu" <sc...@udngroup.com>.
Can anyone show me an example or short help of how I can do it? I am to use Solr 5 or up to carry out it.


scott.chu,scott.chu@udngroup.com
2016/5/24 (週二)
----- Original Message ----- 
From: scott(自己) 
To: solr-user 
CC: 
Date: 2016/5/20 (週五) 14:17
Subject: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]



I have a mysql table with over 300M blog articles. The records are in html format. Is it possible to import these records using only Solr CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map schema on mysql to schema in Solr? 

scott.chu,scott.chu@udngroup.com 
2016/5/20 (週五) 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12262 - 發佈日期: 05/19/16

Re: Import html data in mysql and map schemas using onlySolrCELL+TIKA+DIH [scottchu]

Posted by Tom Evans <te...@googlemail.com>.
On Tue, May 24, 2016 at 3:06 PM, Scott Chu <sc...@udngroup.com> wrote:
> p.s. There're really many many extensive, worthy stuffs in Solr. If the
> project team can provide some "dictionary" of them, It would be a "Santa Claus"
> for we solr users. Ha! Just a X'mas wish! Sigh! I know it's quite not possbile.
> I really like to study them one after another, to learn about all of them.
> However, Internet IT goes too fast to have time to congest all of the great
>  stuffs in Solr.

The reference guide is both extensive and also broadly informative.
Start from the top page and browse away!

https://cwiki.apache.org/confluence/display/solr/Apache+Solr+Reference+Guide

Handy to keep the glossary handy for any terms that you don't recognise:

https://cwiki.apache.org/confluence/display/solr/Solr+Glossary

Cheers

Tom

Re: Import html data in mysql and map schemas using onlySolrCELL+TIKA+DIH [scottchu]

Posted by Scott Chu <sc...@udngroup.com>.
Justa let everybody know. I use DIH+template (without TIKA and Solr Cell, I really don't understand that part in reference guide) to achieve what I want. But still need to test more various form of HTML source.

Scott Chu,scott.chu@udngroup.com
2016/5/24 (週二)

p.s. There're really many many extensive, worthy stuffs in Solr. If the project team can provide some "dictionary" of them, It would be a "Santa Claus" for we solr users. Ha! Just a X'mas wish! Sigh! I know it's quite not possbile. I really like to study them one after another, to learn about all of them. However, Internet IT goes too fast to have time to congest all of the great stuffs in Solr.
----- Original Message ----- 
From: scott.chu 
To: solr-user 
CC: 
Date: 2016/5/21 (週六) 03:39
Subject: Re: Import html data in mysql and map schemas using onlySolrCELL+TIKA+DIH [scottchu]



For this project, I intend to use Solr 5.5 or Solr 6. I know how to modify config to go back to use ClassicIndex, ie. manual schema.xml. 

Scott Chu,scott.chu@udngroup.com 
2016/5/21 (週六) 
----- Original Message ----- 
From: Siddhartha Singh Sandhu 
To: solr-user ; scott.chu 
CC: 
Date: 2016/5/21 (週六) 03:33 
Subject: Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu] 


You will have to configure your schema.xml in Solr. 

What version are you using? 

On Fri, May 20, 2016 at 2:17 AM, scott.chu <sc...@udngroup.com> wrote: 


> 
> I have a mysql table with over 300M blog articles. The records are in html 
> format. Is it possible to import these records using only Solr 
> CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map 

> schema on mysql to schema in Solr? 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/20 (週五) 
> 



----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12265 - 發佈日期: 05/20/16 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12265 - 發佈日期: 05/20/16

Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]

Posted by Scott Chu <sc...@udngroup.com>.
For this project, I intend to use Solr 5.5 or Solr 6. I know how to modify config to go back to use ClassicIndex, ie. manual schema.xml.

Scott Chu,scott.chu@udngroup.com
2016/5/21 (週六)
----- Original Message ----- 
From: Siddhartha Singh Sandhu 
To: solr-user ; scott.chu 
CC: 
Date: 2016/5/21 (週六) 03:33
Subject: Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]


You will have to configure your schema.xml in Solr. 

What version are you using? 

On Fri, May 20, 2016 at 2:17 AM, scott.chu <sc...@udngroup.com> wrote: 


> 
> I have a mysql table with over 300M blog articles. The records are in html 
> format. Is it possible to import these records using only Solr 
> CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map 

> schema on mysql to schema in Solr? 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/20 (週五) 
> 



----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12265 - 發佈日期: 05/20/16

Re: Import html data in mysql and map schemas using only Solr CELL+TIKA+DIH [scottchu]

Posted by Siddhartha Singh Sandhu <sa...@gmail.com>.
You will have to configure your schema.xml in Solr.

What version are you using?

On Fri, May 20, 2016 at 2:17 AM, scott.chu <sc...@udngroup.com> wrote:

>
> I have a mysql table with over 300M blog articles. The records are in html
> format. Is it possible to import these records using only Solr
> CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map
> schema on mysql to schema in Solr?
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/20 (週五)
>

Import html data in mysql and map schemas using only Solr CELL+TIKA+DIH [scottchu]

Posted by "scott.chu" <sc...@udngroup.com>.
I have a mysql table with over 300M blog articles. The records are in html format. Is it possible to import these records using only Solr CELL+TIKA+DIH to some Solr with schema? I mean when importing, I can map schema on mysql to schema in Solr?

scott.chu,scott.chu@udngroup.com
2016/5/20 (週五)

Re: [scottchu] How to specify multiple zk nodes using solrstartcommand under Windows

Posted by "scott.chu" <sc...@udngroup.com>.
I find a way to stop zk nodes peacefully under Windows.

If you start zk nodes in order of 1,2,3
then you should stop them in reverse order, i.e. 3,2,1
Thus you can stop process peacefully without any errors.

Hope this help people!

scott.chu,scott.chu@udngroup.com
2016/5/19 (週四)
----- Original Message ----- 
From: John Bickerstaff 
To: solr-user ; scott(自己) 
CC: 
Date: 2016/5/18 (週三) 13:53
Subject: Re: [scottchu] How to specify multiple zk nodes using solrstartcommand under Windows


I think those zk server warning messages are expected. Until you have 3 
running instances you don't have a "Quorum" and the Zookeeper instances 
complain. Once the third one comes up they are "happy" and don't complain 

any more. You'd get similar messages if one of the Zookeeper nodes ever 
went down. 

As for the stopping of zk server - I've never had any problem issuing a 
stop command, but I'm running Linux so I may not be much good to you in 
that regard. 

On Tue, May 17, 2016 at 8:41 PM, scott.chu <sc...@udngroup.com> wrote: 


> I tested yesterday and it proves my theory. I'll share what I do under 
> Windows on 1 PC here with you experienced guys and further newbies: 
> 
> 1>Download zookeeper 3.4.8. I unzip it and copy to 3 other different 
> folders: zk_1, zk_2, zk_3. 
> 2>For each zk_n folder, I do these things (Note: {n} means the last digit 
> in zk_n foler name): 
> a. Create zoo_data folder under root and create 'myid' with 
> notepad, the contents is pure '{n}' only. 
> b. Create zoo.cfg under conf folder with following contents: 
> clientPort=218{n} 
> initLimit=5 
> syncLimit=2 
> dataDir=D:/zk_{n}/zoo_data 
> ;if p2p-coneect-port or leader-election-port are all 
> same, then we should set maxClientCnxns=n 
> ;maxClientCnxns=3 
> ;server.x=host:p2p-connect-port:leader-election-port 
> server.1=localhost:2888:3888 
> server.2=localhost:2889:3889 
> server.3=localhost:2890:3890 
> 3> I download ZOOKEEPER-1122's zkServer.cmd. and go into each zk_n folder 
> and issue command: 
> bin\zkServer.cmd start 
> 
> [Question]: There's something I'd like to ask guys: When I start 
> zk_1, zk_2, the console keeps shows some warning messages. 
> Only after I start zk_3, the warning messages 
> is stopped. Is that normal? 
> 
> 4> I use zkui_win to see them all go online successfully. 
> 5> I goto Solr-5.4.1 folder, and issue following commands: 
> bin\solr start -c -s mynodes\node1 -z localhost:2181 
> bin\solr start -c -s mynodes\node1 -z localhost:2181 -p 
> 7973 
> bin\solr create -c cugna -d myconfigsets\cugna -shards 
> 1 -replicationFactor 2 -p 8983 
> 6> By using zkui_win again, I see: 
> ****** config 'cugna' are all synchronized on zk_1 to zk_3. So this 
> proves my theory, we only have to specify only one zk nodes and they'll 

> sync themselves. ****** 
> 
> [Question]: I go into zk_n folder and issue 'bin\zkServer stop'. However, 
> this shows error message. It seems it can't taskkill the zk process for 
> some reason. The only way I stop them 
> is by closing DOS windows that has issued the 
> 'bin\zkServer start' command. Does anybody know why 'bin\zkServer stop' 
> doesn't work? 
> 
> Note: Gotta say sorry for the repitition of localhost:2181. It's my typo. 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/18 (週三) 
> ----- Original Message ----- 
> From: Abdel Belkasri 
> To: solr-user 
> CC: 
> Date: 2016/5/18 (週三) 00:17 
> Subject: Re: [scottchu] How to specify multiple zk nodes using solr 
> startcommand under Windows 
> 
> 
> The repetition is just a cut and paste from Scott's post. 
> 
> How can I check if I am getting the ensemble or just a single zk? 
> 
> Also if this is not the way to specify an ensemble, what is the right way? 
> 
> 
> Because the comma delimited list does not work, I concur with Scott. 
> 
> On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com> 
> 
> wrote: 
> 
> > Are you absolutely sure you're getting an _ensemble_ and 
> > not just connecting to a single node? My suspicion (without 
> > proof) is that you're just getting one -z option. It'll work as 
> > long as that ZK instance stays up, but it won't be fault-tolerant. 
> > 
> > And again you repeated the port (2181) twice. 
> > 
> > Best, 
> > Erick 
> > 
> > On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com> 
> > wrote: 
> > > Hi Scott, 
> > > what worked for me in Windows is this (no ",") 
> > > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 
> -z 
> > > localhost:2183 
> > > 
> > > -- Hope this helps 
> > > Abdel. 
> > > 
> > > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com> 
> > wrote: 
> > > 
> > >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine. 

> > >> Go into Solr 5.4.1 root folder and issue and issue the command in 
> > article 
> > >> 'Setting Up an External ZooKeeper Ensemble' in reference guide 
> > >> 
> > >> bin\Solr start -c -s mynodes\node1 -z 
> > >> localhost:2181,localhost:2181,localhost:2183 
> > >> 
> > >> but it doesn't run but just show help page of start command in 
> solr.cmd. 
> > >> How should I issue the correct command? 
> > >> 
> > > 
> > > 
> > > 
> > > -- 
> > > Abdel K. Belkasri, PhD 
> > 
> 
> 
> 
> -- 
> Abdel K. Belkasri, PhD 
> 
> 
> 
> ----- 
> 未在此訊息中找到病毒。 
> 已透過 AVG 檢查 - www.avg.com 
> 版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16 
> 



----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16

Re: [scottchu] How to specify multiple zk nodes using solrstartcommand under Windows

Posted by "scott.chu" <sc...@udngroup.com>.
Thanks! Once I do experiment ok under Windows. I'll move to CentOS. Actually, I already install 3 zk and Solr on 3 servers with CentOS. It seems that open source project more or less has something unprepared for running under Windows.

scott.chu,scott.chu@udngroup.com
2016/5/18 (週三)
----- Original Message ----- 
From: John Bickerstaff 
To: solr-user ; scott(自己) 
CC: 
Date: 2016/5/18 (週三) 13:53
Subject: Re: [scottchu] How to specify multiple zk nodes using solrstartcommand under Windows


I think those zk server warning messages are expected. Until you have 3 
running instances you don't have a "Quorum" and the Zookeeper instances 
complain. Once the third one comes up they are "happy" and don't complain 

any more. You'd get similar messages if one of the Zookeeper nodes ever 
went down. 

As for the stopping of zk server - I've never had any problem issuing a 
stop command, but I'm running Linux so I may not be much good to you in 
that regard. 

On Tue, May 17, 2016 at 8:41 PM, scott.chu <sc...@udngroup.com> wrote: 


> I tested yesterday and it proves my theory. I'll share what I do under 
> Windows on 1 PC here with you experienced guys and further newbies: 
> 
> 1>Download zookeeper 3.4.8. I unzip it and copy to 3 other different 
> folders: zk_1, zk_2, zk_3. 
> 2>For each zk_n folder, I do these things (Note: {n} means the last digit 
> in zk_n foler name): 
> a. Create zoo_data folder under root and create 'myid' with 
> notepad, the contents is pure '{n}' only. 
> b. Create zoo.cfg under conf folder with following contents: 
> clientPort=218{n} 
> initLimit=5 
> syncLimit=2 
> dataDir=D:/zk_{n}/zoo_data 
> ;if p2p-coneect-port or leader-election-port are all 
> same, then we should set maxClientCnxns=n 
> ;maxClientCnxns=3 
> ;server.x=host:p2p-connect-port:leader-election-port 
> server.1=localhost:2888:3888 
> server.2=localhost:2889:3889 
> server.3=localhost:2890:3890 
> 3> I download ZOOKEEPER-1122's zkServer.cmd. and go into each zk_n folder 
> and issue command: 
> bin\zkServer.cmd start 
> 
> [Question]: There's something I'd like to ask guys: When I start 
> zk_1, zk_2, the console keeps shows some warning messages. 
> Only after I start zk_3, the warning messages 
> is stopped. Is that normal? 
> 
> 4> I use zkui_win to see them all go online successfully. 
> 5> I goto Solr-5.4.1 folder, and issue following commands: 
> bin\solr start -c -s mynodes\node1 -z localhost:2181 
> bin\solr start -c -s mynodes\node1 -z localhost:2181 -p 
> 7973 
> bin\solr create -c cugna -d myconfigsets\cugna -shards 
> 1 -replicationFactor 2 -p 8983 
> 6> By using zkui_win again, I see: 
> ****** config 'cugna' are all synchronized on zk_1 to zk_3. So this 
> proves my theory, we only have to specify only one zk nodes and they'll 

> sync themselves. ****** 
> 
> [Question]: I go into zk_n folder and issue 'bin\zkServer stop'. However, 
> this shows error message. It seems it can't taskkill the zk process for 
> some reason. The only way I stop them 
> is by closing DOS windows that has issued the 
> 'bin\zkServer start' command. Does anybody know why 'bin\zkServer stop' 
> doesn't work? 
> 
> Note: Gotta say sorry for the repitition of localhost:2181. It's my typo. 
> 
> scott.chu,scott.chu@udngroup.com 
> 2016/5/18 (週三) 
> ----- Original Message ----- 
> From: Abdel Belkasri 
> To: solr-user 
> CC: 
> Date: 2016/5/18 (週三) 00:17 
> Subject: Re: [scottchu] How to specify multiple zk nodes using solr 
> startcommand under Windows 
> 
> 
> The repetition is just a cut and paste from Scott's post. 
> 
> How can I check if I am getting the ensemble or just a single zk? 
> 
> Also if this is not the way to specify an ensemble, what is the right way? 
> 
> 
> Because the comma delimited list does not work, I concur with Scott. 
> 
> On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com> 
> 
> wrote: 
> 
> > Are you absolutely sure you're getting an _ensemble_ and 
> > not just connecting to a single node? My suspicion (without 
> > proof) is that you're just getting one -z option. It'll work as 
> > long as that ZK instance stays up, but it won't be fault-tolerant. 
> > 
> > And again you repeated the port (2181) twice. 
> > 
> > Best, 
> > Erick 
> > 
> > On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com> 
> > wrote: 
> > > Hi Scott, 
> > > what worked for me in Windows is this (no ",") 
> > > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 
> -z 
> > > localhost:2183 
> > > 
> > > -- Hope this helps 
> > > Abdel. 
> > > 
> > > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com> 
> > wrote: 
> > > 
> > >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine. 

> > >> Go into Solr 5.4.1 root folder and issue and issue the command in 
> > article 
> > >> 'Setting Up an External ZooKeeper Ensemble' in reference guide 
> > >> 
> > >> bin\Solr start -c -s mynodes\node1 -z 
> > >> localhost:2181,localhost:2181,localhost:2183 
> > >> 
> > >> but it doesn't run but just show help page of start command in 
> solr.cmd. 
> > >> How should I issue the correct command? 
> > >> 
> > > 
> > > 
> > > 
> > > -- 
> > > Abdel K. Belkasri, PhD 
> > 
> 
> 
> 
> -- 
> Abdel K. Belkasri, PhD 
> 
> 
> 
> ----- 
> 未在此訊息中找到病毒。 
> 已透過 AVG 檢查 - www.avg.com 
> 版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16 
> 



----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16

Re: [scottchu] How to specify multiple zk nodes using solr startcommand under Windows

Posted by John Bickerstaff <jo...@johnbickerstaff.com>.
I think those zk server warning messages are expected.  Until you have 3
running instances you don't have a "Quorum" and the Zookeeper instances
complain.  Once the third one comes up they are "happy" and don't complain
any more.  You'd get similar messages if one of the Zookeeper nodes ever
went down.

As for the stopping of zk server - I've never had any problem issuing a
stop command, but I'm running Linux so I may not be much good to you in
that regard.

On Tue, May 17, 2016 at 8:41 PM, scott.chu <sc...@udngroup.com> wrote:

> I tested yesterday and it proves my theory. I'll share what I do under
> Windows on 1 PC here with you experienced guys and further newbies:
>
> 1>Download zookeeper 3.4.8. I unzip it and copy to 3 other different
> folders: zk_1, zk_2, zk_3.
> 2>For each zk_n folder, I do these things  (Note: {n} means the last digit
> in zk_n foler name):
>          a. Create zoo_data folder under root and create 'myid' with
> notepad, the contents is pure '{n}' only.
>          b. Create zoo.cfg under conf folder with following contents:
>                      clientPort=218{n}
>                      initLimit=5
>                      syncLimit=2
>                      dataDir=D:/zk_{n}/zoo_data
>                      ;if p2p-coneect-port or leader-election-port are all
> same, then we should set maxClientCnxns=n
>                      ;maxClientCnxns=3
>                      ;server.x=host:p2p-connect-port:leader-election-port
>                      server.1=localhost:2888:3888
>                      server.2=localhost:2889:3889
>                      server.3=localhost:2890:3890
>  3> I download ZOOKEEPER-1122's zkServer.cmd. and go into each zk_n folder
> and issue command:
>                      bin\zkServer.cmd start
>
>        [Question]: There's something I'd like to ask guys: When I start
> zk_1, zk_2, the console keeps shows some warning messages.
>                              Only after I start zk_3, the warning messages
> is stopped.  Is that normal?
>
> 4>  I use zkui_win to see them all go online successfully.
> 5> I goto Solr-5.4.1 folder, and issue following commands:
>                    bin\solr start -c -s mynodes\node1 -z localhost:2181
>                    bin\solr start -c -s mynodes\node1 -z localhost:2181 -p
> 7973
>                    bin\solr create -c cugna -d myconfigsets\cugna -shards
> 1 -replicationFactor 2 -p 8983
> 6> By using zkui_win again,  I see:
>       ****** config 'cugna' are all synchronized on zk_1 to zk_3. So this
> proves my theory, we only have to specify only one zk nodes  and they'll
> sync themselves. ******
>
> [Question]: I go into zk_n folder and issue 'bin\zkServer stop'. However,
> this shows error message. It seems it can't taskkill the zk process for
> some reason. The only way I stop them
>                      is by closing DOS windows that has issued the
> 'bin\zkServer start' command. Does anybody know why 'bin\zkServer stop'
> doesn't work?
>
> Note: Gotta say sorry for the repitition of localhost:2181. It's my typo.
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/18 (週三)
> ----- Original Message -----
> From: Abdel Belkasri
> To: solr-user
> CC:
> Date: 2016/5/18 (週三) 00:17
> Subject: Re: [scottchu] How to specify multiple zk nodes using solr
> startcommand under Windows
>
>
> The repetition is just a cut and paste from Scott's post.
>
> How can I check if I am getting the ensemble or just a single zk?
>
> Also if this is not the way to specify an ensemble, what is the right way?
>
>
> Because the comma delimited list does not work, I concur with Scott.
>
> On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com>
>
> wrote:
>
> > Are you absolutely sure you're getting an _ensemble_ and
> > not just connecting to a single node? My suspicion (without
> > proof) is that you're just getting one -z option. It'll work as
> > long as that ZK instance stays up, but it won't be fault-tolerant.
> >
> > And again you repeated the port (2181) twice.
> >
> > Best,
> > Erick
> >
> > On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com>
> > wrote:
> > > Hi Scott,
> > > what worked for me in Windows is this (no ",")
> > > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181
> -z
> > > localhost:2183
> > >
> > > -- Hope this helps
> > > Abdel.
> > >
> > > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com>
> > wrote:
> > >
> > >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
> > >> Go into Solr 5.4.1 root folder and issue and issue the command in
> > article
> > >> 'Setting Up an External ZooKeeper Ensemble' in reference guide
> > >>
> > >> bin\Solr start -c -s mynodes\node1 -z
> > >> localhost:2181,localhost:2181,localhost:2183
> > >>
> > >> but it doesn't run but just show help page of start command in
> solr.cmd.
> > >> How should I issue the correct command?
> > >>
> > >
> > >
> > >
> > > --
> > > Abdel K. Belkasri, PhD
> >
>
>
>
> --
> Abdel K. Belkasri, PhD
>
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16
>

A quick way to open stay-opened DOS window on any folder under Windows [scottchu]

Posted by "scott.chu" <sc...@udngroup.com>.
I got many helps from this maillist. So this time I'd like to share some useful thing with guys.

First, I'm not a cygwin guy under Windows.

[Symptom]
When we test some open source projects under Windows. We from time to time need: open Windows explorer, change to specific folder, click once on top address bar, select and copy the path, open DOS window, issue 'cd /d ', right-click to paste the pathname, press ENTER, and then we can type in some commands, etc. This could be tedious if we test this, test that. At least it 's what I'm experienced these days.

[Cure]
I find a quick and universal way to do previous tedious actions, as follows:
1> Create a cmd.exe link.
2> Rename it to 'cdhere'.
3> Right-click on it and select 'properties'.
4>On textbox of target, type in 'C:\Windows\System\cmd.exe'.
5>On textbox of starting position, type in '%cd%'.
6>Press 'OK'.
Now you can copy cdhere.lnk to any folder you want, double-click it, and the DOS windows will be opened and stayed.

If you are kinda like me (i.e. not a cygwin guy), then this should help you. Enjoy it!

scott.chu,scott.chu@udngroup.com
2016/5/18 (週三 means Wednesday)

Re: [scottchu] How to specify multiple zk nodes using solr startcommand under Windows

Posted by "scott.chu" <sc...@udngroup.com>.
I tested yesterday and it proves my theory. I'll share what I do under Windows on 1 PC here with you experienced guys and further newbies:

1>Download zookeeper 3.4.8. I unzip it and copy to 3 other different folders: zk_1, zk_2, zk_3.
2>For each zk_n folder, I do these things  (Note: {n} means the last digit in zk_n foler name):
         a. Create zoo_data folder under root and create 'myid' with notepad, the contents is pure '{n}' only.
         b. Create zoo.cfg under conf folder with following contents:
                     clientPort=218{n}
                     initLimit=5
                     syncLimit=2
                     dataDir=D:/zk_{n}/zoo_data
                     ;if p2p-coneect-port or leader-election-port are all same, then we should set maxClientCnxns=n
                     ;maxClientCnxns=3
                     ;server.x=host:p2p-connect-port:leader-election-port
                     server.1=localhost:2888:3888
                     server.2=localhost:2889:3889
                     server.3=localhost:2890:3890
 3> I download ZOOKEEPER-1122's zkServer.cmd. and go into each zk_n folder and issue command:
                     bin\zkServer.cmd start

       [Question]: There's something I'd like to ask guys: When I start zk_1, zk_2, the console keeps shows some warning messages.
                             Only after I start zk_3, the warning messages is stopped.  Is that normal?

4>  I use zkui_win to see them all go online successfully.
5> I goto Solr-5.4.1 folder, and issue following commands:
                   bin\solr start -c -s mynodes\node1 -z localhost:2181
                   bin\solr start -c -s mynodes\node1 -z localhost:2181 -p 7973
                   bin\solr create -c cugna -d myconfigsets\cugna -shards 1 -replicationFactor 2 -p 8983
6> By using zkui_win again,  I see:
      ****** config 'cugna' are all synchronized on zk_1 to zk_3. So this proves my theory, we only have to specify only one zk nodes  and they'll sync themselves. ******

[Question]: I go into zk_n folder and issue 'bin\zkServer stop'. However, this shows error message. It seems it can't taskkill the zk process for some reason. The only way I stop them
                     is by closing DOS windows that has issued the 'bin\zkServer start' command. Does anybody know why 'bin\zkServer stop' doesn't work?

Note: Gotta say sorry for the repitition of localhost:2181. It's my typo.

scott.chu,scott.chu@udngroup.com
2016/5/18 (週三)
----- Original Message ----- 
From: Abdel Belkasri 
To: solr-user 
CC: 
Date: 2016/5/18 (週三) 00:17
Subject: Re: [scottchu] How to specify multiple zk nodes using solr startcommand under Windows


The repetition is just a cut and paste from Scott's post. 

How can I check if I am getting the ensemble or just a single zk? 

Also if this is not the way to specify an ensemble, what is the right way? 


Because the comma delimited list does not work, I concur with Scott. 

On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com> 

wrote: 

> Are you absolutely sure you're getting an _ensemble_ and 
> not just connecting to a single node? My suspicion (without 
> proof) is that you're just getting one -z option. It'll work as 
> long as that ZK instance stays up, but it won't be fault-tolerant. 
> 
> And again you repeated the port (2181) twice. 
> 
> Best, 
> Erick 
> 
> On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com> 
> wrote: 
> > Hi Scott, 
> > what worked for me in Windows is this (no ",") 
> > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 -z 
> > localhost:2183 
> > 
> > -- Hope this helps 
> > Abdel. 
> > 
> > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com> 
> wrote: 
> > 
> >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine. 
> >> Go into Solr 5.4.1 root folder and issue and issue the command in 
> article 
> >> 'Setting Up an External ZooKeeper Ensemble' in reference guide 
> >> 
> >> bin\Solr start -c -s mynodes\node1 -z 
> >> localhost:2181,localhost:2181,localhost:2183 
> >> 
> >> but it doesn't run but just show help page of start command in solr.cmd. 
> >> How should I issue the correct command? 
> >> 
> > 
> > 
> > 
> > -- 
> > Abdel K. Belkasri, PhD 
> 



-- 
Abdel K. Belkasri, PhD 



----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12251 - 發佈日期: 05/17/16

Re: [scottchu] How to specify multiple zk nodes using solr start command under Windows

Posted by Abdel Belkasri <be...@gmail.com>.
The repetition is just a cut and paste from Scott's post.

How can I check if I am getting the ensemble or just a single zk?

Also if this is not the way to specify an ensemble, what is the right way?

Because the comma delimited list does not work, I concur with Scott.

On Tue, May 17, 2016 at 11:49 AM, Erick Erickson <er...@gmail.com>
wrote:

> Are you absolutely sure you're getting an _ensemble_ and
> not just connecting to a single node? My suspicion (without
> proof) is that you're just getting one -z option. It'll work as
> long as that ZK instance stays up, but it won't be fault-tolerant.
>
> And again you repeated the port (2181) twice.
>
> Best,
> Erick
>
> On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com>
> wrote:
> > Hi Scott,
> > what worked for me in Windows is this (no ",")
> > bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 -z
> > localhost:2183
> >
> > -- Hope this helps
> > Abdel.
> >
> > On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com>
> wrote:
> >
> >> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
> >> Go into Solr 5.4.1 root folder and issue and issue the command in
> article
> >> 'Setting Up an External ZooKeeper Ensemble' in reference guide
> >>
> >> bin\Solr start -c -s mynodes\node1 -z
> >> localhost:2181,localhost:2181,localhost:2183
> >>
> >> but it doesn't run but just show help page of start command in solr.cmd.
> >> How should I issue the correct command?
> >>
> >
> >
> >
> > --
> > Abdel K. Belkasri, PhD
>



-- 
Abdel K. Belkasri, PhD

Re: [scottchu] How to specify multiple zk nodes using solr start command under Windows

Posted by Erick Erickson <er...@gmail.com>.
Are you absolutely sure you're getting an _ensemble_ and
not just connecting to a single node? My suspicion (without
proof) is that you're just getting one -z option. It'll work as
long as that ZK instance stays up, but it won't be fault-tolerant.

And again you repeated the port (2181) twice.

Best,
Erick

On Tue, May 17, 2016 at 8:02 AM, Abdel Belkasri <be...@gmail.com> wrote:
> Hi Scott,
> what worked for me in Windows is this (no ",")
> bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 -z
> localhost:2183
>
> -- Hope this helps
> Abdel.
>
> On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com> wrote:
>
>> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
>> Go into Solr 5.4.1 root folder and issue and issue the command in article
>> 'Setting Up an External ZooKeeper Ensemble' in reference guide
>>
>> bin\Solr start -c -s mynodes\node1 -z
>> localhost:2181,localhost:2181,localhost:2183
>>
>> but it doesn't run but just show help page of start command in solr.cmd.
>> How should I issue the correct command?
>>
>
>
>
> --
> Abdel K. Belkasri, PhD

Re: [scottchu] How to specify multiple zk nodes using solr start command under Windows

Posted by Abdel Belkasri <be...@gmail.com>.
Hi Scott,
what worked for me in Windows is this (no ",")
bin\Solr start -c -s mynodes\node1 -z localhost:2181 -z localhost:2181 -z
localhost:2183

-- Hope this helps
Abdel.

On Tue, May 17, 2016 at 3:35 AM, scott.chu <sc...@udngroup.com> wrote:

> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
> Go into Solr 5.4.1 root folder and issue and issue the command in article
> 'Setting Up an External ZooKeeper Ensemble' in reference guide
>
> bin\Solr start -c -s mynodes\node1 -z
> localhost:2181,localhost:2181,localhost:2183
>
> but it doesn't run but just show help page of start command in solr.cmd.
> How should I issue the correct command?
>



-- 
Abdel K. Belkasri, PhD

Re: [scottchu] How to specify multiple zk nodes using solr start commandunder Windows

Posted by John Bickerstaff <jo...@johnbickerstaff.com>.
In your original command, you listed the same port twice.  That may have
been at least part of the difficulty.

It's probably fine to just use one zk node - as the zookeeper instances
should be aware of each other.

I also assume that if your solr.in.sh (or windows equavalent) has the
properly formatted entry for all the zk nodes, Solr will be able to find a
different one if the one you pass in goes down...

Here's the entry from my file in case it's helpful.  I got away without the
port number (I assume) because I'm using the default 2181 on all my
zookeeper nodes which are separate servers.

# Set the ZooKeeper connection string if using an external ZooKeeper
ensemble
# e.g. host1:2181,host2:2181/chroot
# Leave empty if not using SolrCloud
ZK_HOST="192.168.56.5,192.168.56.6,192.168.56.7/solr5_4"


On Tue, May 17, 2016 at 4:30 AM, scott.chu <sc...@udngroup.com> wrote:

>
> I issue  '-z localhost:2181 -z localhost:2182 -z localhost:2183' for each
> node's start command and later when I create collection, all 3 zk nodes has
> registered my configset.
> Never try but I think maybe only use -z localhost:2181, then all 3 nodes
> in zk ensemble will synchronize themselves.
>
> scott.chu,scott.chu@udngroup.com
> 2016/5/17 (週二)
> ----- Original Message -----
> From: scott(自己)
> To: solr-user
> CC:
> Date: 2016/5/17 (週二) 15:35
> Subject: [scottchu] How to specify multiple zk nodes using solr start
> commandunder Windows
>
>
> I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
> Go into Solr 5.4.1 root folder and issue and issue the command in article
> 'Setting Up an External ZooKeeper Ensemble' in reference guide
>
> bin\Solr start -c -s mynodes\node1 -z
> localhost:2181,localhost:2181,localhost:2183
>
> but it doesn't run but just show help page of start command in solr.cmd.
> How should I issue the correct command?
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16
>

Re: [scottchu] How to specify multiple zk nodes using solr start commandunder Windows

Posted by "scott.chu" <sc...@udngroup.com>.
I issue  '-z localhost:2181 -z localhost:2182 -z localhost:2183' for each node's start command and later when I create collection, all 3 zk nodes has registered my configset. 
Never try but I think maybe only use -z localhost:2181, then all 3 nodes in zk ensemble will synchronize themselves.

scott.chu,scott.chu@udngroup.com
2016/5/17 (週二)
----- Original Message ----- 
From: scott(自己) 
To: solr-user 
CC: 
Date: 2016/5/17 (週二) 15:35
Subject: [scottchu] How to specify multiple zk nodes using solr start commandunder Windows


I start 3 zk nodes at port 2181,2182, and 2183 on my local machine. 
Go into Solr 5.4.1 root folder and issue and issue the command in article 'Setting Up an External ZooKeeper Ensemble' in reference guide 

bin\Solr start -c -s mynodes\node1 -z localhost:2181,localhost:2181,localhost:2183 

but it doesn't run but just show help page of start command in solr.cmd. How should I issue the correct command? 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16

[scottchu] How to specify multiple zk nodes using solr start command under Windows

Posted by "scott.chu" <sc...@udngroup.com>.
I start 3 zk nodes at port 2181,2182, and 2183 on my local machine.
Go into Solr 5.4.1 root folder and issue and issue the command in article 'Setting Up an External ZooKeeper Ensemble' in reference guide 

bin\Solr start -c -s mynodes\node1 -z localhost:2181,localhost:2181,localhost:2183

but it doesn't run but just show help page of start command in solr.cmd. How should I issue the correct command?

Re: Updating error while add doc to Solrcloud

Posted by "scott.chu" <sc...@udngroup.com>.
I clear the cugna collection data (by renaming 'data' folder to 'xdata')and restart Solrcloud. I add previous possible-error xml doc, it succeeds. So I'm sure doc data has no problem. Is it because the index file size is too large? If the zk nodes fails during adding doc, could it cause this updating error since I do see some "can't find leader error' in solr log?

scott.chu,scott.chu@udngroup.com
2016/5/17 (週二)
----- Original Message ----- 
From: scott(自己) 
To: solr-user 
CC: 
Date: 2016/5/17 (週二) 14:29
Subject: Updating error while add doc to Solrcloud



I build Solrcloud with 2 nodes, 1 shard, 2 replica. I add doc in xml format using post.jar up to 2.85M+ no. of docs and 10gb index size. When I add more docs. the solr.log shows: 

-------------------------------------- 
    2016-05-17 14:01:09,024 WARN (main) [ ] o.e.j.s.h.RequestLogHandler !RequestLog 
    2016-05-17 14:01:09,275 WARN (main) [ ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@57fffcd7{/solr,file:/D:/portable_sw/solr-5.4.1/server/solr-webapp/webapp/,STARTING}{D:\portable_sw\solr-5.4.1\server/solr-webapp/webapp} has uncovered http methods for path: / 
    2016-05-17 14:01:09,346 WARN (main) [ ] o.a.s.c.CoreContainer Couldn't add files from D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib to classpath: D:\portable_sw\solr-5.4.1\mynodes\cloud\node1\lib 
    2016-05-17 14:01:11,419 WARN (coreLoadExecutor-7-thread-1-processing-n:10.18.59.179:8983_solr) [c:cugna s:shard1 r:core_node2 x:cugna_shard1_replica2] o.a.s.u.UpdateLog Exception reverse reading log 
java.io.EOFException 
... 
-------------------------------------- 

Later I stop all and kill write.lock (I ususally do this in Solr 3 when add doc fails) and add doc again but Solrcloud show can't find write.lock. So I recover write.lock and call post.jar again. The output shows: 

-------------------------------------- 
    "SimplePostTool version 5.0.0 
    Posting files to [base] url http://localhost:8983/solr/cugna/update using content-type application/xml... 
    POSTing file NMLBOym_a_UN2000_10_20160511_1014.xml to [base] 
    SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for url: http://localhost:8983/solr/cugna/update 
    SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?> 
    <response> 
    <lst name="responseHeader"><int name="status">400</int><int name="QTime">3</int></lst><lst name="error"><str name="msg"> 
    Exception writing document id un_555917 to the index; possible analysis error.</str><int name="code">400</int></lst> 
      </response> 
    SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 40 
    0 for URL: http://localhost:8983/solr/cugna/update 
    1 files indexed. 
    COMMITting Solr index changes to http://localhost:8983/solr/cugna/update... 
    Time spent: 0:00:00.259" 
------------------------------------- 

I thought it's that doc un_555917 problem, then I comment out it in xml and do again, it keeps showing same error to every single doc. I assume there's something wrong with Solrcloud. Does anyone experience this before? What could be the problem? Can I recover it? Or I have to add all docs again? 


scott.chu,scott.chu@udngroup.com 
2016/5/17 (週二) 
----- Original Message ----- 
From: scott(自己) 
To: solr-user 
CC: 
Date: 2016/5/17 (週二) 09:39 
Subject: Re(2): [scottchu] Cab I migrate solrcloud by just copying wholepackagefolder? 



OK! Thanks for reminding. I'll stick to the convention. 

scott.chu,scott.chu@udngroup.com 
2016/5/17 (週二) 
----- Original Message ----- 
From: Chris Hostetter 
To: solr-user ; scott(自己) 
CC: 
Date: 2016/5/17 (週二) 02:43 
Subject: Re: [scottchu] Cab I migrate solrcloud by just copying whole packagefolder? 



: Message-Id: <7F...@udngroup.com> 
: Subject: [scottchu] Cab I migrate solrcloud by just copying whole package 
: folder? 
: References: 
: <DC...@udngroup.com><C162E1B1F0311FC46A64E2E2AA 
: 729138@udngroup.com>, 
: <85...@elyograg.org> 
: In-Reply-To: <85...@elyograg.org> 

https://people.apache.org/~hossman/#threadhijack 
Thread Hijacking on Mailing Lists 

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email. Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention. It makes following discussions in the mailing list archives 
particularly difficult. 




-Hoss 
http://www.lucidworks.com/ 


----- 
??????????? 
??? AVG ?? - www.avg.com 
??: 2015.0.6201 / ???: 4568/12238 - ????: 05/15/16 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16 


----- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12245 - 發佈日期: 05/16/16