Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8429

Improve diagnostic message when artifact is not set properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.2.0, 3.1.2
    • None
    • None

    Description

      Steps:

      1) Create launch json file. Replace "artifact" with "artifacts"
      2) launch yarn service app with cli

      The application launch fails with below error

      [xxx xxx]$ yarn app -launch test2-2 test.json 
      18/06/14 17:08:00 INFO client.AHSProxy: Connecting to Application History server at xxx/xxx:10200
      18/06/14 17:08:00 INFO client.AHSProxy: Connecting to Application History server at xxx/xxx:10200
      18/06/14 17:08:00 INFO client.ApiServiceClient: Loading service definition from local FS: /xxx/test.json
      18/06/14 17:08:01 INFO util.log: Logging initialized @2782ms
      18/06/14 17:08:01 ERROR client.ApiServiceClient: Dest_file must not be absolute path: /xxx/xxx
      

      artifact field is not mandatory. However, If that field is specified incorrectly, launch cmd should fail with proper error.
      Here, The error message regarding Dest file is misleading.

      Attachments

        1. YARN-8429.004.patch
          24 kB
          Gour Saha
        2. YARN-8429.003.patch
          25 kB
          Gour Saha
        3. YARN-8429.002.patch
          24 kB
          Gour Saha
        4. YARN-8429.001.patch
          21 kB
          Gour Saha

        Activity

          People

            gsaha Gour Saha
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: