Skip to content

Commit

Permalink
[Hotfix] Unlock some configs of the spark optimizer (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcodehuber authored Jun 20, 2024
1 parent f5f32c3 commit 345e28b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ body:
- type: dropdown
id: table-format
attributes:
label: What table format are you seeing the problem on?
label: What table formats are you seeing the problem on?
multiple: true
options:
- Iceberg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ protected String buildOptimizerStartupArgsString(Resource resource) {

if (deployedOnKubernetes()) {
addKubernetesProperties(resource, resourceSparkConf);
} else {
addYarnProperties(resourceSparkConf);
}
String sparkOptions = resourceSparkConf.toConfOptions();
String proxyUser =
Expand Down Expand Up @@ -224,16 +222,6 @@ private void addKubernetesProperties(
SparkConfKeys.KUBERNETES_EXECUTOR_LABEL_PREFIX + "optimizer-id", resource.getResourceId());
}

private void addYarnProperties(SparkOptimizerContainer.SparkConf sparkConf) {
// Load optimizer jar first
sparkConf.putToOptions(
SparkConfKeys.DRIVER_CLASSPATH_INCLUDE_USER_JAR,
SparkOptimizerContainer.SparkConfKeys.CLASSPATH_INCLUDE_USER_JAR_DEFAULT);
sparkConf.putToOptions(
SparkConfKeys.EXECUTOR_CLASSPATH_INCLUDE_USER_JAR,
SparkOptimizerContainer.SparkConfKeys.CLASSPATH_INCLUDE_USER_JAR_DEFAULT);
}

private <T> T fetchCommandOutput(Process exec, Function<String, T> commandReader) {
T value = null;
try (InputStreamReader inputStreamReader = new InputStreamReader(exec.getInputStream())) {
Expand Down Expand Up @@ -337,11 +325,6 @@ public String getValue() {
}

public static class SparkConfKeys {
public static final String DRIVER_CLASSPATH_INCLUDE_USER_JAR =
"spark.driver.userClassPathFirst";
public static final String EXECUTOR_CLASSPATH_INCLUDE_USER_JAR =
"spark.executor.userClassPathFirst";
public static final String CLASSPATH_INCLUDE_USER_JAR_DEFAULT = "true";
public static final String KUBERNETES_IMAGE_REF = "spark.kubernetes.container.image";
public static final String KUBERNETES_DRIVER_NAME = "spark.kubernetes.driver.pod.name";
public static final String KUBERNETES_NAMESPACE = "spark.kubernetes.namespace";
Expand Down
2 changes: 1 addition & 1 deletion charts/amoro/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ optimizer:
pullPolicy: "IfNotPresent"
extra: []

## Configure the plugin that allows you to access the metric reporters and events listeners.
## Configure the plugin that allows you to access the metric reporters and event listeners.
##
plugin:
##
Expand Down

0 comments on commit 345e28b

Please sign in to comment.