Akihito-Liang commented on code in PR #8689:
URL: https://github.com/apache/hudi/pull/8689#discussion_r1191961370


##########
hudi-common/src/main/java/org/apache/hudi/common/util/FileIOUtils.java:
##########
@@ -226,16 +226,17 @@ public static String[] getConfiguredLocalDirs() {
 
   private static boolean isRunningInYarnContainer() {
     // These environment variables are set by YARN.
-    return System.getenv("CONTAINER_ID") != null;
+    return System.getenv("CONTAINER_ID") != null
+        && System.getenv("LOCAL_DIRS") != null;

Review Comment:
   This change is to prevent hudi runs in k8s pod from following this logic. 
Because there is also  variable CONTAINER_ID in the k8s pod, it will go to this 
logic and throw an exception。



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to