Uploaded image for project: 'TOREE'
  1. TOREE
  2. TOREE-461

Compile Time error for scala.Tuple3

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.2.0
    • 0.5.0
    • Kernel
    • None

    Description

      Using Toree 0.2 RC2, I am unable to execute the following Jupyter cell:

      ```
      def time[A](f: => A) =

      { val s = System.nanoTime val ret = f println("time: "+(System.nanoTime-s)/1e6+"ms") ret }

      ```

      [I 21:22:28.027 NotebookApp] Saving file at /Scala.ipynb
      17/12/14 21:22:59 ERROR OneForOneStrategy: compile-time error
      javax.script.ScriptException: compile-time error
      at scala.tools.nsc.interpreter.IMain.compiled(IMain.scala:602)
      at scala.tools.nsc.interpreter.IMain.eval(IMain.scala:1074)
      at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$class.read(ScalaInterpreterSpecific.scala:250)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.read(ScalaInterpreter.scala:43)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:206)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:205)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.prepareResult(ScalaInterpreter.scala:205)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:285)
      at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:280)
      at scala.util.Success$$anonfun$map$1.apply(Try.scala:237)
      at scala.util.Try$.apply(Try.scala:192)
      at scala.util.Success.map(Try.scala:237)
      at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
      at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
      at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
      at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
      at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
      at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
      at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      [I 21:23:34.640 NotebookApp] Starting buffering for 31b4d0ec-640b-4200-a75e-cc446536f939:CD995E798E5043EE89DE08C79EF9D270
      17/12/14 21:23:35 WARN KernelOutputStream: Suppressing empty output: ''
      17/12/14 21:23:35 ERROR InterpreterActor: Could not execute code def time[A](f: => A) =

      { val s = System.nanoTime val ret = f println("time: "+(System.nanoTime-s)/1e6+"ms") ret }

      because of exception: Ask timed out on Actor[akka://spark-kernel-actor-system/user/interpreter/execute_request_task#530568081] after [21474835000 ms]. SenderActor[akka://spark-kernel-actor-system/user/interpreter#-1495230403] sent message of type "scala.Tuple3".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rgelhau Randy Gelhausen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment