PrepAway - Latest Free Exam Questions & Answers

What command you enter?

Given:

You want to clean up this list by removing jobs where the State is KILLED. What command you enter?

PrepAway - Latest Free Exam Questions & Answers

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

8 Comments on “What command you enter?

  1. Hitesh says:

    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
  2. Sijo says:

    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
  3. Trung Phan says:

    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
  4. Matt says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *