Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

no segments* file found in NRTCachingDirectory(

no segments* file found in NRTCachingDirectory(

New Contributor



I am getting the below error when I try to create the solr index.

Whenever I try to create any index, I am getting the same thing.


[cloudera@quickstart ~]$ solrctl collection --create TWITTER_FRIENDS
Error: A call to SolrCloud WEB APIs failed: HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 27 May 2015 15:38:44 GMT

<?xml version="1.0" encoding="UTF-8"?>


<lst name="responseHeader">
<int name="status">
<int name="QTime">
<lst name="failure">
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'TWITTER_FRIENDS_shard1_replica1': Unable to create core: TWITTER_FRIENDS_shard1_replica1 Caused by: no segments* file found in NRTCachingDirectory(; maxCacheMB=192.0 maxMergeSizeMB=16.0): files: []</str>



Re: no segments* file found in NRTCachingDirectory(

Cloudera Employee

Hello - did you check the logs for any interesting exceptions?


This can happen in some cases when you end up in a situation where the index directory already exists but is empty (logs might help tell why that might have occured).

If you remove the empty index directory from hdfs and try again it should work. Or try a new creating the collection with a new collection name.


- Mark