Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11989

Kill command for process group id throws ExitCodeException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • None
    • util
    • None
    • debian 7

    Description

      In the environment where setsid available, kill command is constructed with single dash, which throws ExitCodeException (improper usage of command)

      kill -signal_num -<process_group_id>
      

      Encountered this issue due to YARN-3561

      Kill command need to be constructed with double dash (--) which means "end of command options" i.e. it tells ssh command not to try to parse what comes after command line options. It should be constructed as follows :

      kill -signal_num -- -<process_group_id>
      

      Attachments

        1. HADOOP-11989.patch
          1 kB
          Chackaravarthy

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chackra Chackaravarthy
            chackra Chackaravarthy
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment