The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Rapidminer by Script

JepseJepse Member Posts: 11 Contributor II
edited November 2018 in Help
Hi All,

i tried to start a RM-Process by command line using rapidminer-script (./scripts/rapidminer). My Process works perfect within RM. But when i start the process by following command, it doesn't find my stored elements like model or example set.

rapidminer -f /reposi/process.rmp

What am i doing wrong?


Extract of Commandline-Error:

2011-01-26 19:17:19 WARNING: Caught exception in concurrent execution of getTestData (Retrieve): com.rapidminer.operator.UserError: Cannot retrieve repository data from entry '//reposi/05_test_dataset'. Reason: Requested repository ebros does not exist.. (ParallelUnitExecutor$OperatorExecution.run())
  com.rapidminer.operator.UserError: Cannot retrieve repository data from entry '//reposi//05_test_dataset'. Reason: Requested repository ebros does not exist..
      com.rapidminer.operator.io.RepositorySource.read(RepositorySource.java:106)
      com.rapidminer.operator.io.AbstractReader.doWork(AbstractReader.java:123)
      com.rapidminer.operator.Operator.execute(Operator.java:771)
      com.rapidminer.operator.executor.ParallelUnitExecutor$OperatorExecution.run(ParallelUnitExecutor.java:37)
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      java.lang.Thread.run(Thread.java:662)
Caused by:
  com.rapidminer.repository.RepositoryException: Requested repository ebros does not exist.
      com.rapidminer.repository.RepositoryManager.getRepository(RepositoryManager.java:170)
      com.rapidminer.repository.RepositoryLocation.getRepository(RepositoryLocation.java:153)
      com.rapidminer.repository.RepositoryLocation.locateEntry(RepositoryLocation.java:173)
      com.rapidminer.operator.io.RepositorySource.getRepositoryEntry(RepositorySource.java:91)
      com.rapidminer.operator.io.RepositorySource.read(RepositorySource.java:104)
      com.rapidminer.operator.io.AbstractReader.doWork(AbstractReader.java:123)
      com.rapidminer.operator.Operator.execute(Operator.java:771)
      com.rapidminer.operator.executor.ParallelUnitExecutor$OperatorExecution.run(ParallelUnitExecutor.java:37)
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      java.lang.Thread.run(Thread.java:662)
2011-01-26 19:17:19 WARNING: Caught exception in concurrent execution of getModell (Retrieve): com.rapidminer.operator.UserError: Cannot retrieve repository data from entry '//reposi/01_model_no_boosting'. Reason: Requested repository reposi does not exist.. (ParallelUnitExecutor$OperatorExecution.run())
  com.rapidminer.operator.UserError: Cannot retrieve repository data from entry '//reposi/01_model_no_boosting'. Reason: Requested repository ebros does not exist..
      com.rapidminer.operator.io.RepositorySource.read(RepositorySource.java:106)
      com.rapidminer.operator.io.AbstractReader.doWork(AbstractReader.java:123)
      com.rapidminer.operator.Operator.execute(Operator.java:771)
      com.rapidminer.operator.executor.ParallelUnitExecutor$OperatorExecution.run(ParallelUnitExecutor.java:37)
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      java.lang.Thread.run(Thread.java:662)
Caused by:
  com.rapidminer.repository.RepositoryException: Requested repository ebros does not exist.
      com.rapidminer.repository.RepositoryManager.getRepository(RepositoryManager.java:170)
      com.rapidminer.repository.RepositoryLocation.getRepository(RepositoryLocation.java:153)
      com.rapidminer.repository.RepositoryLocation.locateEntry(RepositoryLocation.java:173)
      com.rapidminer.operator.io.RepositorySource.getRepositoryEntry(RepositorySource.java:91)
      com.rapidminer.operator.io.RepositorySource.read(RepositorySource.java:104)
      com.rapidminer.operator.io.AbstractReader.doWork(AbstractReader.java:123)
      com.rapidminer.operator.Operator.execute(Operator.java:771)
      com.rapidminer.operator.executor.ParallelUnitExecutor$OperatorExecution.run(ParallelUnitExecutor.java:37)
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      java.lang.Thread.run(Thread.java:662)

Cheers, Philippe

Answers

  • SebastianLohSebastianLoh Member Posts: 99 Contributor II
    Hi Phillipe,

    if you use the -f (for file) parameter, the repository location in your retrieve operator cannot be resolved.

    The -f option is deprecated. Try

      rapidminer  //myRepositoryNameInRapidMiner/myProcess.rmp

    This should work.

    Ciao Sebastian
  • JepseJepse Member Posts: 11 Contributor II
    Ok, i tried that. No i receive a new Error.

    riable 'RAPIDMINER_CONFIG_DIR' not set. Ignored. (ParameterService.getGlobalConfigDir())
    2011-01-27 11:49:49 CONFIG: Initializing Data Repository (RapidMiner.splashMessage())
    2011-01-27 11:49:49 CONFIG: Loading repositories from /home/jpw/.RapidMiner5/repositories.xml (RepositoryManager.load())
    2011-01-27 11:49:49 CONFIG: Adding repository Repository (RepositoryManager.addRepository())
    2011-01-27 11:49:49 CONFIG: Initializing XML Serialization (RapidMiner.splashMessage())
    2011-01-27 11:49:49 CONFIG: Defining XML Serialization Alias Pairs (RapidMiner.splashMessage())
    2011-01-27 11:49:49 CONFIG: Initializing Renderers (RapidMiner.splashMessage())
    2011-01-27 11:49:49 CONFIG: Loading renderers from 'file:/home/jpw/rapidminer/lib/rapidminer.jar!/com/rapidminer/resources/ioobjects.xml'. (RendererService.init())
    2011-01-27 11:49:49 CONFIG: Loading renderers from 'ioobjects.xml'. (RendererService.init())
    2011-01-27 11:49:49 SEVERE: Cannot read process setup '//reposi/02_apply_model_on_unclassified': Cannot locate entry '//ebros/sentiment_prediction/02_apply_model_on_unclassified': com.rapidminer.repository.RepositoryException: Requested repository ebros does not exist. (RapidMinerCommandLine.run())

    It sais that the repository is not available? Could this error caused the missing RAPIDMINER_CONF_DIR?
  • JepseJepse Member Posts: 11 Contributor II
    Solved:

    My Repository was stored in my root account but not my specific user. So all i had to do is changing the user to root and rerun the command.

    1. sudo su -
    2. ./rapidminer //reposi/process

Sign In or Register to comment.