Prioritize the rest of the stats-queries over other tasks on the cluster, by putting them in the "analytics" queue.

This commit is contained in:
Lampros Smyrnaios 2024-07-03 19:14:25 +03:00
parent 54e11b6a43
commit aa4d7d5e20
18 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
--------------------------------------------------------------
--------------------------------------------------------------
-- Stats database creation

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
-- Tables/views from external tables/views (Fundref, Country, CountyGDP, roarmap, rndexpediture)

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
----------------------------------------------------------------
----------------------------------------------------------------
-- Post processing - Updates on main tables

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
------------------------------------------------------
------------------------------------------------------
-- Additional relations

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
create view if not exists TARGET.category as select * from SOURCE.category;
create view if not exists TARGET.concept as select * from SOURCE.concept;
create view if not exists TARGET.context as select * from SOURCE.context;

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
drop database if exists TARGET cascade;
create database if not exists TARGET;

View File

@ -1,5 +1,7 @@
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,5 +1,7 @@
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,5 +1,7 @@
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,5 +1,7 @@
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
create table ${observatory_db_name}.result_cc_licence stored as parquet as
select r.id, coalesce(rln.count, 0) > 0 as cc_licence
from ${stats_db_name}.result r

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
------------------------------------------------------
------------------------------------------------------
-- Dataset table/view and Dataset related tables/views

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
--------------------------------------------------------
--------------------------------------------------------
-- Software table/view and Software related tables/views

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Otherresearchproduct table/view and Otherresearchproduct related tables/views

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
------------------------------------------------------
------------------------------------------------------
-- Project table/view and Project related tables/views

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
----------------------------------------------------
----------------------------------------------------
-- Result table/view and Result related tables/views

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
-- noinspection SqlNoDataSourceInspectionForFile
------------------------------------------------------------

View File

@ -1,3 +1,5 @@
set mapred.job.queue.name=analytics; /*EOS*/
----------------------------------------------------------------
----------------------------------------------------------------
-- Organization table/view and Organization related tables/views