[
https://issues.apache.org/jira/browse/SPARK-10039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716360#comment-14716360
]
Sean Owen commented on SPARK-10039:
-----------------------------------
Yeah I realize that, but this code in turn came from Scala, so I'm asking
whether this is code that came from Scala. If not, then it seems clear-er that
your suggest change is an appropriate bug fix.
> Resetting REPL state does not work
> ----------------------------------
>
> Key: SPARK-10039
> URL: https://issues.apache.org/jira/browse/SPARK-10039
> Project: Spark
> Issue Type: Bug
> Components: Spark Shell
> Affects Versions: 1.4.1
> Reporter: Kevin Jung
> Priority: Minor
>
> Spark shell can't find a base directory of class server after running
> ":reset" command.
> {quote}
> scala> :reset
> scala> 1
> uncaught exception during compilation: java.lang.AssertiON-ERROR
> java.lang.AssertiON-ERROR: assertion failed: Tried to find '$line33' in
> '/tmp/spark-f47f3917-ac31-4138-bf1a-a8cefd094ac3' but it is not a directory
> ~~~impossible to command anymore including 'exit'~~~
> {quote}
> I figure out reset() method in SparkIMain try to delete virtualDirectory and
> then create again. But virtualDirectory.create() makes a file, not a
> directory. Details here.
> {quote}
> drwxrwxr-x. 3 root root 0 2015-08-17 09:09
> spark-9cfc6b06-c902-4caf-8712-9ea63f17d017
> (After :reset)
> \-rw-rw-r--. 1 root root 0 2015-08-17 09:09
> spark-9cfc6b06-c902-4caf-8712-9ea63f17d017
> {quote}
> "vd.delete; vd.givenPath.createDirectory(true);" will temporarily solve the
> problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]