From 5afc6b1591cd9c9fe3ab7c04d445f0fa367f331d Mon Sep 17 00:00:00 2001 From: Adam Roberts Date: Wed, 10 Jun 2015 18:36:26 +0100 Subject: [PATCH] Improve 64 bit check for zLinux (64 bit: s390x) --- .../org/apache/hadoop/security/UserGroupInformation.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java index be3d60d73c69d..efef6b0ba2113 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java @@ -368,8 +368,12 @@ private static boolean isAuthenticationMethodEnabled(AuthenticationMethod method private static final boolean windows = System.getProperty("os.name").startsWith("Windows"); + + // s390x for zLinux (64 bit) private static final boolean is64Bit = - System.getProperty("os.arch").contains("64"); + System.getProperty("os.arch").contains("64") || + System.getProperty("os.arch").contains("s390x"); + private static final boolean aix = System.getProperty("os.name").equals("AIX"); /* Return the OS login module class name */