Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6246

There should be a way to configure the temp directory for CDAP

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.5.0
    • Component/s: Master, Tools
    • Labels:
    • Release Notes:
      Added ability to specify cdap-master temporary directory
    • Rank:
      1|hzzenz:

      Description

      Currently, we recognize a variable LOCAL_DIR (that can be set in cdap-env.sh) and pass that to the JVM with -Duser.dir=$LOCAL_DIR. That only affects files that are created by CDAP in its working directory. However, CDAP will still write files to /tmp, which can be a problem is the temp file system is small.

      Suggestion is to also recognize a TEMP_DIR and pass that in with -Djava.io.tmpdir=$TEMP_DIR.

      The current work-around is to add:
      OPTS="$OPTS -Djava.io.tmpdir=/my/tmp/dir" in cdap-env.sh. However, the OPTS variable is also set by common-env.sh and users might accidentally overwrite that, instead of appending to it. Also, it is nicer not have users configure JVM options directly.

        Attachments

          Activity

            People

            • Assignee:
              derek Derek Wood
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: