Re: zkcli issues
Hello Nick - I have executed the steps on Windows 7 and successfully uploaded the Solr Configuration to ZooKeeper :) Log lines (Config upload): C:\Users\jeeva\for-nick>dir solr-lib-cli Volume in drive C has no label. Volume Serial Number is 94F3-63A7 Directory of C:\Users\jeeva\for-nick\solr-lib-cli 11/17/2012 02:00 AM . 11/17/2012 02:00 AM .. 10/06/2012 03:04 AM 1,898,799 apache-solr-core-4.0.0.jar 10/06/2012 03:04 AM 371,816 apache-solr-solrj-4.0.0.jar 03/19/2009 04:08 PM41,123 commons-cli-1.2.jar 09/11/2012 08:14 AM 259,600 commons-codec-1.7.jar 02/11/2008 02:07 AM57,779 commons-fileupload-1.2.1.jar 10/03/2011 05:32 PM 163,151 commons-io-2.1.jar 01/16/2011 05:21 PM 284,220 commons-lang-2.6.jar 06/01/2010 02:32 PM 934,783 guava-r05.jar 02/02/2012 07:15 AM 352,585 httpclient-4.1.3.jar 12/18/2011 11:37 AM 181,410 httpcore-4.1.4.jar 02/02/2012 07:15 AM26,938 httpmime-4.1.3.jar 10/31/2011 06:46 PM17,308 jcl-over-slf4j-1.6.4.jar 10/31/2011 06:46 PM20,639 log4j-over-slf4j-1.6.4.jar 10/06/2012 03:00 AM 1,527,069 lucene-analyzers-common-4.0.0.jar 10/06/2012 03:01 AM 4,553,567 lucene-analyzers-kuromoji-4.0.0.jar 10/06/2012 03:01 AM22,891 lucene-analyzers-phonetic-4.0.0.jar 10/06/2012 03:00 AM 2,038,850 lucene-core-4.0.0.jar 10/06/2012 03:01 AM 164,799 lucene-grouping-4.0.0.jar 10/06/2012 03:01 AM99,553 lucene-highlighter-4.0.0.jar 10/06/2012 03:01 AM37,148 lucene-memory-4.0.0.jar 10/06/2012 03:01 AM50,820 lucene-misc-4.0.0.jar 10/06/2012 03:01 AM 194,653 lucene-queries-4.0.0.jar 10/06/2012 03:01 AM 384,953 lucene-queryparser-4.0.0.jar 10/06/2012 03:02 AM67,642 lucene-spatial-4.0.0.jar 10/06/2012 03:02 AM 120,182 lucene-suggest-4.0.0.jar 10/31/2011 06:45 PM25,962 slf4j-api-1.6.4.jar 10/31/2011 06:46 PM 8,887 slf4j-jdk14-1.6.4.jar 08/31/2012 12:51 AM69,290 spatial4j-0.3.jar 09/03/2008 02:33 AM 520,969 wstx-asl-3.2.7.jar 08/03/2012 02:31 AM 608,239 zookeeper-3.3.6.jar 30 File(s) 15,105,625 bytes 2 Dir(s) 51,755,294,720 bytes free C:\Users\jeeva\for-nick>java -classpath .;solr-lib-cli/* org.apache.solr.cloud.Z kCLI -cmd upconfig -zkhost 10.0.0.2:2181 -confdir config-files -confname nicksol rconfig Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:zookeeper.version=3.3.6-1366786, built on 07/29/2012 06 :22 GMT Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:host.name=10.211.55.9 Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.version=1.6.0_35 Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.vendor=Sun Microsystems Inc. Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.home=C:\Program Files\Java\jre6 Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.class.path=.;solr-lib-cli/apache-solr-core-4.0.0.j ar;solr-lib-cli/apache-solr-solrj-4.0.0.jar;solr-lib-cli/commons-cli-1.2.jar;sol r-lib-cli/commons-codec-1.7.jar;solr-lib-cli/commons-fileupload-1.2.1.jar;solr-l ib-cli/commons-io-2.1.jar;solr-lib-cli/commons-lang-2.6.jar;solr-lib-cli/guava-r 05.jar;solr-lib-cli/httpclient-4.1.3.jar;solr-lib-cli/httpcore-4.1.4.jar;solr-li b-cli/httpmime-4.1.3.jar;solr-lib-cli/jcl-over-slf4j-1.6.4.jar;solr-lib-cli/log4 j-over-slf4j-1.6.4.jar;solr-lib-cli/lucene-analyzers-common-4.0.0.jar;solr-lib-c li/lucene-analyzers-kuromoji-4.0.0.jar;solr-lib-cli/lucene-analyzers-phonetic-4. 0.0.jar;solr-lib-cli/lucene-core-4.0.0.jar;solr-lib-cli/lucene-grouping-4.0.0.ja r;solr-lib-cli/lucene-highlighter-4.0.0.jar;solr-lib-cli/lucene-memory-4.0.0.jar ;solr-lib-cli/lucene-misc-4.0.0.jar;solr-lib-cli/lucene-queries-4.0.0.jar;solr-l ib-cli/lucene-queryparser-4.0.0.jar;solr-lib-cli/lucene-spatial-4.0.0.jar;solr-l ib-cli/lucene-suggest-4.0.0.jar;solr-lib-cli/slf4j-api-1.6.4.jar;solr-lib-cli/sl f4j-jdk14-1.6.4.jar;solr-lib-cli/spatial4j-0.3.jar;solr-lib-cli/wstx-asl-3.2.7.j ar;solr-lib-cli/zookeeper-3.3.6.jar Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.library.path=C:\Windows\system32;C:\Windows\Sun\Ja va\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Parallels\Parallels Tools \Applications;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows \System32\WindowsPowerShell\v1.0\;. Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.io.tmpdir=C:\Users\jeeva\AppData\Local\Temp\ Nov 17, 2012 2:08:14 AM org.apache.zookeeper.Environment logEnv INFO: Client environment:java.
Re: zkcli issues
Still looks like a classpath issue to me then. If that didn't help, something is still off. Either the war has not been exploded yet, your classpath entries point to the wrong places, or the classpath is not being specified right. Those would be my guesses. Given you are using the out of the box scripts and it should be setup to look at the right places and have a solid cp entry (*should*), my first guess would be that the war is not exploded yet. You have to manually unzip or start and stop solr. This logic could probably be added to those scripts (unzip it), but it's annoying to have any logic in them since everything has to be mirrored in bat and sh. - Mark On Nov 16, 2012, at 11:18 AM, Nick Chase wrote: > I agree that it *shouldn't* be OS specific. :) Anyway, thanks for the > suggestion, but that's not it. I get the same error with the script right > out of the box: > > Error: Could not find or load main class > C:\sw\apache-solr-4.0.0\example\cloud-scripts\..\solr-webapp\webapp\WEB-INF\lib\apache-solr-solrj-4.0.0.jar > > And anyway, it's a weird error, referencing a jar as a class, isn't it? > Start up a JIRA? > > - Nick > > On 11/16/2012 10:42 AM, Mark Miller wrote: >> I *think* I tested the script on windows once way back. >> >> Anyway, the code itself should not be OS specific. >> >> One thing you might want to check if you are copying unix cmd line >> stuff - I think windows separates classpath entries with ; rather than >> : - so you likely to need to change that. You'd think java could have >> been smart enough to accept either/or at worst, but meh. >> >> For example: >> .:/Users/jeeva/dc-1/solr-cli-lib/* >> should be >> .;/Users/jeeva/dc-1/solr-cli-lib/* >> >> - Mark >> >> On Thu, Nov 15, 2012 at 8:53 PM, Nick Chase wrote: >>> Unfortunately, this doesn't seem to solve the issue; now I'm beginning to >>> wonder if maybe it's because I'm on Windows. Has anyone successfully run >>> ZkCLI on Windows? >>> >>> Nick >>> >>> >>> On 11/12/2012 2:27 AM, Jeevanandam Madanagopal wrote: Nick - Sorry, embedded links are not shown in previous email. I'm mentioning below. > Handy SolrCloud ZkCLI Commands > (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands) > Uploading Solr Configuration into ZooKeeper ensemble > (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper) Cheers, Jeeva On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal wrote: > Nick - > > I believe you're experiencing a difficulties with SolrCloud CLI commands > for interacting ZooKeeper. > Please have a look on below links, it will provide you direction. > Handy SolrCloud ZkCLI Commands > Uploading Solr Configuration into ZooKeeper ensemble > > Cheers, > Jeeva > > On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: > >> On 11/11/2012 04:47 PM, Yonik Seeley wrote: >>> >>> On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase >>> wrote: So I'm trying to use ZkCLI without success. I DID start and stop Solr in non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. However, now it's NOT finding SolrJ. >> >> >>
Re: zkcli issues
I agree that it *shouldn't* be OS specific. :) Anyway, thanks for the suggestion, but that's not it. I get the same error with the script right out of the box: Error: Could not find or load main class C:\sw\apache-solr-4.0.0\example\cloud-scripts\..\solr-webapp\webapp\WEB-INF\lib\apache-solr-solrj-4.0.0.jar And anyway, it's a weird error, referencing a jar as a class, isn't it? Start up a JIRA? - Nick On 11/16/2012 10:42 AM, Mark Miller wrote: I *think* I tested the script on windows once way back. Anyway, the code itself should not be OS specific. One thing you might want to check if you are copying unix cmd line stuff - I think windows separates classpath entries with ; rather than : - so you likely to need to change that. You'd think java could have been smart enough to accept either/or at worst, but meh. For example: .:/Users/jeeva/dc-1/solr-cli-lib/* should be .;/Users/jeeva/dc-1/solr-cli-lib/* - Mark On Thu, Nov 15, 2012 at 8:53 PM, Nick Chase wrote: Unfortunately, this doesn't seem to solve the issue; now I'm beginning to wonder if maybe it's because I'm on Windows. Has anyone successfully run ZkCLI on Windows? Nick On 11/12/2012 2:27 AM, Jeevanandam Madanagopal wrote: Nick - Sorry, embedded links are not shown in previous email. I'm mentioning below. Handy SolrCloud ZkCLI Commands (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands) Uploading Solr Configuration into ZooKeeper ensemble (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper) Cheers, Jeeva On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal wrote: Nick - I believe you're experiencing a difficulties with SolrCloud CLI commands for interacting ZooKeeper. Please have a look on below links, it will provide you direction. Handy SolrCloud ZkCLI Commands Uploading Solr Configuration into ZooKeeper ensemble Cheers, Jeeva On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: On 11/11/2012 04:47 PM, Yonik Seeley wrote: On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: So I'm trying to use ZkCLI without success. I DID start and stop Solr in non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. However, now it's NOT finding SolrJ.
Re: zkcli issues
I *think* I tested the script on windows once way back. Anyway, the code itself should not be OS specific. One thing you might want to check if you are copying unix cmd line stuff - I think windows separates classpath entries with ; rather than : - so you likely to need to change that. You'd think java could have been smart enough to accept either/or at worst, but meh. For example: .:/Users/jeeva/dc-1/solr-cli-lib/* should be .;/Users/jeeva/dc-1/solr-cli-lib/* - Mark On Thu, Nov 15, 2012 at 8:53 PM, Nick Chase wrote: > Unfortunately, this doesn't seem to solve the issue; now I'm beginning to > wonder if maybe it's because I'm on Windows. Has anyone successfully run > ZkCLI on Windows? > > Nick > > > On 11/12/2012 2:27 AM, Jeevanandam Madanagopal wrote: >> >> Nick - Sorry, embedded links are not shown in previous email. I'm >> mentioning below. >> >>> Handy SolrCloud ZkCLI Commands >>> (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands) >> >> >>> Uploading Solr Configuration into ZooKeeper ensemble >>> (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper) >> >> >> >> Cheers, >> Jeeva >> >> >> On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal >> wrote: >> >>> Nick - >>> >>> I believe you're experiencing a difficulties with SolrCloud CLI commands >>> for interacting ZooKeeper. >>> Please have a look on below links, it will provide you direction. >>> Handy SolrCloud ZkCLI Commands >>> Uploading Solr Configuration into ZooKeeper ensemble >>> >>> Cheers, >>> Jeeva >>> >>> On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: >>> On 11/11/2012 04:47 PM, Yonik Seeley wrote: > > On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase > wrote: >> >> So I'm trying to use ZkCLI without success. I DID start and stop Solr >> in >> non-cloud mode, so everything is extracted and it IS finding >> zookeeper*.jar. >> However, now it's NOT finding SolrJ. -- - Mark
Re: zkcli issues
Unfortunately, this doesn't seem to solve the issue; now I'm beginning to wonder if maybe it's because I'm on Windows. Has anyone successfully run ZkCLI on Windows? Nick On 11/12/2012 2:27 AM, Jeevanandam Madanagopal wrote: Nick - Sorry, embedded links are not shown in previous email. I'm mentioning below. Handy SolrCloud ZkCLI Commands (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands) Uploading Solr Configuration into ZooKeeper ensemble (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper) Cheers, Jeeva On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal wrote: Nick - I believe you're experiencing a difficulties with SolrCloud CLI commands for interacting ZooKeeper. Please have a look on below links, it will provide you direction. Handy SolrCloud ZkCLI Commands Uploading Solr Configuration into ZooKeeper ensemble Cheers, Jeeva On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: On 11/11/2012 04:47 PM, Yonik Seeley wrote: On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: So I'm trying to use ZkCLI without success. I DID start and stop Solr in non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. However, now it's NOT finding SolrJ.
Re: zkcli issues
Nick - Sorry, embedded links are not shown in previous email. I'm mentioning below. > Handy SolrCloud ZkCLI Commands > (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands) > Uploading Solr Configuration into ZooKeeper ensemble > (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper) Cheers, Jeeva On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal wrote: > Nick - > > I believe you're experiencing a difficulties with SolrCloud CLI commands for > interacting ZooKeeper. > Please have a look on below links, it will provide you direction. > Handy SolrCloud ZkCLI Commands > Uploading Solr Configuration into ZooKeeper ensemble > > Cheers, > Jeeva > > On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: > >> On 11/11/2012 04:47 PM, Yonik Seeley wrote: >>> On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: So I'm trying to use ZkCLI without success. I DID start and stop Solr in non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. However, now it's NOT finding SolrJ. >>> Not sure about your specific problem in this case, but I chatted with >>> Mark about this while at ApacheCon... it seems like we should be able >>> to explode the WAR ourselves if necessary, eliminating the need to >>> start Solr first. Just throwing it out there before I forgot about it >>> ;-) >>> >>> -Yonik >>> http://lucidworks.com >> >> I guess the tricky part might be knowing where to extract it. We know how to >> do it for the default jetty setup, but that could be reconfigured or you >> could be using another web container. >> >> Kind of annoying. >> >> - Mark >> >
Re: zkcli issues
Nick - I believe you're experiencing a difficulties with SolrCloud CLI commands for interacting ZooKeeper. Please have a look on below links, it will provide you direction. Handy SolrCloud ZkCLI Commands Uploading Solr Configuration into ZooKeeper ensemble Cheers, Jeeva On Nov 12, 2012, at 4:45 AM, Mark Miller wrote: > On 11/11/2012 04:47 PM, Yonik Seeley wrote: >> On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: >>> So I'm trying to use ZkCLI without success. I DID start and stop Solr in >>> non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. >>> However, now it's NOT finding SolrJ. >> Not sure about your specific problem in this case, but I chatted with >> Mark about this while at ApacheCon... it seems like we should be able >> to explode the WAR ourselves if necessary, eliminating the need to >> start Solr first. Just throwing it out there before I forgot about it >> ;-) >> >> -Yonik >> http://lucidworks.com > > I guess the tricky part might be knowing where to extract it. We know how to > do it for the default jetty setup, but that could be reconfigured or you > could be using another web container. > > Kind of annoying. > > - Mark >
Re: zkcli issues
On 11/11/2012 04:47 PM, Yonik Seeley wrote: On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: So I'm trying to use ZkCLI without success. I DID start and stop Solr in non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. However, now it's NOT finding SolrJ. Not sure about your specific problem in this case, but I chatted with Mark about this while at ApacheCon... it seems like we should be able to explode the WAR ourselves if necessary, eliminating the need to start Solr first. Just throwing it out there before I forgot about it ;-) -Yonik http://lucidworks.com I guess the tricky part might be knowing where to extract it. We know how to do it for the default jetty setup, but that could be reconfigured or you could be using another web container. Kind of annoying. - Mark
Re: zkcli issues
On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase wrote: > So I'm trying to use ZkCLI without success. I DID start and stop Solr in > non-cloud mode, so everything is extracted and it IS finding zookeeper*.jar. > However, now it's NOT finding SolrJ. Not sure about your specific problem in this case, but I chatted with Mark about this while at ApacheCon... it seems like we should be able to explode the WAR ourselves if necessary, eliminating the need to start Solr first. Just throwing it out there before I forgot about it ;-) -Yonik http://lucidworks.com