vmaster.cc created ZEPPELIN-5621:
------------------------------------

             Summary: add configuration of tmp_path to store compiled files 
like scala_shell_tmp-xxx.jar
                 Key: ZEPPELIN-5621
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5621
             Project: Zeppelin
          Issue Type: Improvement
          Components: zeppelin-interpreter
    Affects Versions: 0.10.0, 0.9.0
            Reporter: vmaster.cc
         Attachments: image-2021-12-27-14-25-17-873.png

An error occur after the interpreter is not running for a long time : 
FileNotFoundException: /tmp/scala_shell_tmp-xxx/scala_shell_commands.jar

!image-2021-12-27-14-25-17-873.png|width=572,height=172!

 

Expected to add a configuration to store it but not the os tmp directory as 
follow:
{code:java}
/**
 * creates a temporary directory to store compiled console files
 */
private val tmpDirBase: File = {
  // get unique temporary folder:
  val abstractID: String = new AbstractID().toString
  val tmpDir: File = new File(
    System.getProperty("java.io.tmpdir"),
    "scala_shell_tmp-" + abstractID)
  if (!tmpDir.exists) {
    tmpDir.mkdir
  }
  tmpDir
} {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to