You can translate the question and the replies:

scheduler load process report

Hi Team, how denodo stores scheduler load process reports for cache jobs. how can we bring that in to denodo vdp. Thanks.
user
09-02-2022 14:25:12 -0500
code

3 Answers

Hi, For your scenario, you could create a program using the [Scheduler API](https://community.denodo.com/docs/html/browse/latest/en/scheduler/javadoc/index#scheduler-api-javadoc) to export job reports. For more information, you could refer to the [Scheduler RMI Client API](https://community.denodo.com/docs/html/browse/latest/en/scheduler/administration/developer_api/scheduler_client_api/scheduler_client_api#scheduler-rmi-client-api) section of the Scheduler Administration Guide. Alternatively, you can configure [Mail Settings](https://community.denodo.com/docs/html/browse/latest/en/scheduler/administration/administration/server_configuration/server_setup#mail-settings) in the Scheduler Administration Tool and send the reports of your VDPCache Job to list of email addresses specified in the [Handler Section](https://community.denodo.com/docs/html/browse/latest/en/scheduler/administration/creating_and_scheduling_jobs/configuring_new_jobs/handler_section#handler-section) of your VDPCache job. Hope this helps!
Denodo Team
10-02-2022 07:54:16 -0500
code
Hi Team, specifically what API to choose and any syntax/program avaialble for reference ? and is load process report data stored anywhere by denodo ? Thanks.
user
15-02-2022 00:58:41 -0500
Hi, The job reports are stored in the Scheduler metadata database but accessing or modifying it directly is not recommended. Besides, either configuring the Mail handler or creating a program using the [Scheduler RMI Client API](https://community.denodo.com/docs/html/browse/latest/en/scheduler/administration/developer_api/scheduler_client_api/scheduler_client_api#scheduler-rmi-client-api) to export [VDPCache job reports](https://community.denodo.com/docs/html/browse/latest/en/scheduler/javadoc/com/denodo/scheduler/client/job/report/VDPCacheJobReport.html). You can refer to the [Scheduler API Javadoc](https://community.denodo.com/docs/html/browse/latest/en/scheduler/javadoc/index#scheduler-api-javadoc) and the sample can be found in <DENODO_HOME>/samples/scheduler/scheduler-api” Alternatively, you can also make use of the [Scheduler REST Client API](https://community.denodo.com/docs/html/browse/latest/en/scheduler/administration/developer_api/rest_api/rest_api) provided by the Scheduler Administration Tool for interacting with the scheduler server. For example, to visualize the Scheduler Job reports in the Virtual DataPort Administration Tool, I would do the following steps, * Create a [JSON data source](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_data_sources_and_base_views/json_sources/json_sources) using “HTTP” as Data Route * Configure the data route with HTTP method as “GET” for the endpoint “http://<host>:<web_container_port>/webadmin/denodo-scheduler-admin/public/api/jobs?uri=%2F%2F<host>%3A<scheduler_server_port>” * Also set up the authentication as basic with credentials to login to the scheduler server. * Create base view from this source. * Create a [flatten view](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_derived_views/creating_flatten_views/creating_flatten_views) over this base view to obtain the project ID and job ID of all scheduler jobs. * Create another JSON data source by following the same steps above(creating flatten view not required) for the endpoint “http://<host>:<web_container_port>/webadmin/denodo-scheduler-admin/public/api/projects/@project_id/jobs/@report_id/reports?count=<value>&start=<value>&uri=%2F%2F<host>%3A<scheduler_server_port>”. * Create base view by providing the values sample values(you can execute the base view created from step 1 and use one of its results here) for the interpolation variables. * Create [Join View](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/creating_derived_views/creating_join_views/creating_join_views) over the flatten view(from step1) and base view(from step 2) with a join condition between the following * id(from flattened view) and report_id(base view from step 2) * projectid(from the flattened view) and project_id(base view from step 2) * Execute this join view to get the reports of all the jobs Hope this helps!
Denodo Team
16-02-2022 06:39:48 -0500
code
You must sign in to add an answer. If you do not have an account, you can register here