lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susheel Kumar <susheel2...@gmail.com>
Subject Re: SolrCloud ... Unable to create core ... Caused by: Lock held by this virtual machine:...
Date Mon, 15 May 2017 14:31:12 GMT
Sorry, Thomas.  I am unable to download right now the solr 6.5.1 version.
What i would suggest is try to create shard on two different machines/run
two solr instances on different ports. There may be some issue with this
version.

Anyone insight with 6.5.1?

Thanks,
Susheel

On Mon, May 15, 2017 at 9:46 AM, Susheel Kumar <susheel2777@gmail.com>
wrote:

> Good test.  That tells something.  Let me also run same on my end.
>
> On Mon, May 15, 2017 at 9:33 AM, Thomas Porschberg <thomas@randspringer.de
> > wrote:
>
>> Hi,
>>
>> I get no error message and the shard is created when I use
>> numShards=1
>> in the url.
>>
>> http://localhost:8983/solr/admin/collections?action=CREATE&
>> name=karpfen&numShards=1&replicationFactor=1&maxShardsP
>> erNode=1&collection.configName=karpfen
>>  --> success
>>
>> http://localhost:8983/solr/admin/collections?action=CREATE&
>> name=karpfen&numShards=2&replicationFactor=1&maxShardsP
>> erNode=2&collection.configName=karpfen
>> --> error
>>
>> Thomas
>>
>>
>> > Susheel Kumar <susheel2777@gmail.com> hat am 15. Mai 2017 um 14:36
>> geschrieben:
>> >
>> >
>> > what happens if you create just one shard.  Just use this command
>> directly
>> > on browser or thru curl.  Empty the contents from
>> >  /home/pberg/solr_new2/solr-6.5.1/server/data before running
>> >
>> > http://localhost:8983/solr/admin/collections?action=
>> > CREATE&name=karpfen&numShards=1&replicationFactor=1&
>> > maxShardsPerNode=1&collection.configName=karpfen
>> > <http://localhost:8983/solr/admin/collections?action=CREATE&
>> name=karpfen&numShards=2&replicationFactor=1&maxShardsP
>> erNode=2&collection.configName=karpfen>
>> >
>> > On Mon, May 15, 2017 at 2:14 AM, Thomas Porschberg <
>> thomas@randspringer.de>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I have problems to setup solrcloud on one node with 2 shards. What I
>> did:
>> > >
>> > > 1. Started a external zookeeper
>> > > 2. Ensured that no solr process is running with 'bin/solr status'
>> > > 3. Posted a working conf directory from a non-cloud solr to zookeeper
>> > >    with
>> > >    'bin/solr zk upconfig -n karpfen -d /home/pberg/solr_new/solr-6.5.
>> 1/server/solr/tommy/conf
>> > > -z localhost:2181'
>> > >    --> no errors
>> > > 4. Started solr in cloud mode with
>> > >   'bin/solr -c -z localhost:2181'
>> > > 5. Tried to create a new collection with 2 shards with
>> > >    'bin/solr create -c karpfen -shards 2'
>> > >
>> > > The output is:
>> > >
>> > > Connecting to ZooKeeper at localhost:2181 ...
>> > > INFO  - 2017-05-12 18:52:22.807; org.apache.solr.client.solrj.i
>> mpl.ZkClientClusterStateProvider;
>> > > Cluster at localhost:2181 ready
>> > > Re-using existing configuration directory karpfen
>> > >
>> > > Creating new collection 'karpfen' using command:
>> > > http://localhost:8983/solr/admin/collections?action=
>> > > CREATE&name=karpfen&numShards=2&replicationFactor=1&
>> > > maxShardsPerNode=2&collection.configName=karpfen
>> > >
>> > >
>> > > ERROR: Failed to create collection 'karpfen' due to: {127.0.1.1:8983
>> > > _solr=org.apache.solr.client.solrj.impl.HttpSolrClient$Remot
>> eSolrException:Error
>> > > from server at http://127.0.1.1:8983/solr: Error CREATEing SolrCore
>> > > 'karpfen_shard2_replica1': Unable to create core
>> [karpfen_shard2_replica1]
>> > > Caused by: Lock held by this virtual machine:
>> /home/pberg/solr_new2/solr-6.
>> > > 5.1/server/data/ohrdruf_bestand/index/write.lock}
>> > >
>> > >
>> > > The conf directory I copied contains the following files:
>> > > currency.xml                 elevate.xml  protwords.txt
>>  stopwords.txt
>> > > dataimport-cobt2.properties  lang         schema.xml      synonyms.txt
>> > > dataimport.xml               params.json  solrconfig.xml
>> > >
>> > > "lang" is a directory.
>> > >
>> > > Are my steps wrong? Did I miss something important?
>> > >
>> > > Any help is really welcome.
>> > >
>> > > Thomas
>> > >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message