Ok, so the issue was that I had only copied the cloud_dev, example and
dist directories and that¹s why some of the libraries were missing. I
copied the build, lib as well and got around the issue. Now, I am getting
this error when I run the script to start 6 nodes cluster.

INFO: makePath: /configs/conf1/velocity/jquery.autocomplete.js
Dec 21, 2011 7:24:49 PM org.apache.solr.common.cloud.SolrZkClient makePath
INFO: makePath: /configs/conf1/velocity/query.vm
Dec 21, 2011 7:24:49 PM org.apache.solr.common.cloud.SolrZkClient makePath
INFO: makePath: /configs/conf1/velocity/hit.vm
Dec 21, 2011 7:24:49 PM org.apache.zookeeper.server.ZooKeeperServerMain
runFromConfig
WARNING: Server interrupted
java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at java.lang.Thread.join(Thread.java:1186)
        at java.lang.Thread.join(Thread.java:1239)
        at
org.apache.zookeeper.server.NIOServerCnxnFactory.join(NIOServerCnxnFactory.
java:318)
        at
org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServ
erMain.java:113)
        at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:116)
--CLOUD--[ec2-user@ cloud-dev]$ ps -ef | grep zk
ec2-user 23796     1 21 19:24 pts/0    00:00:05 java -DzkRun -DnumShards=2
-DSTOP.PORT=7983 -DSTOP.KEY=key -jar start.jar
ec2-user 23797     1 18 19:24 pts/0    00:00:04 java -Djetty.port=7574
-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6574 -DSTOP.KEY=key -jar
start.jar
ec2-user 23798     1 19 19:24 pts/0    00:00:04 java -Djetty.port=7575
-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6575 -DSTOP.KEY=key -jar
start.jar
ec2-user 23799     1 18 19:24 pts/0    00:00:04 java -Djetty.port=7576
-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6576 -DSTOP.KEY=key -jar
start.jar
ec2-user 23800     1 19 19:24 pts/0    00:00:04 java -Djetty.port=7577
-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6577 -DSTOP.KEY=key -jar
start.jar
ec2-user 23801     1 19 19:24 pts/0    00:00:04 java -Djetty.port=7578
-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6578 -DSTOP.KEY=key -jar
start.jar
ec2-user 23998 22962  0 19:25 pts/0    00:00:00 grep zk
--CLOUD--[ec2-user@ cloud-dev]$



Thanks!
Dipti

On 12/21/11 10:18 AM, "Dipti Srivastava" <dipti.srivast...@apollogrp.edu>
wrote:

>Hi Mark,
>I built the example and dist and ran the solrcloud.sh script. While
>running I get the following error... Is this ok? It appears that some of
>the instances got started though.
>
>--CLOUD--[ec2-user@ cloud_dev]$ ./solrcloud.sh
>./solrcloud.sh: line 16: ant: command not found
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/apache/solr/cloud/ZkController
>Caused by: java.lang.ClassNotFoundException:
>org.apache.solr.cloud.ZkController
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>Could not find the main class: org.apache.solr.cloud.ZkController.
>Program will exit.
>--CLOUD--[ec2-user@ cloud_dev]$ ls
>solrcloud.sh  stop.sh
>--CLOUD--[ec2-user@ cloud_dev]$ cd ..
>--CLOUD--[ec2-user@ solrcloud]$ ls
>cloud_dev  example  example2  example3  example4  example5  example6
>--CLOUD--[ec2-user@ solrcloud]$ ps -ef | grep solr
>ec2-user 22690 22452  0 18:12 pts/0    00:00:00 grep solr
>--CLOUD--[ec2-user@ solrcloud]$ ps -ef | grep jetty
>ec2-user 22521     1  4 18:11 pts/0    00:00:02 java -Djetty.port=7574
>-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6574 -DSTOP.KEY=key -jar
>start.jar
>ec2-user 22522     1  4 18:11 pts/0    00:00:02 java -Djetty.port=7575
>-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6575 -DSTOP.KEY=key -jar
>start.jar
>ec2-user 22523     1  4 18:11 pts/0    00:00:02 java -Djetty.port=7576
>-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6576 -DSTOP.KEY=key -jar
>start.jar
>ec2-user 22524     1  4 18:11 pts/0    00:00:02 java -Djetty.port=7577
>-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6577 -DSTOP.KEY=key -jar
>start.jar
>ec2-user 22525     1  4 18:11 pts/0    00:00:02 java -Djetty.port=7578
>-DzkHost=localhost:9983 -DnumShards=2 -DSTOP.PORT=6578 -DSTOP.KEY=key -jar
>start.jar
>ec2-user 22692 22452  0 18:12 pts/0    00:00:00 grep jetty
>
>Thanks!
>
>Dipti
>
>On 12/20/11 5:32 PM, "Mark Miller" <markrmil...@gmail.com> wrote:
>
>>You might find the solr/cloud-dev/solrcloud.sh script informative. From a
>>solrcloud branch checkout, you can run it and it will start up a 2 shard,
>>6 node cluster with zookeeper running on a single node. stop.sh will
>>shutdown the 6 nodes. Once you start up the nodes, you can start indexing
>>and searching on any of them, or use the CloudSolrServer solrj client. It
>>simply takes the ZooKeeper address and figures out the servers from there
>>(you do currently still have to pass distrib=true to make requests hit
>>the whole collection).
>>
>>There will be more help on getting started produced soon. Still some work
>>to finish up first.
>>
>>- Mark
>>
>>
>>On Dec 20, 2011, at 7:17 PM, Dipti Srivastava wrote:
>>
>>> Thanks for all responses. I got the code from the trunk. Now I will
>>>work
>>> through rest of the steps.
>>> Dipti
>>>
>>> On 12/20/11 1:58 PM, "Chris Hostetter" <hossman_luc...@fucit.org>
>>>wrote:
>>>
>>>>
>>>> : >> I am following the 2 shard example from the wiki page
>>>> : >> http://wiki.apache.org/solr/SolrCloud#SolrCloud-1
>>>>
>>>> Everything on that wiki should apply to trunk, as noted on the wiki
>>>>page
>>>> itself.
>>>>
>>>> the "solrcloud" branch people have mentioned is related to this
>>>>comment
>>>> from that wiki page...
>>>>
>>>>>> ...
>>>>>> That is what has been done so far on trunk.
>>>>>>
>>>>>> A second initiative has recently begun to finish the distributed
>>>>>> indexing side of SolrCloud. See
>>>>>> https://issues.apache.org/jira/browse/SOLR-2358
>>>>
>>>> ...and the sub issues linked to from there.
>>>>
>>>> Any time you are looking for a branch, you can find it in the list of
>>>> branches...
>>>>
>>>> https://svn.apache.org/repos/asf/lucene/dev/branches/
>>>> https://svn.apache.org/repos/asf/lucene/dev/branches/solrcloud/
>>>>
>>>>
>>>> -Hoss
>>>>
>>>
>>>
>>> This message is private and confidential. If you have received it in
>>>error, please notify the sender and remove it from your system.
>>>
>>>
>>
>>- Mark Miller
>>lucidimagination.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>This message is private and confidential. If you have received it in
>error, please notify the sender and remove it from your system.
>
>
>


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.


Reply via email to