瀏覽代碼

YARN-10937. Fix log message arguments in LogAggregationFileController (#3450)

TiborKovacsCloudera 3 年之前
父節點
當前提交
5dcb23c1f0

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/LogAggregationFileController.java

@@ -390,7 +390,7 @@ public abstract class LogAggregationFileController {
           remoteFS.setPermission(qualified, new FsPermission(TLDIR_PERMISSIONS));
           remoteFS.setPermission(qualified, new FsPermission(TLDIR_PERMISSIONS));
         } catch ( UnsupportedOperationException use) {
         } catch ( UnsupportedOperationException use) {
           LOG.info("Unable to set permissions for configured filesystem since"
           LOG.info("Unable to set permissions for configured filesystem since"
-              + " it does not support this", remoteFS.getScheme());
+              + " it does not support this {}", remoteFS.getScheme());
           fsSupportsChmod = false;
           fsSupportsChmod = false;
         }
         }
 
 
@@ -437,7 +437,7 @@ public abstract class LogAggregationFileController {
         remoteFS.setPermission(permissionCheckFile, new FsPermission(TLDIR_PERMISSIONS));
         remoteFS.setPermission(permissionCheckFile, new FsPermission(TLDIR_PERMISSIONS));
       } catch (UnsupportedOperationException use) {
       } catch (UnsupportedOperationException use) {
         LOG.info("Unable to set permissions for configured filesystem since"
         LOG.info("Unable to set permissions for configured filesystem since"
-            + " it does not support this", remoteFS.getScheme());
+            + " it does not support this {}", remoteFS.getScheme());
         fsSupportsChmod = false;
         fsSupportsChmod = false;
       } catch (IOException e) {
       } catch (IOException e) {
         LOG.warn("Failed to check if FileSystem supports permissions on "
         LOG.warn("Failed to check if FileSystem supports permissions on "