Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Passing values from Java to .rmp
Hello,
I want to make a proccess that will call RM process from java that reads a mysql table. My problem is that I want to define the name of the table outside the RM proccess file. Is there any way of passing any values from my java app to the .rmp with RM functions or i would load .rmp as text, made modifications with regural expressions and then call the process() ?
I need to share the table name from java app to .rmp. or use a java defined mysql shared connection to avoid edditing...
Another solution, is to custom make an operator but I couldnt find any usable examples.
Thx in advance.
I want to make a proccess that will call RM process from java that reads a mysql table. My problem is that I want to define the name of the table outside the RM proccess file. Is there any way of passing any values from my java app to the .rmp with RM functions or i would load .rmp as text, made modifications with regural expressions and then call the process() ?
I need to share the table name from java app to .rmp. or use a java defined mysql shared connection to avoid edditing...
Another solution, is to custom make an operator but I couldnt find any usable examples.
Thx in advance.
0
Answers
please have a look here first, there you can see how to execute processes via java.
On to your question: Yes you can easily ceate the process as described above, then set the parameters of any operators you like via for example Regards,
Marco
I read a 'rmp file', find the xml for the mysql table and change the table name then save file and run().
Thats not the best solution but gave me a hand to move on.
Now I have another poblem... I want to use kMeans from a java Array. Can I have some help on that?
As I thought i should make the array an example table, then exampleSet, then pass it to the kMeans cluster object?
My problem is how can I tell kMeans to get the ExampleSet I ve got as input ? How can I connect the input port with the kmeans?
I found the solution myself (in case everyone else wants to)