# Red status after putting data

**URL:** <https://discuss.elastic.co/t/red-status-after-putting-data/36947>\
**Category:** Elasticsearch\
**Created:** [December 11, 2015, 7:18am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947 "2015-12-11T07:18:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stana](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@stana](https://discuss.elastic.co/u/stana)\
**Post date:** [December 11, 2015, 7:18am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/1 "2015-12-11T07:18:24Z")

</div>

Hi guys,

I started up Elasticsearch 2.1 successfully,and setting path.data to the folder which mount on hadoop through nfs.

When I excute 'curl -XGET '[http://server-a1:9200/\_cluster/health?level=indices&pretty=true](http://server-a1:9200/_cluster/health?level=indices&pretty=true)' ',and it shows something like

{  
"cluster\_name" : "Elasticsearch-YARN-AA",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 100.0,  
"indices" : { }  
}

but when I excute 'curl -XPUT '[http://server-a1:9200/test1/user/stana](http://server-a1:9200/test1/user/stana)' -d '{"name":"stana"}' ', it shows error message:

[2015-12-11 14:42:58,469][INFO][http] [esnode-server-a1] publish\_address {192.168.1.221:9200}, bound\_addresses {192.168.1.221:9200}, {[fe80::ec4:7aff:fe42:3c31]:9200}  
[2015-12-11 14:42:58,470][INFO][node] [esnode-server-a1] started  
[2015-12-11 14:42:58,922][INFO][gateway] [esnode-server-a1] recovered [0] indices into cluster\_state  
[2015-12-11 14:43:37,410][INFO][cluster.metadata] [esnode-server-a1] [test1] creating index, cause [auto(index api)], templates [], shards [5]/[1], mappings [user]  
[2015-12-11 14:43:39,692][WARN][indices.cluster] [esnode-server-a1] [[test1][1]] marking and sending shard failed due to [failed recovery]  
[test1][[test1][1]] IndexShardRecoveryException[failed recovery]; nested: TranslogException[failed to create new translog file]; nested: IOException[不適用的引數];  
at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:179)  
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)  
Caused by: [test1][[test1][1]] TranslogException[failed to create new translog file]; nested: IOException[不適用的引數];  
at org.elasticsearch.index.translog.Translog.createWriter(Translog.java:453)  
at org.elasticsearch.index.translog.Translog.(Translog.java:180)  
at org.elasticsearch.index.engine.InternalEngine.openTranslog(InternalEngine.java:209)  
at org.elasticsearch.index.engine.InternalEngine.(InternalEngine.java:152)  
at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:25)  
at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1408)  
at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1403)  
at org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:906)  
at org.elasticsearch.index.shard.IndexShard.performTranslogRecovery(IndexShard.java:883)  
at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:245)  
at org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)  
at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)  
... 3 more  
Caused by: java.io.IOException: 不適用的引數  
at sun.nio.ch.FileDispatcherImpl.force0(Native Method)  
at sun.nio.ch.FileDispatcherImpl.force(FileDispatcherImpl.java:76)  
at sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:376)  
at org.elasticsearch.index.translog.Checkpoint.write(Checkpoint.java:90)  
at org.elasticsearch.index.translog.TranslogWriter.writeCheckpoint(TranslogWriter.java:289)  
at org.elasticsearch.index.translog.TranslogWriter.create(TranslogWriter.java:80)  
at org.elasticsearch.index.translog.Translog.createWriter(Translog.java:451)  
... 14 more

and cluster status became red:

{  
"cluster\_name" : "Elasticsearch-YARN-AA",  
"status" : "red",  
"timed\_out" : false,  
"number\_of\_nodes" : 4,  
"number\_of\_data\_nodes" : 4,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 10,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 0.0,  
"indices" : {  
"test1" : {  
"status" : "red",  
"number\_of\_shards" : 5,  
"number\_of\_replicas" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 10  
}  
}  
}

How can I do to reslove it?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 11, 2015, 7:23am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/2 "2015-12-11T07:23:58Z")

</div>

Could you translate 不適用的引數 for us?

In the first cluster status output you have one data node but in the next one you suddenly have four nodes. Is that expected?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 11, 2015, 7:35am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/3 "2015-12-11T07:35:17Z")

</div>

Don't mount path.data over NFS!  
Don't share indices in Hadoop cluster!

---

<div class="post-metadata">

**Author:** ![stana](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@stana](https://discuss.elastic.co/u/stana)\
**Post date:** [December 14, 2015, 2:58am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/4 "2015-12-14T02:58:25Z")

</div>

Hi magnusbaeck

Thanks for your reply.  
'不適用的引數' is something like 'Invalid argument'.

I started up Elasticsearch 2.1 two times with Elasticsearch-hadoop.  
At first, I started up Elasticsearch with one container,and I started up another with three containers in the few minutes.  
Total of four nodes.

It works well on Elasticsearch 1.7 with the same situation (setting path.data to the folder which mount on hadoop through nfs. ).  
I could put data and get them.

What can I do to solve the error on 2.1?

---

<div class="post-metadata">

**Author:** ![stana](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@stana](https://discuss.elastic.co/u/stana)\
**Post date:** [December 14, 2015, 3:13am UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/5 "2015-12-14T03:13:11Z")

</div>

Hi dadoonet

Thanks for your reply.

For some reason, I have to mount path.data over NFS and share indices in Hadoop cluster.

I am a beginner and I want to know why don't mount path.data over NFS?  
Could you explain?Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:31pm UTC](https://discuss.elastic.co/t/red-status-after-putting-data/36947/6 "2017-07-05T23:31:24Z")

</div>


