Skip to content

Commit 1c093b1

Browse files
authored
MapR [SPARK-188] Couldn't connect to thrift server via spark beeline on kerberos cluster (apache#243)
1 parent 71cd6d2 commit 1c093b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

launcher/src/main/java/org/apache/spark/launcher/SparkClassCommandBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public List<String> buildCommand(Map<String, String> env)
9090
extraClassPath = getenv("SPARK_DAEMON_CLASSPATH");
9191
memKey = "SPARK_DAEMON_MEMORY";
9292
break;
93+
case "org.apache.hive.beeline.BeeLine":
94+
javaOptsKeys.add("SPARK_JAVA_OPTS");
95+
memKey = "SPARK_DRIVER_MEMORY";
96+
break;
9397
default:
9498
memKey = "SPARK_DRIVER_MEMORY";
9599
break;

0 commit comments

Comments
 (0)