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

ASF GitHub Bot commented on MAHOUT-1653:
----------------------------------------

Github user andrewpalumbo commented on a diff in the pull request:

    https://github.com/apache/mahout/pull/146#discussion_r34067056
  
    --- Diff: 
spark-shell/src/main/scala/org/apache/mahout/sparkbindings/shell/MahoutSparkILoop.scala
 ---
    @@ -48,55 +77,81 @@ class MahoutSparkILoop extends SparkILoop {
     
         conf.set("spark.executor.memory", "1g")
     
    -    sparkContext = mahoutSparkContext(
    +    _interp.sparkContext = mahoutSparkContext(
           masterUrl = master,
           appName = "Mahout Spark Shell",
           customJars = jars,
           sparkConf = conf
         )
     
    --- End diff --
    
    ```
    var sdc: SparkDistributedContext = _
    
    override def createSparkContext(): SparkContext = {
    [...]
       sdc = mahoutSparkContext(
          masterUrl = master,
          appName = "Mahout Spark Shell",
          customJars = jars,
          sparkConf = conf
        )
    
        _interp.sparkContext = sdc
    [...]
    }
      
    _interp.interpret("""
          @transient implicit val sdc =
             
org.apache.spark.repl.Main.interp.asInstanceOf[org.apache.mahout.sparkbindings.shell.MahoutSparkILoop].sdc
             """)
    ```
    gives a NPE:
    ```
    java.lang.NullPointerException
        at $iwC$$iwC$$iwC$$iwC.<init>(<console>:12)
        at $iwC$$iwC$$iwC.<init>(<console>:17)
        at $iwC$$iwC.<init>(<console>:19)
        at $iwC.<init>(<console>:21)
    ```


> Spark 1.3
> ---------
>
>                 Key: MAHOUT-1653
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1653
>             Project: Mahout
>          Issue Type: Dependency upgrade
>            Reporter: Andrew Musselman
>            Assignee: Andrew Palumbo
>             Fix For: 0.11.0
>
>
> Support Spark 1.3



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

Reply via email to