Re: How to sync lib directory in SolrCloud?

2014-08-07 Thread rulinma
mark.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-sync-lib-directory-in-SolrCloud-tp4150405p4151821.html
Sent from the Solr - User mailing list archive at Nabble.com.


How to sync lib directory in SolrCloud?

2014-07-31 Thread P Williams
Hi,

I have an existing collection that I'm trying to add to a new SolrCloud.
 This collection has all the normal files in conf but also has a lib
directory to support the filters schema.xml uses.

wget
https://github.com/projectblacklight/blacklight-jetty/archive/v4.9.0.zip
unzip v4.9.0.zip

I add the configuration to Zookeeper

cd /solr-4.9.0/example/scripts
cloud-scripts/zkcli.sh -cmd upconfig -confname blacklight -zkhost
zk1:2181,zk2:2181,zk3:2181 -confdir
~/blacklight-jetty-4.9.0/solr/blacklight-core/conf/

I try to create the collection
curl 
http://solr1:8080/solr/admin/collections?action=CREATEname=blacklightnumShards=3collection.configName=blacklightreplicationFactor=2maxShardsPerNode=2


but it looks like the jars in the lib directory aren't available and this
is what is causing my collection creation to fail.  I guess this makes
sense because it's not one of the files that I added to Zookeeper to share.
 How do I share the lib directory via Zookeeper?

Thanks,
Tricia

[pjenkins@solr1 scripts]$ cloud-scripts/zkcli.sh -cmd upconfig -zkhost
zk1:2181,zk2:2181,zk3:2181 -confdir
~/blacklight-jetty-4.9.0/solr/blacklight-core/conf/ -confname blacklight
INFO  - 2014-07-31 09:28:06.289; org.apache.zookeeper.Environment; Client
environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
INFO  - 2014-07-31 09:28:06.292; org.apache.zookeeper.Environment; Client
environment:host.name=solr1.library.ualberta.ca
INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
environment:java.version=1.7.0_65
INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
environment:java.vendor=Oracle Corporation
INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client

Re: How to sync lib directory in SolrCloud?

2014-07-31 Thread Timothy Potter
You'll need to scp the JAR files to all nodes in the cluster. ZK is
not a great distribution mechanism for large binary files since it has
a 1MB znode size limit (by default)

On Thu, Jul 31, 2014 at 10:26 AM, P Williams
williams.tricia.l...@gmail.com wrote:
 Hi,

 I have an existing collection that I'm trying to add to a new SolrCloud.
  This collection has all the normal files in conf but also has a lib
 directory to support the filters schema.xml uses.

 wget
 https://github.com/projectblacklight/blacklight-jetty/archive/v4.9.0.zip
 unzip v4.9.0.zip

 I add the configuration to Zookeeper

 cd /solr-4.9.0/example/scripts
 cloud-scripts/zkcli.sh -cmd upconfig -confname blacklight -zkhost
 zk1:2181,zk2:2181,zk3:2181 -confdir
 ~/blacklight-jetty-4.9.0/solr/blacklight-core/conf/

 I try to create the collection
 curl 
 http://solr1:8080/solr/admin/collections?action=CREATEname=blacklightnumShards=3collection.configName=blacklightreplicationFactor=2maxShardsPerNode=2
 

 but it looks like the jars in the lib directory aren't available and this
 is what is causing my collection creation to fail.  I guess this makes
 sense because it's not one of the files that I added to Zookeeper to share.
  How do I share the lib directory via Zookeeper?

 Thanks,
 Tricia

 [pjenkins@solr1 scripts]$ cloud-scripts/zkcli.sh -cmd upconfig -zkhost
 zk1:2181,zk2:2181,zk3:2181 -confdir
 ~/blacklight-jetty-4.9.0/solr/blacklight-core/conf/ -confname blacklight
 INFO  - 2014-07-31 09:28:06.289; org.apache.zookeeper.Environment; Client
 environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
 INFO  - 2014-07-31 09:28:06.292; org.apache.zookeeper.Environment; Client
 environment:host.name=solr1.library.ualberta.ca
 INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
 environment:java.version=1.7.0_65
 INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
 environment:java.vendor=Oracle Corporation
 INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client
 environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
 INFO  - 2014-07-31 09:28:06.295; org.apache.zookeeper.Environment; Client