# Node.role: \[data\_cold\]

**URL:** <https://discuss.elastic.co/t/node-role-data-cold/255410>\
**Category:** Elasticsearch\
**Created:** [November 14, 2020, 6:31pm UTC](https://discuss.elastic.co/t/node-role-data-cold/255410 "2020-11-14T18:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mutt13y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mutt13y/32/74962_2.png) [@mutt13y](https://discuss.elastic.co/u/mutt13y)\
**Post date:** [November 14, 2020, 6:31pm UTC](https://discuss.elastic.co/t/node-role-data-cold/255410/1 "2020-11-14T18:31:24Z")

</div>

Hi  
According to

> **[Node | Elasticsearch Reference \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)**

  
I should set my cold nodes to data cold

I have  
node.attr.class: cold  
node.roles: ["data\_cold"]

set in elasticsearch.yml  
Yet I get this on startup

```
[2020-11-14T12:24:27,891][ERROR][o.e.b.Bootstrap] [gla1vm51] Exception
java.lang.IllegalArgumentException: unknown role [data_cold]
        at org.elasticsearch.cluster.node.DiscoveryNode.getRoleFromRoleName(DiscoveryNode.java:503) ~[elasticsearch-7.9.1.jar:7.9.1]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]

```

I wanted to set the role because even though I have the hot nodes set as ingest I see replica shards being moved to the cold nodes that have not yet reached the cold part if the ilm

Any help appreciated

Thanks  
Stuart

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 14, 2020, 6:56pm UTC](https://discuss.elastic.co/t/node-role-data-cold/255410/2 "2020-11-14T18:56:17Z")

</div>

You have linked to the docs for 7.10 but you are only running 7.9.1, which behaves differently in this respect.

---

<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:** [December 12, 2020, 6:56pm UTC](https://discuss.elastic.co/t/node-role-data-cold/255410/3 "2020-12-12T18:56:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
