Logging on the rapidminer server
Artm
New Altair Community Member
Just playing around as a newbie with the rapidminer server.
I have some questions on logging.
When I run a process on the sever, I get less logging then when running locally.
For instance :
When I run a process with an exeute script step, I do not see any operator.getLog().log("whatever") entries.
Also when using the Print to Console operator, I do not see any of those results in the Log.
Any thoughts about this ?
I was also wondering about how to configure a relative path in the process attrbitue (logfile).
And then specifically, relative to the process definition location.
I have some questions on logging.
When I run a process on the sever, I get less logging then when running locally.
For instance :
When I run a process with an exeute script step, I do not see any operator.getLog().log("whatever") entries.
Also when using the Print to Console operator, I do not see any of those results in the Log.
Any thoughts about this ?
I was also wondering about how to configure a relative path in the process attrbitue (logfile).
And then specifically, relative to the process definition location.
Tagged:
0
Best Answer
-
Hi Artm,
have you tried usingoperator.getLogger().info("foo")
This will re-use the logger of the process instead of creating a new one.
Cheers
Marcel
1
Answers
-
Hi @Artm ,did you try to increase the severity level? Likeoperator.getLog().log("whatever",5)Best,Martin
0 -
@mschmitz, I tried also with the ,5 (warning) addition, but process on server just mentions :Dec 18, 2019 2:39:09 PM com.rapidminer.execution.jobcontainer.execution.SimpleExecutorINFO: Execution of job '6d62d0ec-bc43-4a46-af9f-3cd389b9cab0' finished successfully.
Locally it (only) says :Dec 18, 2019 3:40:15 PM WARNING: whatever0 -
Hi @Artm ,Which log file did you check - server.log?If you run a process on RapidMiner Server it is usually executed in a JobContainer on a JobAgent.You should be able to see the same log output compared to RapidMiner Studio when you take a look at the process execution log which can be found in the RapidMiner Server Webinterface => Executions.Happy Mining,Edin0
-
Hi @Edin, I in fact did look only at the process execution log.
LocallyDec 20, 2019 3:42:12 PM INFO: Process startsDec 20, 2019 3:42:12 PM WARNING: whateverDec 20, 2019 3:42:12 PM INFO: Saving results.Dec 20, 2019 3:42:12 PM INFO: Process finished successfully after 0 s
ServerDec 20, 2019 2:42:49 PM com.rapidminer.tools.ResultService initINFO: No filename given for result file, using stdout for logging results!Dec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processStartsINFO: Execution of process startedDec 20, 2019 2:42:49 PM com.rapidminer.Process executeINFO: Process //_LOCAL/home/artm/processes/dummy startsDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processStartedOperatorINFO: Started operator : ProcessDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processStartedOperatorINFO: Started operator : Execute ScriptDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processFinishedOperatorINFO: Finished operator : Execute ScriptDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processFinishedOperatorINFO: Finished operator : ProcessDec 20, 2019 2:42:49 PM com.rapidminer.Process executeINFO: Process //_LOCAL/home/artm/processes/dummy finished successfully after 0 sDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.ExecutionProcessListener processEndedINFO: Execution of process stoppedDec 20, 2019 2:42:49 PM com.rapidminer.execution.jobcontainer.execution.SimpleExecutorINFO: Execution of job 'df93adee-5e98-41c5-aaf9-50b27cf6b72e' finished successfully.0 -
Hi @Artm ,that is very strange. I get the same output in all execution environments (logverbosity on Process level has been kept to "init").Can you post your process so we can check that?Happy Mining,EdinStudio:Server:JobAgent:
0 -
-
Hi Artm,
have you tried usingoperator.getLogger().info("foo")
This will re-use the logger of the process instead of creating a new one.
Cheers
Marcel
1