Specifying the User Who Runs Yarn Tasks
This section applies to clusters of MRS 3.x or later.
Scenario
Yarn allows the user who starts NodeManager to run tasks submitted by all users, and also allows the user who submits a task to run it.
Configuration Description
Log in to Manager, choose Cluster > Services > Yarn and click Configurations then All Configurations. Enter a parameter name in the search box.
Parameter |
Description |
Default Value |
---|---|---|
yarn.nodemanager.linux-container-executor.user |
Indicates the user who runs a task. |
The value is left blank by default.
NOTE:
The value is left blank by default. The user who submits a task is the actual person who runs the task. |
yarn.nodemanager.container-executor.class |
Indicates the executor who starts a task. |
org.apache.hadoop.yarn.server.nodemanager.EnhancedLinuxContainerExecutor |
- Set yarn.nodemanager.linux-container-executor.user to configure the user who runs the container. An empty value (default value) indicates that the user running the container is also the one submitting the task. This parameter is valid only when yarn.nodemanager.container-executor.class is set to org.apache.hadoop.yarn.server.nodemanager.EnhancedLinuxContainerExecutor.
- In non-security mode, if yarn.nodemanager.linux-container-executor.user is set to omm, yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user must also be set to omm.
- For security reasons, it is advised to retain the default values of yarn.nodemanager.linux-container-executor.user and yarn.nodemanager.container-executor.class.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot