Hi, I think I did one mistake when I started in step 3 solr without zookeeper-option. I did: bin/solr start -c but I think it should: bin/solr start -c -z localhost:2181
The problem is now when repeat step 4 (creating a collection) I get the following error: //I uploaded my cat-config again to zookeeper with // bin/solr zk upconfig -n cat -d $HOME/solr-6.5.1/server/solr/tommy/conf -z // localhost:2181 bin/solr create -c cat -shards 2 Connecting to ZooKeeper at localhost:2181 ... INFO - 2017-05-12 16:38:06.593; org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider; Cluster at localhost:2181 ready Re-using existing configuration directory cat Creating new collection 'cat' using command: http://localhost:8983/solr/admin/collections?action=CREATE&name=cat&numShards=2&replicationFactor=1&maxShardsPerNode=2&collection.configName=cat ERROR: Failed to create collection 'cat' due to: {127.0.1.1:8983_solr=org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://127.0.1.1:8983/solr: Error CREATEing SolrCore 'cat_shard1_replica1': Unable to create core [cat_shard1_replica1] Caused by: Lock held by this virtual machine: /home/pberg/solr_new2/solr-6.5.1/server/data/bestand/index/write.lock} This "data/bestand" is configured in solrconfig.xml (from tommy standalone) with <dataDir>data/bestand</dataDir> I tried to create the directory /home/pberg/solr_new2/solr-6.5.1/server/data/bestand/index/ manually , but nothing changed. What is the reason for this CREATE-error? Thomas > ANNAMANENI RAVEENDRA <a.raveendra...@gmail.com> hat am 12. Mai 2017 um 15:54 > geschrieben: > > > Hi , > > If there is a request handler configured in solrconfig.xml and update the > Conf in zookeeper it should show up > > If already did it try reloading configuration > > Thanks > Ravi > > > On Fri, 12 May 2017 at 9:46 AM, Thomas Porschberg <tho...@randspringer.de> > wrote: > > > > > This is another problem I see: With my non-cloud core I have a > > conf-directory where I have dataimport.xml, schema.xml and solrconfig.xml. > > > > I think these 3 files are enough to import my data from my relational > > database. > > > > Under example/cloud I could not find one of them. How to setup DIH for > > the solrcould? > > > > > > The entire configuration (what would normally be in the conf directory) > > > is in zookeeper when you're in cloud mode, not in the core directories. > > > You must upload a directory containing the same files that would > > > normally be in a conf directory as a named configset to zookeeper before > > > you try to create your collection. This is something that the "bin/solr > > > create" command does for you in cloud mode, typically using one of the > > > configsets included on the disk as a source. > > > > > > > > https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files > > > > > Ok, thank you. I did the following steps. > > > > 1. Started an external zookeeper > > 2. Copied a conf-directory to zookeeper: > > bin/solr zk upconfig -n books -d $HOME/solr-6.5.1/server/solr/tommy/conf > > -z localhost:2181 > > // This is a conf-directory from a standalone solr when dataimport was > > working! > > --> Connecting to ZooKeeper at localhost:2181 ... > > Uploading <....> for config books to ZooKeeper at localhost:2181 > > // I think no errors, but how can I check it in zookeeper? I found no > > files solrconfig.xml ... > > in the zookeeper directories (installation dir and data dir) > > 3. Started solr: > > bin/solr start -c > > 4. Created a books collection with 2 shards > > bin/solr create -c books -shards 2 > > > > Result: I see in the web-ui my books collection with the 2 shards. No > > errors so far. > > However, the Dataimport-entry says: > > "Sorry, no dataimport-handler defined!" > > > > What could be the reason? > > > > Thomas > >