Moving the .Rapidminer folder

d_frank
d_frank New Altair Community Member
edited November 5 in Community Q&A

Hi,

 

The .Rapidminer folder is by default located in my user directory. Since I have limited space within that directory, I would like to move it to another drive. Can you tell me, how I can move this folder? Do I have to edit some kind of *.ini?

 

Thank you and best regards

Tagged:

Best Answer

  • marcin_blachnik
    marcin_blachnik New Altair Community Member
    Answer ✓

    There is one more option,

    By default RM creates the .RapidMiner folder in the user folder, which is obtained from the operating system variable.

    You can change it by adding a java switch which tells JVM where the user folder is and manually redirect .RapidMiner to different location

    To be more precise add the option

    -Duser.home="d:\myNewUserFolder"

     

    to your script file which starts RapidMiner

    If you use windows open the RapidMiner Studio.bat and locate the lines

    ---------------------------------

    :launch
    echo Launching RapidMiner Studio GUI now...
    "%JAVA%" %JVM_OPTIONS% [-Duser.home="...."] -cp .........
    goto startEnd

    ------------------------------------

    in the backets I've shown where to put the new options

     

    If the folder name contains space character remeber to use " ".

     

    Best

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee

    Hi Frank,

     

    i would recommend to move the repository to another place by simply using a different one. That should be most of the space needed.

     

    Next idea would be to use a link for $USER/.RapidMiner to move it away.

     

    Only then i would think about really changing it in RapidMiner. You would need to change the .sh/.bat file for this.

     

    ~Martin

  • marcin_blachnik
    marcin_blachnik New Altair Community Member
    Answer ✓

    There is one more option,

    By default RM creates the .RapidMiner folder in the user folder, which is obtained from the operating system variable.

    You can change it by adding a java switch which tells JVM where the user folder is and manually redirect .RapidMiner to different location

    To be more precise add the option

    -Duser.home="d:\myNewUserFolder"

     

    to your script file which starts RapidMiner

    If you use windows open the RapidMiner Studio.bat and locate the lines

    ---------------------------------

    :launch
    echo Launching RapidMiner Studio GUI now...
    "%JAVA%" %JVM_OPTIONS% [-Duser.home="...."] -cp .........
    goto startEnd

    ------------------------------------

    in the backets I've shown where to put the new options

     

    If the folder name contains space character remeber to use " ".

     

    Best

  • jacobcybulski
    jacobcybulski New Altair Community Member

    @marcin_blachnik, @mschmitz I am trying to follow Marcin's advice, however, I am using Ubuntu 16.04. I am finding that RapidMiner ignores the -Duser.home setting and still is looking for .RapidMiner folder in the home directory.

    In the RapidMiner-Studio.sh shell, I have defined a new variable JACOBS_ROOT pointing to a hidden folder, which includes a copy of .RapidMiner created by the run of RM9 (after its full clean update from version 8.2):

    ## Jacobs' new home location
    JACOBS_ROOT=~/.RapidMiner-9

    I have modified update_root, just in case.

    update_root=${JACOBS_ROOT}/.RapidMiner/update

    And then changed the launching sequence to refer to -Duser.home:

        # Compile launch parmateres
    rmClasspath="${RAPIDMINER_HOME}"/lib/*:"${RAPIDMINER_HOME}"/lib/jdbc/*
    JVM_OPTIONS=$("$JAVA" "-Djava.awt.headless=true" "-Duser.home=${JACOBS_ROOT}" -cp "${rmClasspath}" com.rapidminer.launcher.JVMOptionBuilder "$@)

    # Launch Studio
    LAUNCH=0
    if [ $# -gt 0 ]; then
    eval \"$JAVA\" $JVM_OPTIONS -cp \"${rmClasspath}\" com.rapidminer.launcher.GUILauncher \"$@\"
    else
    eval \"$JAVA\" $JVM_OPTIONS -cp \"${rmClasspath}\" com.rapidminer.launcher.GUILauncher
    fi

    And yet, when RM starts it is still looking at the ~/.RapidMiner rather than ${JACOBS_ROOT}/.RapidMiner.

    This is what the RM initialization looks like:

    jacob@goblin-galore:rapidminer-studio-9$ ./RapidMiner-Studio-9.sh
    RAPIDMINER_HOME is not set. Trying the directory '/home/jacob/Apps/rapidminer-studio-9'...
    Sep 08, 2018 5:46:30 PM com.rapidminer.tools.FileSystemService checkAndCreateFolder
    WARNING: Unable to create user home rapidminer directory /home/jacob/.RapidMiner
    Sep 08, 2018 5:46:31 PM com.rapidminer.gui.RapidMinerGUI run
    INFO: Launching RapidMiner 9.0.002, platform ANY
    Sep 08, 2018 5:46:31 PM com.rapidminer.tools.I18N <clinit>
    INFO: Set locale to en.
    Sep 08, 2018 5:46:31 PM com.rapidminer.RapidMiner performFirstInitialization
    INFO: Performing upgrade to version 9.0.002

    Here are the details of Java installed on my Ubuntu:

    jacob@goblin-galore:~$ sudo update-alternatives --config java
    There are 2 choices for the alternative java (providing /usr/bin/java).

    Selection Path Priority Status
    ------------------------------------------------------------
    0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
    1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
    * 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode

    Press <enter> to keep the current choice[*], or type selection number:
    jacob@goblin-galore:~$ apt policy oracle-java8-installer
    oracle-java8-installer:
    Installed: 8u181-1~webupd8~1
    Candidate: 8u181-1~webupd8~1
    Version table:
    *** 8u181-1~webupd8~1 500
    500 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
    500 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 Packages
    100 /var/lib/dpkg/status

    Interestingly, I have found an Oracle JRE time stamp in the ${JACOBS_ROOT} folder, so it seem Java goes there, but RapidMiner decides this is not the place.

     

    Any ideas? As my university labs use RM 8.2, I'd like to be able to run both versions 8.2 and 9 on my Ubuntu 16.04.

     

    Jacob