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
[Solved]Convert Graphical Design to Commands in CLI
aryan_hosseinza
Member Posts: 74 Contributor II
Hi everybody,
I've been working with the GUI version of rapidminer up until now , but now I have to run the things on a remote linux system which only provides CLI and not a GUI ,
I'd like to know if there's any way to convert what the design in GUI (all those operators and settings and connections and settings) to arguments which can be executed in CLI,
(e.g. one of the possible solutions that I think is to first create the whole process in the RapidMiner GUI and then feed the rmp file into rapidminer in command line , but how can I do that and I don't know if it is possible)
Best REgards,
Arian
I've been working with the GUI version of rapidminer up until now , but now I have to run the things on a remote linux system which only provides CLI and not a GUI ,
I'd like to know if there's any way to convert what the design in GUI (all those operators and settings and connections and settings) to arguments which can be executed in CLI,
(e.g. one of the possible solutions that I think is to first create the whole process in the RapidMiner GUI and then feed the rmp file into rapidminer in command line , but how can I do that and I don't know if it is possible)
Best REgards,
Arian
0
Answers
17-Nov-2012 7:34:22 AM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
17-Nov-2012 7:34:22 AM com.rapidminer.tools.LaunchListener installListener
INFO: Listening for other instances on port 59254. Writing /home/arian/.RapidMiner5/socket.
java com.rapidminer.gui.RapidMinerGUI [processfile]
As far as I recall, the -f thing is for a windows script, which uses com.rapidminer.RapidMinerCommandLine internally.
Best regards,
Wessel
-Xmx${MAX_JAVA_MEMORY}m \
-XX:MaxPermSize=128m\
-cp ${CLASSPATH} \
-Drapidminer.home=${RAPIDMINER_HOME} \
-Drapidminer.operators.additional=${RAPIDMINER_OPERATORS_ADDITIONAL} \
${RAPIDMINER_JDBC_DRIVER_PARAMETER} \
com.rapidminer.RapidMinerCommandLine $
Note that there is no "-f" here.
Command :
user@Server:~/rapidminer$ java -Xmx2G -jar lib/rapidminer.jar com.rapidminer.RapidMinerCommandLine //RMRepository/Feature_Selection_2.rmp
Result :
Nov 17, 2012 10:19:49 AM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Nov 17, 2012 10:19:49 AM com.rapidminer.tools.LaunchListener installListener
INFO: Listening for other instances on port 38603. Writing /home/arian/.RapidMiner5/socket.
java com.rapidminer.gui.RapidMinerGUI [processfile]
Best Regards,
Arian
Make sure the script doesn't load anything from the repository.
If this script does run, there is a problem with setting the correct relative path, which is always difficult.
Best regards,
Wessel
The remote system is a linux ubuntu , I copied the rapidminer to the home/user folder and created a Repository folder in /home/user/rapidminer , and then I copied the following files in to the repository :
massive_data_generator_feature_selection_.properties
massive_data_generator_feature_selection_.rmp
then, I executed the following command :
user@server:~/rapidminer$ java -Xmx2G -jar lib/rapidminer.jar com.rapidminer.RapidMinerCommandLine //RMRepository2/massive_data_generator_feature_selection_.rmp
result:
Nov 17, 2012 7:08:47 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Nov 17, 2012 7:08:47 PM com.rapidminer.tools.LaunchListener installListener
INFO: Listening for other instances on port 51991. Writing /home/arian/.RapidMiner5/socket.
java com.rapidminer.gui.RapidMinerGUI [processfile]
Do you think the problem is with the relative path ? how can I make it run ?
Regards,
Arian
I will try and upload to a remote Ubuntu machine, and see if I can run it.
I used:
java -cp //home/wln320/RapidMiner5/lib/rapidminer.jar com.rapidminer.RapidMinerCommandLine -f //home/wln320/myrep/csvwrite.rmp
When you want to use relative paths, you should not use "-f" and also not add ".rmp" at the end of your process file.
RapidMiner version 5.2.008, Copyright (C) 2001-2012
RapidMiner comes with ABSOLUTELY NO WARRANTY; This is free software,
and you are welcome to redistribute it under certain conditions;
see license information in the file named LICENSE.
Nov 18, 2012 4:41:44 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Nov 18, 2012 4:41:44 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of '/home/wln320/RapidMiner5/lib/rapidminer.jar'...gotcha!
Nov 18, 2012 4:41:44 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Nov 18, 2012 4:41:44 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Nov 18, 2012 4:41:44 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '/home/wln320/RapidMiner5'.
Nov 18, 2012 4:41:45 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Nov 18, 2012 4:41:46 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Nov 18, 2012 4:41:46 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Nov 18, 2012 4:41:46 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Nov 18, 2012 4:41:46 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Nov 18, 2012 4:41:46 PM com.rapidminer.Process run
INFO: Process /home/wln320/myrep/csvwrite.rmp starts
Nov 18, 2012 4:41:46 PM com.rapidminer.Process run
INFO: Process /home/wln320/myrep/csvwrite.rmp finished successfully after 0 s
Nov 18, 2012 4:41:46 PM com.rapidminer.RapidMinerCommandLine run
INFO: Process finished successfully
Now I can run a very simple design , but for the design that I mentioned (or even a simpler one) it returns me an error :
user@Server:~/rapidminer/RMRepository$ java -cp //home/arian/rapidminer/lib/rapidminer.jar com.rapidminer.RapidMinerCommandLine -f //home/arian/rapidminer/RMRepository/testRemote.rmp
RapidMiner version 5.2.008, Copyright (C) 2001-2012
RapidMiner comes with ABSOLUTELY NO WARRANTY; This is free software,
and you are welcome to redistribute it under certain conditions;
see license information in the file named LICENSE.
Nov 18, 2012 5:06:32 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Nov 18, 2012 5:06:32 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of '/home/arian/rapidminer/lib/rapidminer.jar'...gotcha!
Nov 18, 2012 5:06:32 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Nov 18, 2012 5:06:32 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Nov 18, 2012 5:06:32 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '/home/arian/rapidminer'.
Nov 18, 2012 5:06:33 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Nov 18, 2012 5:06:33 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Nov 18, 2012 5:06:33 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Nov 18, 2012 5:06:33 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Nov 18, 2012 5:06:34 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The operator class 'weka:W-ReliefFAttributeEval' is unknown. Possibly you must install a plugin for operators of group 'weka'.</em>
Nov 18, 2012 5:06:34 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The input port <var>example set</var> is unknown at operator <var>W-ReliefFAttributeEval (3)</var>.</em>
Nov 18, 2012 5:06:34 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The output port <var>weights</var> is unknown at operator <var>W-ReliefFAttributeEval (3)</var>.</em>
Nov 18, 2012 5:06:34 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Nov 18, 2012 5:06:34 PM com.rapidminer.Process run
INFO: Process /home/arian/rapidminer/RMRepository/testRemote.rmp starts
Nov 18, 2012 5:06:34 PM com.rapidminer.RapidMinerCommandLine run
SEVERE: Process failed: The dummy operator W-ReliefFAttributeEval (3) (replacing weka:W-ReliefFAttributeEval) cannot be executed.
com.rapidminer.operator.UserError: The dummy operator W-ReliefFAttributeEval (3) (replacing weka:W-ReliefFAttributeEval) cannot be executed.
at com.rapidminer.operator.DummyOperator.doWork(DummyOperator.java:88)
at com.rapidminer.operator.Operator.execute(Operator.java:834)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
at com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:379)
at com.rapidminer.operator.Operator.execute(Operator.java:834)
at com.rapidminer.Process.run(Process.java:925)
at com.rapidminer.Process.run(Process.java:848)
at com.rapidminer.Process.run(Process.java:807)
at com.rapidminer.Process.run(Process.java:802)
at com.rapidminer.Process.run(Process.java:792)
at com.rapidminer.RapidMinerCommandLine.run(RapidMinerCommandLine.java:145)
at com.rapidminer.RapidMinerCommandLine.main(RapidMinerCommandLine.java:182)
Nov 18, 2012 5:06:34 PM com.rapidminer.RapidMinerCommandLine run
SEVERE: Here: Process[1] (Process)
subprocess 'Main Process'
+- Generate Massive Data[1] (Generate Massive Data)
+- Nominal to Binominal[1] (Nominal to Binominal)
==> +- W-ReliefFAttributeEval (3)[1] (dummy)
Nov 18, 2012 5:06:34 PM com.rapidminer.RapidMinerCommandLine run
SEVERE: Process not successful
It seems that the W-ReliefFAttributeEval doesn't work on the remote machine but it works on my own local machine, what could be the reason ?
Thanks ,
Arian
...
...
SEVERE: Process failed: Cannot store data in repository at entry '//RMRepository/testRemoteStorage'. Reason: Requested repository RMRepository does not exist..
com.rapidminer.operator.UserError: Cannot store data in repository at entry '//RMRepository/testRemoteStorage'. Reason: Requested repository RMRepository does not exist..
...
...
Do you have all the correct files uploaded?
W-.* is Weka stuff, so you need to have the Weka plugin installed.
@ Repository
For repository stuff you might have to change the repositories.xml in the .RapidMiner5 folder.
But I don't fully understand why it sometimes does and does not work.
You need to ask someone one the RapidMiner team.
Best regards,
Wessel
1.What do you mean that I need to install Weka plugin ? I don't have it installed on my local machine , but it works fine , I guess that these are the libraries which were implemented in Weka and now RapidMiner is using them, isn't it the case ?
2.Do you know how I can change the xml file ? (Neither I find the RapidMiner5 folder)
Thanks ,
Arian
http://img1.uploadscreenshot.com/images/orig/11/32218380794-orig.jpg
2. Check out this post:
http://rapid-i.com/rapidforum/index.php/topic,2385.0.html
The repositories.xml is in your home folder.
You can manually edit it or copy it from your local machine.
Should contain entries like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<repositories>
<localRepository>
<file>/full/path/to/your/repository/Repository</file>
<alias>Repository Name</alias>
</localRepository>
</repositories>
but I've got a problem with the performance , do you know how can I make rapidminer (or maybe java) to use more of available cpu ?
Thanks ,
Arian