You want to clean up this list by removing jobs where the State is KILLED. What command you enter?
A.
Yarn application –refreshJobHistory
B.
Yarn application –kill application_1374638600275_0109
C.
Yarn rmadmin –refreshQueue
D.
Yarn rmadmin –kill application_1374638600275_0109
Explanation:
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1-latest/bk_using-apachehadoop/content/common_mrv2_commands.html
B is correct
http://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/YarnCommands.html#application
0
0
Ans: C
B is wrong as the job is already killed.
There is no A and D commands , the rmadmin doesnt have a kill subcommand and there is no argument as -refreshJobHistory.
0
0
-refreshQueues Reload the queues’ acls, states and scheduler specific properties. ResourceManager will reload the mapred-queues configuration file.
C is wrong
https://hadoop.apache.org/docs/r0.23.11/hadoop-yarn/hadoop-yarn-site/YarnCommands.html#rmadmin
0
0
I guess C is the answer (For the test, I choose B and it appears to be one of the 7 Questions I lost)
The process which is killed cannot be killed again. It will throw an error. I tried many times, but could not list “killed” process as described in the question. If by chance, any killed process appears in the list, I guess “refreshQueues” will remove that entry.
COMMAND_OPTIONS Description
-refreshQueues Reload the queues’ acls, states and scheduler specific properties. ResourceManager will reload the mapred-queues configuration file.
0
0
A.Yarn application –refreshJobHistory
B.Yarn application –kill application_1374638600275_0109
C.Yarn rmadmin –refreshQueue
D.Yarn rmadmin –kill application_1374638600275_0109
###
[training@elephant ~]$ yarn application -help
-appStates
-appTypes
-help
-kill Kills the application.
-list
-movetoqueue
-queue
-status
###
[training@elephant ~]$ yarn rmadmin -help
[-refreshQueues] Reload the queues’ acls, states and scheduler specific properties.
ResourceManager will reload the mapred-queues configuration file
[-refreshNodes]
[-refreshSuperUserGroupsConfiguration]
[-refreshUserToGroupsMappings]
[-refreshAdminAcls]
[-refreshServiceAcl]
[-getGroup [username]]
[-help [cmd]]
[-transitionToActive ]
[-transitionToStandby ]
[-failover [–forcefence]
[–forceactive] ]
[-getServiceState ] [-checkHealth ]
0
0
C is the right the answer , as said already you cant killed the already killed application by reloading the queue , the killed application listing will disappear
0
0
Answer is C .you cannot kill a job which is already in killed state
0
0
I have the same idea. B
0
0