Github user ajbozarth commented on the pull request:
https://github.com/apache/spark/pull/11255#issuecomment-185956823
I checked out the code and tried it out. I tested by running spark-shell
with --executor-memory and --driver-memory. I saw the following:
```
16/02/18 14:24:59 ERROR SparkContext: Error initializing SparkContext.
java.lang.IllegalArgumentException: Executor memory 1048576 must be at
least 4.718592E8. Please increase executor memory using the --executor-memory
option or spark.executor.memory in Spark configuration.
at
org.apache.spark.memory.UnifiedMemoryManager$.getMaxMemory(UnifiedMemoryManager.scala:193)
at
org.apache.spark.memory.UnifiedMemoryManager$.apply(UnifiedMemoryManager.scala:167)
at org.apache.spark.SparkEnv$.create(SparkEnv.scala:319)
at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:179)
at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:261)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:430)
at org.apache.spark.repl.Main$.createSparkContext(Main.scala:98)
at $line3.$read$$iw$$iw.<init>(<console>:12)
at $line3.$read$$iw.<init>(<console>:22)
at $line3.$read.<init>(<console>:24)
at $line3.$read$.<init>(<console>:28)
<...>
at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
java.lang.IllegalArgumentException: Executor memory 1048576 must be at
least 4.718592E8. Please increase executor memory using the --executor-memory
option or spark.executor.memory in Spark configuration.
at
org.apache.spark.memory.UnifiedMemoryManager$.getMaxMemory(UnifiedMemoryManager.scala:193)
at
org.apache.spark.memory.UnifiedMemoryManager$.apply(UnifiedMemoryManager.scala:167)
at org.apache.spark.SparkEnv$.create(SparkEnv.scala:319)
at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:179)
at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:261)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:430)
at org.apache.spark.repl.Main$.createSparkContext(Main.scala:98)
... 48 elided
java.lang.NullPointerException
at
org.apache.spark.sql.SQLContext$.createListenerAndUI(SQLContext.scala:1065)
at org.apache.spark.sql.SQLContext.<init>(SQLContext.scala:75)
at org.apache.spark.repl.Main$.createSQLContext(Main.scala:112)
... 48 elided
<console>:13: error: not found: value sqlContext
import sqlContext.implicits._
^
<console>:13: error: not found: value sqlContext
import sqlContext.sql
^
```
(Note: the <...> is stack trace I deleted to shrink the comment)
Then the shell still starts, is this the intended behavior? it seems
clunky, but it's better than the problem just being hidden (which seemed to be
how it was before)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]