Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-11-2016 12:43 PM - edited 09-16-2022 03:34 AM
When I try to terminate an yarn application in CDH 5.8.x, I got the following error:
```
$ yarn application
No HADOOP_CONF_DIR set.
Please specify it either in yarn-env.sh or in the environment.
```
I've searched through all directory and found no yarn-env.sh, this error message is quite misleading.
Does some one know how to fix it?
Created 08-12-2016 12:03 AM
Created 08-11-2016 02:19 PM
Created 08-11-2016 02:50 PM
Created 08-11-2016 04:34 PM
Still has the same problem after a service reboot!
Looks like the gateway wasn't written through, strangely, my echo doesn't show any missing environment variable:
```
ubuntu@ip-172-31-23-254:~$ yarn application
No HADOOP_CONF_DIR set.
Please specify it either in yarn-env.sh or in the environment.
ubuntu@ip-172-31-23-254:~$ echo $HADOOP_CONF_DIR
/etc/spark/conf/yarn-conf:/etc/hive/conf
```
it looks like yarn get its variable elsewhere
Created 08-12-2016 12:03 AM