"Problems with extension rapidminer in Java"
anonimoper
MemberPosts:10Contributor I
Hi, i have a problem, i can't to execute a plugin of rapidminer. The plugins is /RapidMiner/lib/plugins/rapidminer-Text Processing-5.1.001.jar
This is the code: in build.xml but i have the same error.
Thanks.
This is the code:
and this is error:
import com.rapidminer.RapidMiner;
import com.rapidminer.Process;
import com.rapidminer.example.Attribute;
import com.rapidminer.example.Example;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOContainer;
import com.rapidminer.operator.IOObject;
import com.rapidminer.operator.Operator;
import com.rapidminer.operator.OperatorException;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import com.rapidminer.operator.io.ExcelExampleSource;
import com.rapidminer.repository.IOObjectEntry;
import com.rapidminer.repository.ProcessEntry;
import com.rapidminer.repository.RepositoryLocation;
import com.rapidminer.tools.XMLException;
public class Prueba {
public static void main(String args[]) throws OperatorException, IOException, XMLException {
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process location = new Process(new File("C:\\Users\\lDanny\\.RapidMiner5\\repositories\\Local Repository\\PrimeraVez.rmp"));
IOContainer resultExample = location.run();
System.out.println(resultExample.toString());
System.out.println("am here");
}
}
I tryn to add
异常的线程com.rapidminer.operator“主要”.UserError: The dummy operator Process Documents from Data (replacing text:process_document_from_data) cannot be executed.
at com.rapidminer.operator.DummyOperator.doWork(DummyOperator.java:88)
在com.rapidminer.operator.Operator.execute(Operator.java:867)
at com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
at com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:711)
在com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:375)
在com.rapidminer.operator.Operator.execute(Operator.java:867)
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 fdf.Prueba.main(Prueba.java:34)
Thanks.
Tagged:
0
Answers
1) That extension looks mighty old. Please use the 5.3.x version of it.
2) If it still does nto work, please post the full log when you execute your application.
Regards,
Marco
Log: Thanks.
to get the extension to load from a development environment, it either has to be a managed extension (USER_HOME/.RapidMiner/managed) defined in the managed.xml, or it has to be in the WORKSPACE/RAPIDMINER_PROJECTNAME/lib/plugins folder.
Regards,
Marco
look:
http://www.subirimagenes.net/i/140409040107567861.png
then it fails to use the correct home folder. See the following log part: RapidMiner Home is the root folder of the RapidMiner Studio installation. In that folder it will try to locate /lib/plugins to load extensions. You can set rapidminer.home via system property before calling RapidMiner.init() to the correct folder, e.g. Regards,
Marco