title: What are the node states in yarn?
body: <p>I want to use <code>yarn</code> to track the states of my nodes.  So, I do <code>yarn node -list</code> to see my nodes.  And then when I want to list all of the nodes in a certain state, I try to do <code>yarn node -list -states &lt;State&gt;</code>.  </p>
  
  <p>In the webUI I can click on <code>nodes</code> and I can see that sometimes my nodes are <code>UNHEALTHY</code>.  Why is it that I cannot do similarly from the command line and do <code>yarn node -list -states UNHEALTHY</code> ?  </p>
  
  <p>Or, is there a reference that someone can give me that will tell me which <code>states</code> are available for me to use with this command <code>yarn node -list -states &lt;State&gt;</code>  ?  </p>
  
  <p>I could not find it <a href="https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/YarnCommands.html#node" rel="nofollow noreferrer">here</a></p>