Re: Getting Files into Zookeeper

2013-01-11 Thread Mark Miller
It's a bug that you only see RuntimeException - in 4.1 you will get the real 
problem - which is likely around connecting to zookeeper. You might try with a 
single zk host in the zk host string initially. That might make it easier to 
track down why it won't connect. It's tough to diagnose because the root 
exception is being swallowed - it's likely a connect to zk failed exception 
though.

- Mark

On Jan 10, 2013, at 1:34 PM, Christopher Gross cogr...@gmail.com wrote:

 I'm trying to get SolrCloud working with more than one configuration going.
  I have the base schema that Solr 4 comes with, I'd like to push that and
 one from another project (it does have the _version_ field in it.)  I'm
 having difficulty figuring out how to push things into zookeeper, or if I'm
 even doing this right.
 
 From the SolrCloud page, I'm trying this and I get an error --
 
 $ java -classpath
 zookeeper-3.3.6.jar:apache-solr-core-4.0.0.jar:apache-solr-solrj-4.0.0.jar:commons-cli-1.2.jar:slf4j-jdk14-1.6.4.jar:slf4j-api-1.6.4.jar:commons-codec-1.7.jar:commons-fileupload-1.2.1.jar:commons-io-2.1.jar:commons-lang-2.6.jar:guava-r05.jar:httpclient-4.1.3.jar:httpcore-4.1.4.jar:httpmime-4.1.3.jar:jcl-over-slf4j-1.6.4.jar:lucene-analyzers-common-4.0.0.jar:lucene-analyzers-kuromoji-4.0.0.jar:lucene-analyzers-phonetic-4.0.0.jar:lucene-core-4.0.0.jar:lucene-grouping-4.0.0.jar:lucene-highlighter-4.0.0.jar:lucene-memory-4.0.0.jar:lucene-misc-4.0.0.jar:lucene-queries-4.0.0.jar:lucene-queryparser-4.0.0.jar:lucene-spatial-4.0.0.jar:lucene-suggest-4.0.0.jar:spatial4j-0.3.jar:wstx-asl-3.2.7.jar
 org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost
 localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2
 185 -confdir /solr/data/test/conf -confname myconf
 Exception in thread main java.lang.RuntimeException
at
 org.apache.solr.common.cloud.SolrZkClient.init(SolrZkClient.java:115)
at
 org.apache.solr.common.cloud.SolrZkClient.init(SolrZkClient.java:83)
at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:158)
 
 Can anyone point me in the direction of some documentation or let me know
 if there's something that I'm missing?
 
 Thanks!
 
 -- Chris



Re: Getting Files into Zookeeper

2013-01-11 Thread Christopher Gross
I changed it to only go to one Zookeeper (localhost:2181) and it still gave
me the same stack trace error.

I was eventually able to get around this -- I just used the bootstrap
arguments when starting up my Tomcat instances to push the configs over --
though I'd rather just do it externally from Tomcat in the future.

Thanks Mark.

-- Chris


On Fri, Jan 11, 2013 at 11:00 AM, Mark Miller markrmil...@gmail.com wrote:

 It's a bug that you only see RuntimeException - in 4.1 you will get the
 real problem - which is likely around connecting to zookeeper. You might
 try with a single zk host in the zk host string initially. That might make
 it easier to track down why it won't connect. It's tough to diagnose
 because the root exception is being swallowed - it's likely a connect to zk
 failed exception though.

 - Mark

 On Jan 10, 2013, at 1:34 PM, Christopher Gross cogr...@gmail.com wrote:

  I'm trying to get SolrCloud working with more than one configuration
 going.
   I have the base schema that Solr 4 comes with, I'd like to push that and
  one from another project (it does have the _version_ field in it.)  I'm
  having difficulty figuring out how to push things into zookeeper, or if
 I'm
  even doing this right.
 
  From the SolrCloud page, I'm trying this and I get an error --
 
  $ java -classpath
 
 zookeeper-3.3.6.jar:apache-solr-core-4.0.0.jar:apache-solr-solrj-4.0.0.jar:commons-cli-1.2.jar:slf4j-jdk14-1.6.4.jar:slf4j-api-1.6.4.jar:commons-codec-1.7.jar:commons-fileupload-1.2.1.jar:commons-io-2.1.jar:commons-lang-2.6.jar:guava-r05.jar:httpclient-4.1.3.jar:httpcore-4.1.4.jar:httpmime-4.1.3.jar:jcl-over-slf4j-1.6.4.jar:lucene-analyzers-common-4.0.0.jar:lucene-analyzers-kuromoji-4.0.0.jar:lucene-analyzers-phonetic-4.0.0.jar:lucene-core-4.0.0.jar:lucene-grouping-4.0.0.jar:lucene-highlighter-4.0.0.jar:lucene-memory-4.0.0.jar:lucene-misc-4.0.0.jar:lucene-queries-4.0.0.jar:lucene-queryparser-4.0.0.jar:lucene-spatial-4.0.0.jar:lucene-suggest-4.0.0.jar:spatial4j-0.3.jar:wstx-asl-3.2.7.jar
  org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost
  localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2
  185 -confdir /solr/data/test/conf -confname myconf
  Exception in thread main java.lang.RuntimeException
 at
  org.apache.solr.common.cloud.SolrZkClient.init(SolrZkClient.java:115)
 at
  org.apache.solr.common.cloud.SolrZkClient.init(SolrZkClient.java:83)
 at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:158)
 
  Can anyone point me in the direction of some documentation or let me know
  if there's something that I'm missing?
 
  Thanks!
 
  -- Chris