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
"how to execute a process with macro variables at the command line"
I have reviewed several post in trying to understand how to execute my RapidMiner process from the command line...
HERE IS THE COMMAND I RUN:
$ ./scripts/rapidminer -f ../DUMMY-SO2/TTT_REFACTORING/HTTP_ct5_categories.rmp "-MdateT=2010-11-11" "-Mtmzone=PST" "-MOutFile=/tmp/HTTP_ct5_cat_result.csv"
* When I run the process "HTTP_ct5_categories" from the GUI - I pass the process-context-macro: dateT , tmzone , OutFile
I'm trying to pass these macro variables at the command line.
Here is the output when I run it from command line:
ubuntu:~/Rapid/rapidminer$ ./scripts/rapidminer -f ../DUMMY-SO2/TTT_REFACTORING/HTTP_ct5_categories.rmp "-MdateT=2010-11-11" "-Mtmzone=PST" "-MOutFile=/tmp/HTTP_ct5_cat_result.csv"
RAPIDMINER_HOME is not set. Trying the directory '.'...
No maximum Java memory defined, using 512 Mb...
Starting RapidMiner from '.', using classes from './lib/rapidminer.jar'...
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.
Dec 3, 2012 5:10:24 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '.'.
Dec 3, 2012 5:10:26 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Dec 3, 2012 5:10:26 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Dec 3, 2012 5:10:27 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '.'.
Dec 3, 2012 5:10:39 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Dec 3, 2012 5:10:40 PM com.rapidminer.tools.plugin.Plugin registerOperators
INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit.
Dec 3, 2012 5:10:40 PM com.rapidminer.tools.plugin.Plugin registerOperators
WARNING: No operator descriptor defined for: Community
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
WARNING: Driver jar file /home/movik-admin/Rapid/rapidminer referenced for JDBC driver unknown does not exist.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver not found in {2}
Dec 3, 2012 5:10:41 PM com.rapidminer.RapidMiner readProcessFile
SEVERE: Cannot read process definition file -MOutFile=/tmp/HTTP_ct5_cat_result.csv!
Dec 3, 2012 5:10:41 PM com.rapidminer.RapidMinerCommandLine run
WARNING: Cannot read process setup -MOutFile=/tmp/HTTP_ct5_cat_result.csv: -MOutFile=/tmp/HTTP_ct5_cat_result.csv (No such file or directory)
java.io.FileNotFoundException: -MOutFile=/tmp/HTTP_ct5_cat_result.csv (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.rapidminer.Process.<init>(Process.java:231)
at com.rapidminer.RapidMiner.readProcessFile(RapidMiner.java:464)
at com.rapidminer.RapidMiner.readProcessFile(RapidMiner.java:453)
at com.rapidminer.RapidMinerCommandLine.run(RapidMinerCommandLine.java:127)
at com.rapidminer.RapidMinerCommandLine.main(RapidMinerCommandLine.java:182)
HERE IS THE COMMAND I RUN:
$ ./scripts/rapidminer -f ../DUMMY-SO2/TTT_REFACTORING/HTTP_ct5_categories.rmp "-MdateT=2010-11-11" "-Mtmzone=PST" "-MOutFile=/tmp/HTTP_ct5_cat_result.csv"
* When I run the process "HTTP_ct5_categories" from the GUI - I pass the process-context-macro: dateT , tmzone , OutFile
I'm trying to pass these macro variables at the command line.
Here is the output when I run it from command line:
ubuntu:~/Rapid/rapidminer$ ./scripts/rapidminer -f ../DUMMY-SO2/TTT_REFACTORING/HTTP_ct5_categories.rmp "-MdateT=2010-11-11" "-Mtmzone=PST" "-MOutFile=/tmp/HTTP_ct5_cat_result.csv"
RAPIDMINER_HOME is not set. Trying the directory '.'...
No maximum Java memory defined, using 512 Mb...
Starting RapidMiner from '.', using classes from './lib/rapidminer.jar'...
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.
Dec 3, 2012 5:10:24 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '.'.
Dec 3, 2012 5:10:26 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Dec 3, 2012 5:10:26 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Dec 3, 2012 5:10:27 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: rapidminer.home is '.'.
Dec 3, 2012 5:10:39 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Dec 3, 2012 5:10:40 PM com.rapidminer.tools.plugin.Plugin registerOperators
INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit.
Dec 3, 2012 5:10:40 PM com.rapidminer.tools.plugin.Plugin registerOperators
WARNING: No operator descriptor defined for: Community
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
WARNING: Driver jar file /home/movik-admin/Rapid/rapidminer referenced for JDBC driver unknown does not exist.
Dec 3, 2012 5:10:41 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver not found in {2}
Dec 3, 2012 5:10:41 PM com.rapidminer.RapidMiner readProcessFile
SEVERE: Cannot read process definition file -MOutFile=/tmp/HTTP_ct5_cat_result.csv!
Dec 3, 2012 5:10:41 PM com.rapidminer.RapidMinerCommandLine run
WARNING: Cannot read process setup -MOutFile=/tmp/HTTP_ct5_cat_result.csv: -MOutFile=/tmp/HTTP_ct5_cat_result.csv (No such file or directory)
java.io.FileNotFoundException: -MOutFile=/tmp/HTTP_ct5_cat_result.csv (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.rapidminer.Process.<init>(Process.java:231)
at com.rapidminer.RapidMiner.readProcessFile(RapidMiner.java:464)
at com.rapidminer.RapidMiner.readProcessFile(RapidMiner.java:453)
at com.rapidminer.RapidMinerCommandLine.run(RapidMinerCommandLine.java:127)
at com.rapidminer.RapidMinerCommandLine.main(RapidMinerCommandLine.java:182)
0
Answers
this looks like a bug. What happens if you move the -f argument to the end of the command line? Have you tried to access a process via its repository location instead of plain file access, as in Marcin's example in this thread: http://rapid-i.com/rapidforum/index.php/topic,5545.msg19659.html#msg19659
Best regards,
Marius
Marcin - thanks for the post, looks like I will have to wait the next release.
This format is incorrect: "-MdateT=2010-11-11"
The correct one is: -"MdateT=2010-11-11"
Nice day!