Hi - remove the lock file in your solr/<collection_name>/data/index.*/ 
directory.

Markus

On Thursday, June 19, 2014 04:10:51 AM atp wrote:
> Hi experts,
> 
> i have cnfigured solrcloud, on three machines , zookeeper started with no
> errors, tomcat log also no errors , solr log alos no errors reported but all
> the tomcat configured solr clusterstate shows as 'down'
> 
> 
> 
> ,8870931 [Thread-13] INFO  org.apache.solr.common.cloud.ZkStateReader  â
> Updating cloud state from ZooKeeper...
> 8870934 [Thread-13] INFO  org.apache.solr.cloud.Overseer  â Update state
> numShards=2 message={
>   "operation":"state",
>   "state":"down",
>   "base_url":"http://10.***.***.28:7090/solr";,
>   "core":"collection1",
>   "roles":null,
>   "node_name":"10.***.***.28:7090_solr",
>   "shard":"shard2",
>   "collection":"collection1",
>   "numShards":"2",
>   "core_node_name":"10.***.***.28:7090_solr_collection1"}
> 8870939 [main-EventThread] INFO  org.apache.solr.cloud.DistributedQueue  â
> LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type
> NodeChildrenChanged
> 8870942 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â A cluster state change: WatchedEvent state:SyncConnected
> type:NodeDataChanged path:/clusterstate.json, has occurred - updating...
> (live nodes size: 5)
> 8919667 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â Updating live nodes... (4)
> 8933777 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â Updating live nodes... (3)
> 8965906 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â Updating live nodes... (4)
> 8965994 [main-EventThread] INFO  org.apache.solr.cloud.DistributedQueue  â
> LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type
> NodeChildrenChanged
> 8965997 [Thread-13] INFO  org.apache.solr.common.cloud.ZkStateReader  â
> Updating cloud state from ZooKeeper...
> 8966000 [Thread-13] INFO  org.apache.solr.cloud.Overseer  â Update state
> numShards=2 message={
>   "operation":"state",
>   "state":"down",
>   "base_url":"http://10.***.***.29:7070/solr";,
>   "core":"collection1",
>   "roles":null,
>   "node_name":"10.***.***.29:7070_solr",
>   "shard":"shard1",
>   "collection":"collection1",
>   "numShards":"2",
>   "core_node_name":"110.***.***.29:7070_solr_collection1"}
> 8966006 [main-EventThread] INFO  org.apache.solr.cloud.DistributedQueue  â
> LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type
> NodeChildrenChanged
> 8966008 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â A cluster state change: WatchedEvent state:SyncConnected
> type:NodeDataChanged path:/clusterstate.json, has occurred - updating...
> (live nodes size: 4)
> 8986466 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â Updating live nodes... (5)
> 8986648 [main-EventThread] INFO  org.apache.solr.cloud.DistributedQueue  â
> LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type
> NodeChildrenChanged
> 8986652 [Thread-13] INFO  org.apache.solr.common.cloud.ZkStateReader  â
> Updating cloud state from ZooKeeper...
> 8986654 [Thread-13] INFO  org.apache.solr.cloud.Overseer  â Update state
> numShards=2 message={
>   "operation":"state",
>   "state":"down",
>   "base_url":"http://10.***.***.30:7080/solr";,
>   "core":"collection1",
>   "roles":null,
>   "node_name":"10.***.***.30:7080_solr",
>   "shard":"shard1",
>   "collection":"collection1",
>   "numShards":"2",
>   "core_node_name":"10.***.***.30:7080_solr_collection1"}
> 8986661 [main-EventThread] INFO  org.apache.solr.cloud.DistributedQueue  â
> LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type
> NodeChildrenChanged
> 8986666 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â A cluster state change: WatchedEvent state:SyncConnected
> type:NodeDataChanged path:/clusterstate.json, has occurred - updating...
> (live nodes size: 5)
> 9008407 [main-EventThread] INFO  org.apache.solr.common.cloud.ZkStateReader
> â Updating live nodes... (6)
> 
> 
> 
> when i browse the 28,29 and 30th solr url , its throwing error like,
> 
> 
> HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init
> failure: Index locked for write for core
> collection1,trace=org.apache.solr.common.SolrException: SolrCore
> 'collection1' is not available due to init failure: Index locked for write
> for core collection1 at
> org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:753) at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:
> 347) at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:
> 207) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:241) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:208) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:220) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:122) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171
> ) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
> ) at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :116) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
> ssor.java:1040) at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
> tProtocol.java:607) at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
> 316) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
> 45) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
> 15) at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.ja
> va:61) at java.lang.Thread.run(Thread.java:745) Caused by:
> org.apache.solr.common.SolrException: Index locked for write for core
> collection1 at org.apache.solr.core.SolrCore.<init>(SolrCore.java:858) at
> org.apache.solr.core.SolrCore.<init>(SolrCore.java:641) at
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:556) at
> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261) at
> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253) at
> java.util.concurrent.FutureTask.run(FutureTask.java:262) at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at
> java.util.concurrent.FutureTask.run(FutureTask.java:262) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
> 45) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
> 15) ... 1 more Caused by: org.apache.lucene.store.LockObtainFailedException:
> Index locked for write for core collection1 at
> org.apache.solr.core.SolrCore.initIndex(SolrCore.java:503) at
> org.apache.solr.core.SolrCore.<init>(SolrCore.java:772) ... 10 more
> ,code=500}
> 
> Please help on this to resolve?
> 
> Thanks in Advance
> ATP
> 
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Unable-to-start-solr-4-8-tp4142810.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to