Unable to start solr 4.8
t org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: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(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java: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.(SolrCore.java:858) at org.apache.solr.core.SolrCore.(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:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ... 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.(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.
Re: Unable to start solr 4.8
Thank you so much Markus , I have removed the contents from Index , now its working but one of the node went Recovering state, the log says, please help this to make to live. "â Unable to get file names for indexCommit generation: 2" 12118803 [qtp1490747277-11] INFO org.apache.solr.core.SolrCore â [collection1] webapp=/solr path=/replication params={command=filelist&qt=/replication&wt=javabin&generation=2&version=2} status=0 QTime=3 12182820 [main-EventThread] INFO org.apache.solr.cloud.DistributedQueue â LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type NodeChildrenChanged 12182824 [Thread-13] INFO org.apache.solr.common.cloud.ZkStateReader â Updating cloud state from ZooKeeper... 12182827 [qtp1490747277-12] INFO org.apache.solr.handler.admin.CoreAdminHandler â Going to wait for coreNodeName: 10.137.12.247:7080_solr_collection1, state: recovering, checkLive: true, onlyIfLeader: true 12182828 [Thread-13] INFO org.apache.solr.cloud.Overseer â Update state numShards=2 message={ "operation":"state", "state":"recovering", "base_url":"http://10.***.***.29:7080/solr";, "core":"collection1", "roles":null, "node_name":"10.***.***.29:7080_solr", "shard":"shard1", "collection":"collection1", "numShards":"2", "core_node_name":"10.***.***.29:7080_solr_collection1"} 12182834 [main-EventThread] INFO org.apache.solr.cloud.DistributedQueue â LatchChildWatcher fired on path: /overseer/queue state: SyncConnected type NodeChildrenChanged 12182839 [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: 6) 12182853 [qtp1490747277-12] INFO org.apache.solr.common.cloud.ZkStateReader â Updating cloud state from ZooKeeper... 12182856 [qtp1490747277-12] INFO org.apache.solr.handler.admin.CoreAdminHandler â Will wait a max of 183 seconds to see collection1 (shard1 of collection1) have state: recovering 12182856 [qtp1490747277-12] INFO org.apache.solr.handler.admin.CoreAdminHandler â Waited coreNodeName: 10.137.12.247:7080_solr_collection1, state: recovering, checkLive: true, onlyIfLeader: true for: 0 seconds. 12182858 [qtp1490747277-12] INFO org.apache.solr.servlet.SolrDispatchFilter â [admin] webapp=null path=/admin/cores params={coreNodeName=10.137.12.247:7080_solr_collection1&onlyIfLeaderActive=true&state=recovering&nodeName=10.137.12.247:7080_solr&action=PREPRECOVERY&checkLive=true&core=collection1&wt=javabin&onlyIfLeader=true&version=2} status=0 QTime=31 12184865 [qtp1490747277-19] INFO org.apache.solr.update.UpdateHandler â start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 12184865 [qtp1490747277-19] INFO org.apache.solr.update.UpdateHandler â No uncommitted changes. Skipping IW.commit. 12184867 [qtp1490747277-19] INFO org.apache.solr.update.UpdateHandler â end_commit_flush 12184867 [qtp1490747277-19] INFO org.apache.solr.update.processor.LogUpdateProcessor â [collection1] webapp=/solr path=/update params={waitSearcher=true&openSearcher=false&commit=true&wt=javabin&commit_end_point=true&version=2&softCommit=false} {commit=} 0 3 12184873 [qtp1490747277-18] INFO org.apache.solr.core.SolrCore â [collection1] webapp=/solr path=/replication params={command=indexversion&qt=/replication&wt=javabin&version=2} status=0 QTime=1 12184878 [qtp1490747277-18] ERROR org.apache.solr.handler.ReplicationHandler â Unable to get file names for indexCommit generation: 2 java.io.FileNotFoundException: _0.fnm at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:260) at org.apache.lucene.store.NRTCachingDirectory.fileLength(NRTCachingDirectory.java:177) at org.apache.solr.handler.ReplicationHandler.getFileList(ReplicationHandler.java:421) at org.apache.solr.handler.ReplicationHandler.handleRequestBody(ReplicationHandler.java:209) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) Thanks , ATP -- View this message in context: http://lucene.472066.n3.nabble.com/Unable-to-start-solr-4-8-tp4142810p4142816.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Unable to start solr 4.8
Hi Markus , It been recoverd automatically after several attempts , once again thanks a lot for your help. Now all the nodes are became live. [zk: Hadoop-Main:7001(CONNECTED) 0] get /clusterstate.json {"collection1":{ "shards":{ "shard1":{ "range":"8000-", "state":"active", "replicas":{ "core_node1":{ "state":"active", "base_url":"http://10.***.***.28:8983/solr";, "core":"collection1", "node_name":"10.***.***.28:8983_solr", "leader":"true"}, "core_node3":{ "state":"active", "base_url":"http://10.***.***.30:8983/solr";, "core":"collection1", "node_name":"10.***.***.30:8983_solr"}, "10.***.***.28:7070_solr_collection1":{ "state":"active", "base_url":"http://10.***.***.28:7070/solr";, "core":"collection1", "node_name":"10.***.***.28:7070_solr"}, "10.***.***.29:7080_solr_collection1":{ "state":"active", "base_url":"http://10.***.***.29:7080/solr";, "core":"collection1", "node_name":"10.***.***.29:7080_solr"}}}, "shard2":{ "range":"0-7fff", "state":"active", "replicas":{ "core_node2":{ "state":"active", "base_url":"http://10.***.***.29:8983/solr";, "core":"collection1", "node_name":"10.***.***.29:8983_solr", "leader":"true"}, "10.***.***.30:7090_solr_collection1":{ "state":"active", "base_url":"http://10.***.***.30:7090/solr";, "core":"collection1", "node_name":"10.***.***.30:7090_solr", "maxShardsPerNode":"1", "router":{"name":"compositeId"}, "replicationFactor":"1", "autoCreated":"true"}} Regards, ATP. -- View this message in context: http://lucene.472066.n3.nabble.com/Unable-to-start-solr-4-8-tp4142810p4142822.html Sent from the Solr - User mailing list archive at Nabble.com.
unable to start DataimportHandler
Hi Experts, I have configured solrcloud4.8 with zookeeper and tomcat , this is 3 node cluster configuration, we have a requirement that , searching the table data which is stored in hbase tables, for this i have configured below setup, 1. Edit the solrconfig.xml and added contriblib and dataimporthandler libs. 2. created new data-config.xml file with hbase connectivity and table details in ./collection1/conf directory. 3. added the request handler in solrconfig.xml file. 4. restarted the tomcat serlet container, but its not reflecting in solr, i tried datahandler/full import but it say sorry no dataimporthandler defined " 1. can you please guide , is there any other steps required to define the dataimporthandler for hbase.? 2. also i have done the steps in all the 3 nodes, stil its not taking. plz help. Thanks in Advance Annamalai, -- View this message in context: http://lucene.472066.n3.nabble.com/unable-to-start-DataimportHandler-tp4142989.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Unable to start solr 4.8
(ThreadPoolExecutor.java:615) ... 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.(SolrCore.java:772) ... 10 more ,code=500} We dont have any indexed data on this , please guide us, is there anything needs to be removed to bring up this? Thanks, ATP -- View this message in context: http://lucene.472066.n3.nabble.com/Unable-to-start-solr-4-8-tp4142810p4143370.html Sent from the Solr - User mailing list archive at Nabble.com.
Solrcloud- index lock
Hi , we have configured three node solrcloud., with zookeeper , and tomcat . but when we start solr, throwing error in one of the node, we configured dataimporthandler as well, SolrCore 'collection1' is not available due to init failure: Index locked for write for core collection1 not yet started the indexing , its a fresh configuration, tried the below resolution but no luck, removed lock files from from all the nodes ../collection1/data directory, then restarted , also tried with removing data folder aswell , but continued throwing this lock error in one of the node, last couple of days we struggling this , please help to resolve this. ERROR - 2014-06-23 19:35:34.328; org.apache.solr.common.SolrException; Error while trying to recover. core=collection1:java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: SolrCore 'collection1' is not available due to init failure: Index locked for write for core collection1 at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.solr.cloud.RecoveryStrategy.sendPrepRecoveryCmd(RecoveryStrategy.java:611) at org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:370) at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:235) Caused by: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: SolrCore 'collection1' is not available due to init failure: Index locked for write for core collection1 at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:554) at org.apache.solr.client.solrj.impl.HttpSolrServer$1.call(HttpSolrServer.java:245) at org.apache.solr.client.solrj.impl.HttpSolrServer$1.call(HttpSolrServer.java:241) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) ERROR - 2014-06-23 19:35:34.328; org.apache.solr.cloud.RecoveryStrategy; Recovery failed - trying again... (0) core=collection1 INFO - 2014-06-23 19:35:34.328; org.apache.solr.cloud.RecoveryStrategy; Wait 2.0 seconds before trying to recover again (1) INFO - 2014-06-23 19:35:36.329; org.apache.solr.cloud.ZkController; publishing core=collection1 state=recovering collection=collection1 INFO - 2014-06-23 19:35:36.329; org.apache.solr.cloud.ZkController; numShards not found on descriptor - reading it from system property Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Solrcloud-index-lock-tp4143446.html Sent from the Solr - User mailing list archive at Nabble.com.
RequestHandler init failure
Hi, I'm getting below error while trying to access solrcloud , i tried with , added these two in to solrconfig.xml file actual location is /opt/apps/prod/solr/dist here all the required below jars are available solr-4.8.1.war solr-map-reduce-4.8.1.jar solr-analysis-extras-4.8.1.jar solr-morphlines-cell-4.8.1.jar solr-cell-4.8.1.jar solr-morphlines-core-4.8.1.jar solr-clustering-4.8.1.jarsolr-solrj-4.8.1.jar solr-core-4.8.1.jar solr-test-framework-4.8.1.jar solr-dataimporthandler-4.8.1.jar solr-uima-4.8.1.jar solr-dataimporthandler-extras-4.8.1.jar solr-velocity-4.8.1.jar solrj-libtest-framework solr-langid-4.8.1.jar but stil getting same issue , any help please HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: RequestHandler init failure,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: RequestHandler init failure 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(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: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(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: RequestHandler init failure at org.apache.solr.core.SolrCore.(SolrCore.java:858) at org.apache.solr.core.SolrCore.(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:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ... 1 more Caused by: org.apache.solr.common.SolrException: RequestHandler init failure at org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:167) at org.apache.solr.core.SolrCore.(SolrCore.java:785) ... 10 more Caused by: org.apache.solr.common.SolrException: Error Instantiating Request Handler, solr.DataImportHandler failed to instantiate org.apache.solr.request.SolrRequestHandler at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:559) at org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:611) at org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:153) ... 11 more Caused by: java.lang.ClassCastException: class org.apache.solr.handler.dataimport.DataImportHandler at java.lang.Class.asSubclass(Class.java:3165) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:484) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:421) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:538) ... 13 more ,code=500} -- View this message in context: http://lucene.472066.n3.nabble.com/RequestHandler-init-failure-tp4143640.html Sent from the Solr - User mailing list archive at Nabble.com.
DIH on Solr
Hi experts, We have a requirement to import the data from hbase tables using solr, we have tried with help of Dataimporthandler, we couldn't find the configuration streps or document for dataimporthandler for HBASE, can anybody please share the steps to configure, we tried with basic configuration but while select full import its throwing error , please share the docs or links to configure DIH for hbase table. 6/24/2014 3:44:00 PM WARN ZKPropertiesWriter Could not read DIH properties from /configs/collection1/dataimport.properties :class org.apache.zookeeper.KeeperException$NoNodeException 6/24/2014 3:44:00 PM ERROR DataImporter Full Import failed:java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to load EntityProcessor implementation for entity:msg Processing Document # 1 Thanks in Advance -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-on-Solr-tp4143669.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: DIH on Solr
Thanks Ahmet, Walfgang , i have installed hbase-indexer on one the server but here also im unable to start the hbase indexer server. Error: Could not find or load main class com.ngdata.hbaseindexer.Main properly set the JAVA_HOME and INDEXER_HOME environmental variables. please guide Thanks. ATP -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-on-Solr-tp4143669p4143955.html Sent from the Solr - User mailing list archive at Nabble.com.