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] Last phase for my RecSys and integration problem
Hi
I have build chain of process in RapidMiner GUI for my RecommendationSystem .
now I'm trying to build a simple webpage interface for users,but I need to execute Rapidminer's chain of processes within submitting
after inserting the User data into my DB which I build my process to read from it.
which webpage language or tool give me the ability to run java within submitting or do you suggest me any other way run rapidminer process within page submitting ?!
an other problem is that I'm getting exception from netbeans
here is my code:
much of appreciation
Regards
Hattan
I have build chain of process in RapidMiner GUI for my RecommendationSystem .
now I'm trying to build a simple webpage interface for users,but I need to execute Rapidminer's chain of processes within submitting
after inserting the User data into my DB which I build my process to read from it.
which webpage language or tool give me the ability to run java within submitting or do you suggest me any other way run rapidminer process within page submitting ?!
an other problem is that I'm getting exception from netbeans
run:
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\launcher.jar'...gotcha!
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\rapidminer.jar'...gotcha!
Jan 25, 2012 11:08:15 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Jan 25, 2012 11:08:17 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.plugin.Plugin registerOperators
INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.plugin.Plugin registerOperators
WARNING: No operator descriptor defined for: Community
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)'
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Exception in thread "main" com.rapidminer.repository.RepositoryException: Requested repository psf does not exist.
at com.rapidminer.repository.RepositoryManager.getRepository(RepositoryManager.java:189)
at com.rapidminer.repository.RepositoryLocation.getRepository(RepositoryLocation.java:143)
at com.rapidminer.repository.RepositoryLocation.locateEntry(RepositoryLocation.java:166)
at ProcessCreator.ProcessCreator.main(ProcessCreator.java:21)
Java Result: 1
BUILD SUCCESSFUL (total time: 7 seconds)
here is my code:
Please how can I fix it? and what do you recommend me for my webpage interface?
package ProcessCreator;
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.RapidMiner.ExecutionMode;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOContainer;
import com.rapidminer.repository.ProcessEntry;
import com.rapidminer.repository.RepositoryLocation;
public class ProcessCreator {
public static void main(String args[]) throws Exception {
// this initializes RapidMiner with your repositories available
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
RapidMiner.init();
// loads the process from the repository
RepositoryLocation pLoc = new RepositoryLocation("//psf/Home/Documents/Universty 2007-2012/W7 rapidminer repositry/clustering/Adventure.rmp");
ProcessEntry pEntry = (ProcessEntry) pLoc.locateEntry();
String processXML = pEntry.retrieveXML();
Process myProcess = new Process(processXML);
IOContainer ioResult = myProcess.run();
// use the result(s) as needed, for example if your process just returns one ExampleSet, use this:
if (ioResult.getElementAt(0) instanceof ExampleSet) {
ExampleSet resultSet = (ExampleSet)ioResult.getElementAt(0);
}}}
much of appreciation
Regards
Hattan
Tagged:
0
Answers
and still getting Please help me in resolving the error
Thanks
looks like you're trying to use a relative repository location but RapidMiner does not know where the process is coming from - so of course it cannot resolve a relative location. Try this: click
Regards,
Marco
I solved the problem by uncheck"resolve relative to" choice from my operators and then select by absolute repository locations.