You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/09/11 16:57:46 UTC

[jira] [Commented] (SPARK-10549) scala 2.11 spark on yarn with security - Repl doesn't work

    [ https://issues.apache.org/jira/browse/SPARK-10549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740938#comment-14740938 ] 

Apache Spark commented on SPARK-10549:
--------------------------------------

User 'tgravescs' has created a pull request for this issue:
https://github.com/apache/spark/pull/8719

> scala 2.11 spark on yarn with security - Repl doesn't work
> ----------------------------------------------------------
>
>                 Key: SPARK-10549
>                 URL: https://issues.apache.org/jira/browse/SPARK-10549
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Shell
>    Affects Versions: 1.5.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>
> Trying to run spark on secure yarn built with scala 2.11 results in failure when trying to launch the spark shell.
>  ./bin/spark-shell --master yarn-client 
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.apache.spark.repl.Main.main(Main.scala)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:483)
>         at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
>         at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
>         at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
>         at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
>         at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> Caused by: java.lang.Exception: Error: a secret key must be specified via the spark.authenticate.secret config
>         at org.apache.spark.SecurityManager.generateSecretKey(SecurityManager.scala:395)
>         at org.apache.spark.SecurityManager.<init>(SecurityManager.scala:218)
>         at org.apache.spark.repl.Main$.<init>(Main.scala:38)
>         at org.apache.spark.repl.Main$.<clinit>(Main.scala)
> The reason is because it create the SecurityManager before is sets the SPARK_YARN_MODE to true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org