Shawn Heisey-2 wrote
> On 10/26/2017 10:29 AM, Dan Caulfield wrote:
>> I'm creating a collection on a new cluster.  There are six new Solr nodes
>> using a HDP 2.6.2 cluster for storage.  Has anyone seen similar errors?
> <snip>
>> ERROR: Failed to create collection 'maxis_clickstream' due to:
>> {10.126.191.24:8983_solr=org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
>> from server at http://10.126.191.24:8983/solr: Error CREATEing SolrCore
>> 'maxis_clickstream_shard6_replica1': Unable to create core
>> [maxis_clickstream_shard6_replica1] Caused by: no segments* file found in
>> LockValidatingDirectoryWrapper(NRTCachingDirectory(BlockDirectory(HdfsDirectory@hdfs://edwbitstmil/apps/solr/data/maxis_clickstream/core_node4/data/index
> 
> This error looks like what happens when the index directory already
> exists but contains no files. This specific error log mentions the
> following location:
> 
> hdfs://edwbitstmil/apps/solr/data/maxis_clickstream/core_node4/data/index
> 
> If I'm right, then you'll need to rename or delete that index directory
> on your HDFS store in order for the core creation to work.  The log
> snippet you shared included this error on several index directories, so
> you will need to repeat the rename or delete on all of them that show
> the error.
> 
> If you can be absolutely certain that there is no data contained there
> that is actively being used, then I *think* you could take care of
> everything in one step by renaming the maxis_clickstream directory to
> something else so that Solr will recreate the entire directory
> structure.  I am not recommending *deleting* that directory, because I
> have no idea whether it might contain something you'll want to keep.
> 
> The underlying problem I'm describing happens at the Lucene layer, and
> Solr is unable to do anything about it.  In order for Lucene to create a
> new index, the index directory must not be there at all.  Deleting the
> contents of the index directory but leaving the directory will cause
> errors the next time Lucene tries to use that directory.
> 
> Thanks,
> Shawn

Thanks Shawn, 
I tried your recommended solution and delete the maxis_clickstream
directory.  I got the same error when trying to recreate the collection. 
Can you think of anything else to try?  




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to