Skip to content

Commit 6263dfa

Browse files
committed
Revert SparkLocalRunCommParametersPanel changes
I need to think of it carefully. Signed-off-by: Wei Zhang <[email protected]>
1 parent f930508 commit 6263dfa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/ui/SparkLocalRunCommonParametersPanel.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
import javax.swing.event.DocumentListener;
3030
import java.lang.reflect.Field;
31-
import java.util.HashMap;
3231
import java.util.Map;
3332

3433
public class SparkLocalRunCommonParametersPanel extends CommonJavaParametersPanel{
@@ -53,9 +52,7 @@ public Map<String, String> getEnvs() {
5352
myEnvVariablesComponentField.setAccessible(true);
5453
return ((EnvironmentVariablesComponent) myEnvVariablesComponentField.get(this)).getEnvs();
5554
} catch (NoSuchFieldException | IllegalAccessException e) {
56-
return new HashMap<String, String>() {{
57-
put("HADOOP_HOME", System.getenv("HADOOP_HOME"));
58-
}};
55+
throw new RuntimeException(e);
5956
}
6057
}
6158
}

0 commit comments

Comments
 (0)