[SOLVED] errors using ExecutionMode.EMBEDDED_WITHOUT_UI but COMMAND_LINE works
Hi I am new at working with RapidMiner and Java and am banging my head on this problem.
I am building a web application that will execute RapidMiner, 5.3.005, several times in a process flow and we need to avoid the startup time on each execution. To avoid this, I am attempting to write a Java application that will act as a server to RapidMiner.
The short story is, I have been able to succesful in integrate simple Java code with my RapidMiner process using
Pete
I am building a web application that will execute RapidMiner, 5.3.005, several times in a process flow and we need to avoid the startup time on each execution. To avoid this, I am attempting to write a Java application that will act as a server to RapidMiner.
The short story is, I have been able to succesful in integrate simple Java code with my RapidMiner process using
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);but that doesn't avoid the startup time on each Process.run(). When I try to use
RapidMiner.setExecutionMode(ExecutionMode.EMBEDDED_WITHOUT_UI);I get many errors with parameter unknown for operator type. My Java code that demonstrates this:
A partial listing of the errors are get are:
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.RapidMiner.ExecutionMode;
import com.rapidminer.operator.OperatorException;
import com.rapidminer.tools.XMLException;
import java.io.File;
import java.io.IOException;
public class RMserver {
public static void main(String[] args) throws OperatorException, IOException, XMLException {
System.out.println("hello world");
RapidMiner.setExecutionMode(ExecutionMode.EMBEDDED_WITHOUT_UI);
RapidMiner.init();
Process rm5 = new Process(new File("/home/petes/Documents/NewRmRepository/FindObjectsStep3Clusters.rmp"));
rm5.run();
}
}
Thanks for any guidance you may provide.
Mar 18, 2013 1:43:24 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: The parameter '<code>parallelize_else</code>' is unknown for operator '<var>Branch</var>' (<code>Branch</code>).
Mar 18, 2013 1:43:24 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: The parameter '<code>parallelize_nested_chain</code>' is unknown for operator '<var>Prep Dimension Data</var>' (<code>Subprocess</code>).
Mar 18, 2013 1:43:24 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: The parameter '<code>parallelize_nested_chain</code>' is unknown for operator '<var>Join, Prep Full Table</var>' (<code>Subprocess</code>).
Mar 18, 2013 1:43:24 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: The parameter '<code>parallelize_nested_chain</code>' is unknown for operator '<var>Trim Prefixes</var>' (<code>Subprocess</code>).
Mar 18, 2013 1:43:24 PM com.rapidminer.io.process.XMLImporter addMessage
INFO: <em class="error">The output port <var>output</var> is unknown at operator <var>Read Document</var>.</em>
Mar 18, 2013 1:43:24 PM com.rapidminer.tools.WrapperLoggingHandler log
INFO: No filename given for result file, using stdout for logging results!
Mar 18, 2013 1:43:24 PM com.rapidminer.Process run
INFO: Process /home/petes/Documents/NewRmRepository/FindObjectsStep3Clusters.rmp starts
Exception in thread "main" com.rapidminer.operator.UserError: The dummy operator Read Document (replacing text:read_document) cannot be executed.
at com.rapidminer.operator.DummyOperator.doWork(DummyOperator.java:88)
at com.rapidminer.operator.Operator.execute(Operator.java:855)
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:855)
at com.rapidminer.Process.run(Process.java:949)
at com.rapidminer.Process.run(Process.java:873)
at com.rapidminer.Process.run(Process.java:832)
at com.rapidminer.Process.run(Process.java:827)
at com.rapidminer.Process.run(Process.java:817)
at RMserverPackage.RMserver.main(RMserver.java:29)
Pete