Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5621

add configuration of tmp_path to store compiled files like scala_shell_tmp-xxx.jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0, 0.10.0
    • 0.11.0
    • zeppelin-interpreter
    • None

    Description

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

       

      Expected to add a configuration to store it but not the os tmp directory as follow:

      /**
       * 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
      } 

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            vmaster vmaster.cc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m