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

Improve MiniYarnCluster for log aggregation testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • nodemanager
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: