I want to migrate my Solrcloud from Windows to CentOS. Because I am new to CentOS, not familiar with how to install Solr on it and I did a lot of config in my Solrcloud on Windows, so I use ftp to upload solr-5.4.1 and zookeeper-3.4.6 folders to 3 different servers running CentOS. (They are all under /local). Then I tweak something in 3rd machine (See my other post titled "Can "Using cp replica and modifying core.properties" rather than ADDREPLICA API work?") and make my Solrcloud run with 3 replicas ok.
I do wish to follow the default folder/file convention of solr. So can you show me (or hint me) how to: * Install solr and zookeeper with install shell script under CentOS 6.4? * How to auto start solr and zookeeper under CentOS 6.4? Thanks in advance! scott.chu,scott....@udngroup.com 2016/5/27 (週五) ----- Original Message ----- From: Shawn Heisey To: solr-user CC: Date: 2016/5/27 (週五) 02:34 Subject: Re: How to save index data to other place? [scottchu] On 5/25/2016 10:16 PM, scott.chu wrote: > Thanks! I thought I have to tune solrconfig.xml. > > scott.chu,scott....@udngroup.com > 2016/5/26 (週四) > ----- Original Message ----- > From: Jay Potharaju > To: solr-user ; scott(自己) > CC: > Date: 2016/5/26 (週四) 11:31 > Subject: Re: How to save index data to other place? [scottchu] > > > use property.*dataDir*=*value* > https://cwiki.apache.org/confluence/display/solr/Defining+core.properties In general, I only place *relative* paths in dataDir ... but for most people, I would actually recommend not setting dataDir at all, and letting it default to "data". Rather, what I would do is set the solr home to another location, so *all* cores live there by default, and let Solr create its default directory structure in that location. You haven't indicated in this thread whether you're running on a UNIX or UNIX-like OS such as Linux, or whether you're running on Windows. You used both slashes and backslashes when you described your actual and desired index paths. For most operating systems other than Windows, I strongly recommend using the solr installer shell script. This script has a concept of a "var dir", and the solr home is a directory inside that. If you are using the installer shell script to install Solr and do not provide any options, then Solr itself will install to /opt/solr-X.Y.Z, a symlink at /opt/solr will be created that points to the install directory, and Solr will set its var dir to /var/solr. A configuration script will be created at /etc/default/solr.in.sh. In the configuration script, the solr home gets set to /var/solr/data. Each core created would create a directory under /var/solr/data with the core's name, and inside that directory would be a data directory, containing the index directory and the tlog directory. These paths assume you've got 5.5 or later. On a dev server, I used the installer script with a service name (-s option) of solr5. With this option, most of the paths get changed from the default. The symlink is /opt/solr5 pointing to /opt/solr-5.5.1, the var dir is /var/solr5, the configuration script is /etc/default/solr5.in.sh, and the solr home is /var/solr5/data. Thanks, Shawn ----- 未在此訊息中找到病毒。 已透過 AVG 檢查 - www.avg.com 版本: 2015.0.6201 / 病毒庫: 4568/12302 - 發佈日期: 05/26/16