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

"Cannot find main operator description file OperatorsCore.xml"

sunshinesunshine Member Posts: 3 Contributor I
edited June 2019 in Help
Hi, I am a newbie to RapidMiner, and trying execute simple Java app.
I want to import "operators.xml" which I generated before but I get the followin error:
SEVERE: Cannot find main operator description file com/rapidminer/resources/ OperatorsCore.xml.
my source code is as follows: 

import com.rapidminer.RapidMiner;
import com.rapidminer.RapidMiner.ExecutionMode;
import com.rapidminer.RepositoryProcessLocation;
import com.rapidminer.operator.IOContainer;
import com.rapidminer.operator.IOObject;
import com.rapidminer.operator.Operator;
import com.rapidminer.repository.Entry;
import com.rapidminer.repository.ProcessEntry;
import com.rapidminer.repository.RepositoryLocation;
import com.rapidminer.Process;
import com.rapidminer.tools.OperatorService;

public class DBReader {

RepositoryLocation location;

public DBReader() {
System.setProperty("rapidminer.init.operators",".../operatros");
System.setProperty("rapidminer.home",".../rapidminer");
System.setProperty(RapidMiner.PROPERTY_RAPIDMINER_INIT_OPERATORS, ".../OperatorsCore.xml");
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.EMBEDDED_WITH_UI);
RapidMiner.init();
Process process = new Process();
try {
location = new RepositoryLocation(".../operatros");
Entry entry = location.locateEntry();
System.out.println(OperatorService.getOperatorDescription("read_database").getName());
    Operator inputOperator = OperatorService.createOperator("Read Database");

}
catch(Exception e) {
}
}

public static void main(String[] args) {
new DBReader();
}

}

Can you please help me.
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    is there any particular reason why you are not using the suggested method as described here?

    Regards,
    Marco
  • sunshinesunshine Member Posts: 3 Contributor I
    Hi Marco,

    Thanks for the reply, I read it already.

    I was trying to follow the approach you described before in this forum.
    1. Design the processes in RapidMiner GUI. - created classification model.
    Now I want apply to new data from database in my app.
    2. Again, for this created process in GUI. Saved to my repository.
    3. Now trying to Execute it via process.run()

    But not sure how to load this process via java?
  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    there are quite a few ways this can be done, for example like that.

    Regards,
    Marco
Sign In or Register to comment.