diff --git a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
index 34dadf3160..438e2df137 100644
--- a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
+++ b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
@@ -2165,9 +2165,11 @@ The switch to turn S3A auditing on or off.
fs.azure.buffer.dir
- ${hadoop.tmp.dir}/abfs
+ ${env.LOCAL_DIRS:-${hadoop.tmp.dir}}/abfs
Directory path for buffer files needed to upload data blocks
- in AbfsOutputStream.
+ in AbfsOutputStream.
+ Yarn container path will be used as default value on yarn applications,
+ otherwise fall back to hadoop.tmp.dir