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
Can I use a trigger without RM server?
mtmtmtmtmt
Member Posts: 8 Learner I
in Help
Hi everyone
I'm taking some data from MSSQL and writing again on SQL. I need a trigger, can I do that without using a server? Pls help
I'm taking some data from MSSQL and writing again on SQL. I need a trigger, can I do that without using a server? Pls help
0
Answers
Dortmund, Germany
check out the script "rapidminer-batch" in your RapidMiner/scripts folder. This can execute the RapidMiner engine from the command line with a process, instead of starting the graphical interface.
Your operating system certainly has a method for scheduling execution of command line processes regularly. So you can periodically execute a RapidMiner process using this method, although clumsily compared to AI Hub.
A trigger is an event-based method execution. Would you want to react to database changes and execute the process then instead of periodic scheduling? This is a bit more complicated but would be better solved with a long-running RapidMiner process that loops and/or waits for the changes and then starts the process you'd like to execute.
Regards,
Balázs
Thanks for your answer. Can you help me for the find scripts. I could not find.
In my installation folder (where the RapidMiner-Studio.sh file is) there's a subfolder called "scripts". This might be in your C:\Program Files folder if you're using Windows.
If you don't find it on your computer, you can extract it from the Linux download file of Studio:
https://my.rapidminer.com/nexus/account/index.html#downloads
(There is a Windows and a Mac file in the scripts folder in this archive, regardless of the name of the download link. This is actually the universal version of RM Studio that works on every operating system with a compatible Java runtime.)
Regards,
Balázs
I found it. Thank you very much. I admire you. But when I clicked to rapidminer-batch folder It is closing suddenly. How can I fix it and what can I text to the command line for starting my rm design?
Make yourself familiar with the command line of your operating system. MacOS and Linux are quite similar, Windows is a bit different.
Make sure you use the RapidMiner command line script matching your operating system. This is rapidminer-batch.bat for Windows, rapidminer-batch.sh for Linux and so on.
Use your terminal or command line application to navigate to the RapidMiner scripts path. Then enter the RapidMiner command line script name, followed by the full path (including the repository name) to the process you'd like to start.
This is how I run the program on Linux:
bash ./rapidminer-batch.sh "//Local\\ Repository/processes/Reporting\\ Demo"
As you can see, my repository name and also the process name have spaces in them. The entire path of my process is inside the "double quotes", and spaces are additionally escaped with \\. This will depend on your operating system and command line shell.
When this works when called manually, you can use the command scheduler of your operating system (e. g. cron on Linux) to execute the command regularly, e. g. every day or every hour.
Regards,
Balázs
I have taken a fault message: Access is denied. What I should do?
you should provide better diagnostic information. Which operating system are you using, what did you enter, what was the command output etc.
Regards,
Balázs
I wrote like above, I use windows os
the fault message is access denied on command block
In my example I refer to a repository path. That's a path you see inside RapidMiner.
Don't call the script with the file path. Use the path in your repository:
//repository/folder/process
Regards,
Balázs
I see, also I tried like you said, but still have an error : access is denied:(
btw thank u for help
"access denied" comes from your operating system.
Analyze the problem step by step. Can you execute just rapidminer-batch? Do you get this (or a similar) output?
If not, you are not calling RapidMiner correctly and you need to fix this yourself.
If this works, look at the output. RapidMiner is very verbose when running. It tells you exactly in the last rows what it can't do.
For example, if I call it with a wrong process path, it returns:
This helps you fix the problem.
Regards,
Balázs