Skip to content

Commit c88e53e

Browse files
committed
Allow skipping version conflict check via system property
When opensearch.hadoop.version.check.skip system property is set to "true", the multiple JAR detection in Version.java is bypassed. This allows users on managed platforms (e.g. AWS Glue) to override a bundled older version of the connector that cannot be removed from the classpath. Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
1 parent f6973ef commit c88e53e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mr/src/main/java/org/opensearch/hadoop/util/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public abstract class Version {
104104
sb.append("\n");
105105
}
106106
}
107-
if (foundJars > 1) {
107+
if (foundJars > 1 && !"true".equals(System.getProperty("opensearch.hadoop.version.check.skip"))) {
108108
throw new RuntimeException(sb.toString());
109109
}
110110
}

0 commit comments

Comments
 (0)