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

Improve MiniYarnCluster for log aggregation testing

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: nodemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      MiniYarnCluster specifies individual remote log aggregation root dir for each NM. Test code that uses MiniYarnCluster won't be able to get the value of log aggregation root dir. The following code isn't necessary in MiniYarnCluster.

      File remoteLogDir =
      new File(testWorkDir, MiniYARNCluster.this.getName()
      + "remoteLogDir-nm" + index);
      remoteLogDir.mkdir();
      config.set(YarnConfiguration.NM_REMOTE_APP_LOG_DIR,
      remoteLogDir.getAbsolutePath());

      In LogCLIHelpers.java, dumpAllContainersLogs should pass its conf object to FileContext.getFileContext() call.

        Attachments

        1. YARN-1751.patch
          1 kB
          Ming Ma
        2. YARN-1751-trunk.patch
          2 kB
          Ming Ma

          Activity

            People

            • Assignee:
              mingma Ming Ma
              Reporter:
              mingma Ming Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: