- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
After upgrading to Ambari .2.2.1 container-executor.cfg is always overwritten by a template container-executor.cfg.j2
- Labels:
-
Apache Ambari
-
Apache YARN
Created 04-14-2016 12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After upgrading to Ambari 2.2.1 When restarting NodeManager ambari overwrites the container-executor.cfg with a template in file container-executor.cfg.j2 .
This template is wrong and causing the yarn to failed any job because the min user is 1000.
Created 04-14-2016 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not recommended to change banned.users and allowed.system.user for security reasons. It's always a good idea to run Yarn jobs as an end user. It's like when you have real users on the cluster, you create their accounts and let them login and run their apps. yarn user is used to manage Yarn, for example by running "yarn rmadmin" and other such commands. If nevertheless you want to try, the only way is to edit the cfj.j2 file located at /var/lib/ambari-server/resources/common-services/YARN/2.1.0.2.0/package/templates/container-executor.cfg.j2.
Created 04-14-2016 02:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Ran Postar You can reduce "Minimum user ID for submitting job" (min_user_id) in yarn-env in Ambari->Yarn from default 1000 to a smaller value, for example 500. The value is referenced as min.user.id={{min_user_id}} in container-executor.cfg.j2 and it should work.
Created 04-14-2016 02:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @Predrag Minovic, thanks for the quick replay.
How can I add allowed.system.users=yarn,admin , and change the banned.users .
Created 04-14-2016 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not recommended to change banned.users and allowed.system.user for security reasons. It's always a good idea to run Yarn jobs as an end user. It's like when you have real users on the cluster, you create their accounts and let them login and run their apps. yarn user is used to manage Yarn, for example by running "yarn rmadmin" and other such commands. If nevertheless you want to try, the only way is to edit the cfj.j2 file located at /var/lib/ambari-server/resources/common-services/YARN/2.1.0.2.0/package/templates/container-executor.cfg.j2.