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
Answers
you certainly could execute the jar file directly (see http://rapid-i.com/content/view/17/211/lang,en/ - way 3). I don't know how to set parameters for the process file directly in this case. This should be much easier with the start-scripts inside the 'scripts' subfolder. You can simply append the process file (with its location) as parameter to the script (as Ingo confirmed here: http://rapid-i.com/rapidforum/index.php/topic,13.0.html).
Regards,
Matthias
wessel@wegumar7:~/Desktop/rapidminer/lib$ java -Xmx12G -jar rapidminer.jar /home/wessel/Desktop/LelyReposit/rename\ atts.rmp
Then I get the following error:
http://desmond.yfrog.com/Himg38/scaled.php?tn=0&;server=38&filename=selection027.jpg&xsize=640&ysize=640
it seems this parameter should point to a valid repository location instead to a folder in the filesystem. I just tried it, and it worked fine but brought up the GUI with the given process instead of executing it directly. Iif you want a simple shell execution please refer to the start-scripts again - or analyse the scripts to find out which parameters avoid launching the GUI and execute the process directly.
Here an example for a valid call
C:\Matthias\Workspace\Eclipse\RapidMiner_Vega\lib>java -Xmx1G -jar rapidminer.jar "//Test-Repository/Crawler (simple)"
If you have folders or processes with blanks in their names you should quote this parameter (this is also true for the scripts way).
Best regards,
Matthias
Bash uses "\ " for a space.
I named this file "nw".
When I load this file into Rapid Miner, and press run, the .csv gets created fine.
But when I try to run it from the command line using:
wessel@wegumar7:~/Desktop/rapidminer/lib$ java -jar rapidminer.jar -f /home/wessel/TestReposit/nw.rmp
I get:
wessel@wegumar7:~/Desktop/rapidminer/lib$ java -jar rapidminer.jar -f /home/wessel/TestReposit/nw.rmp
2010-09-03 13:27:43 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2010-09-03 13:27:43 CONFIG: Neither system property 'rapidminer.config.dir' nor environment variable 'RAPIDMINER_CONFIG_DIR' not set. Ignored. (ParameterService.getGlobalConfigDir())
2010-09-03 13:27:43 CONFIG: Trying rcfile '/home/wessel/.RapidMiner5/5_0_10_rapidminerrc'...skipped (ParameterService.loadRCFile())
2010-09-03 13:27:43 CONFIG: Read rcfile '/home/wessel/.RapidMiner5/5_0_10_rapidminerrc.Linux'. (ParameterService.loadRCFile())
2010-09-03 13:27:43 CONFIG: Trying rcfile '/home/wessel/Desktop/rapidminer/lib/rapidminerrc'...skipped (ParameterService.loadRCFile())
2010-09-03 13:27:43 CONFIG: Trying rcfile '/home/wessel/Desktop/rapidminer/lib/rapidminerrc.Linux'...skipped (ParameterService.loadRCFile())
2010-09-03 13:27:43 CONFIG: Property rapidminer.rcfile not specified...skipped (ParameterService.loadAllRCFiles())
2010-09-03 13:27:43 CONFIG: Checking for running instance on port 36237. (LaunchListener.getOtherInstance())
2010-09-03 13:27:43 CONFIG: Got exception java.net.ConnectException: Connection refused. Assuming we are the first instance. (LaunchListener.getOtherInstance())
2010-09-03 13:27:43 INFO: Listening for other instances on port 59151. Writing /home/wessel/.RapidMiner5/socket. (LaunchListener.installListener())
java com.rapidminer.gui.RapidMinerGUI [processfile]
wessel@wegumar7:~/Desktop/rapidminer/lib$
No .csv is created on my Desktop.
<?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.10" expanded="true" name="Process">
<process expanded="true" height="145" width="212">
<operator activated="true" class="generate_data" compatibility="5.0.10" expanded="true" height="60" name="Generate Data" width="90" x="112" y="30">
<parameter key="number_examples" value="10"/>
</operator>
<operator activated="true" class="write_csv" compatibility="5.0.10" expanded="true" height="60" name="Write CSV" width="90" x="271" y="39">
<parameter key="csv_file" value="C:\Users\wessel\Desktop\gendata.csv"/>
</operator>
<connect from_op="Generate Data" from_port="output" to_op="Write CSV" to_port="input"/>
<connect from_op="Write CSV" from_port="through" 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>
I've dug through the RM docs, and I purchased the RM5 extension guide (for $$$) but even it doesn't explain how to launch an RMP from the command line in the GUI. (the 4.6 version had no problems)
If I simply create an RPM by opening RapidMinerGUI, throwing something together in the UI, then saving the RMP, you can't launch RapidMinerGUI from the command line with the RMP it just saved.
The exception I'm getting is: RepositoryException: Requested repository null does not exist.
This is only 1 of a number of issues I've run into after moving to RM5 from 4.6. I had to re-write my extensions, (not an issue) now my command line usage of RMP is broken. Using -f when calling RapidMinerGUI results in nothing. No error, RM doesn't launch...
I noticed this thread hasn't been updated since September, and I'm using the latest version of RM5.2. >:(
can you please post your command line which you use to start RapidMiner? It *should* work also in RM5.2.
Best,
Marius
When you want to load a file from a repository your command line must be of the form
RapidMinerGUI //REPOSITORY_NAME/path/to/process
REPOSITORY_NAME is the name of the repository which you have configured in RapidMiner, and path to process the path within the repository as seen in the repository browser within RapidMiner. Btw, you can right-click on a process in the repository browser and select "Copy Location to Clipboard" to get the correct path.
Best,
Marius