🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Command Line Launch "Cannot resolve relative repository location"

User: "dragoljub"
New Altair Community Member
Updated by Jocelyn
Hi RM Gurus,

I have a problem running the command line version of RM (Linux 64bit) when I try to access repositories. I get the following error. How can I associate a repository with the process I am attempting to launch via the command line.

Here is the command I launch: ( I already setup the command line script to have proper paths for java and RM home and an empty process completes successfully. : ] )

./rapidminer/scripts/rapidminer -f ./Data/Repository/TS.rmp

Here is my simple process:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.0">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.0.8" expanded="true" name="Process">
   <process expanded="true" height="539" width="1820">
     <operator activated="true" class="retrieve" compatibility="5.0.8" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">
       <parameter key="repository_entry" value="Data"/>
     </operator>
     <operator activated="true" class="normalize" compatibility="5.0.8" expanded="true" height="94" name="Normalize" width="90" x="179" y="30">
       <parameter key="create_view" value="true"/>
       <parameter key="method" value="range transformation"/>
     </operator>
     <operator activated="true" class="sample_stratified" compatibility="5.0.8" expanded="true" height="76" name="Sample (Stratified)" width="90" x="313" y="30">
       <parameter key="sample_size" value="1000"/>
     </operator>
     <connect from_op="Retrieve" from_port="output" to_op="Normalize" to_port="example set input"/>
     <connect from_op="Normalize" from_port="example set output" to_op="Sample (Stratified)" to_port="example set input"/>
     <connect from_op="Sample (Stratified)" from_port="example set output" to_port="result 1"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
     <portSpacing port="sink_result 2" spacing="0"/>
   </process>
 </operator>
</process>
   

Here is the error:

INFO: Process starts (Process.run())
2010-07-22 16:43:28 SEVERE: Process failed: Cannot resolve relative repository location 'Data'. Process is not associated with a repository. (RapidMinerCommandLine.run())
 com.rapidminer.operator.UserError: Cannot resolve relative repository location 'Data'. Process is not associated with a repository.
     com.rapidminer.Process.resolveRepositoryLocation(Process.java:1139)
     com.rapidminer.operator.Operator.getParameterAsRepositoryLocation(Operator.java:1286)
     com.rapidminer.operator.io.RepositorySource.getRepositoryEntry(RepositorySource.java:90)
     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:768)
     com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
     com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
     com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:368)
     com.rapidminer.operator.Operator.execute(Operator.java:768)
     com.rapidminer.Process.run(Process.java:863)
     com.rapidminer.Process.run(Process.java:770)
     com.rapidminer.Process.run(Process.java:765)
     com.rapidminer.Process.run(Process.java:755)
     com.rapidminer.RapidMinerCommandLine.run(RapidMinerCommandLine.java:132)
     com.rapidminer.RapidMinerCommandLine.main(RapidMinerCommandLine.java:168)
2010-07-22 16:43:28 SEVERE: Here:           Process[1] (Process)
          subprocess 'Main Process'
      ==>   +- Retrieve[1] (Retrieve)
            +- Normalize[0] (Normalize)
            +- Sample (Stratified)[0] (Sample (Stratified))
            +- Retrieve (2)[0] (Retrieve) (RapidMinerCommandLine.run())
2010-07-22 16:43:28 SEVERE: Process not successful (RapidMinerCommandLine.run())
Thanks in advance,
-Gagi

Find more posts tagged with