forked from D-Net/dnet-hadoop
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:
parent
54e11b6a43
commit
aa4d7d5e20
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
-- Stats database creation
|
-- Stats database creation
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------
|
||||||
------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------
|
||||||
-- Tables/views from external tables/views (Fundref, Country, CountyGDP, roarmap, rndexpediture)
|
-- Tables/views from external tables/views (Fundref, Country, CountyGDP, roarmap, rndexpediture)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
-- Post processing - Updates on main tables
|
-- Post processing - Updates on main tables
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
-- Additional relations
|
-- Additional relations
|
||||||
|
|
|
@ -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.category as select * from SOURCE.category;
|
||||||
create view if not exists TARGET.concept as select * from SOURCE.concept;
|
create view if not exists TARGET.concept as select * from SOURCE.concept;
|
||||||
create view if not exists TARGET.context as select * from SOURCE.context;
|
create view if not exists TARGET.context as select * from SOURCE.context;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
drop database if exists TARGET cascade;
|
drop database if exists TARGET cascade;
|
||||||
create database if not exists TARGET;
|
create database if not exists TARGET;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
drop database if exists TARGET cascade;
|
drop database if exists TARGET cascade;
|
||||||
create database if not exists TARGET;
|
create database if not exists TARGET;
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
|
|
||||||
create table TARGET.result stored as parquet as
|
create table TARGET.result stored as parquet as
|
||||||
select distinct * from (
|
select distinct * from (
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
drop database if exists TARGET cascade;
|
drop database if exists TARGET cascade;
|
||||||
create database if not exists TARGET;
|
create database if not exists TARGET;
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
|
|
||||||
create table TARGET.result stored as parquet as
|
create table TARGET.result stored as parquet as
|
||||||
select distinct * from (
|
select distinct * from (
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
drop database if exists TARGET cascade;
|
drop database if exists TARGET cascade;
|
||||||
create database if not exists TARGET;
|
create database if not exists TARGET;
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
|
|
||||||
create table TARGET.result stored as parquet as
|
create table TARGET.result stored as parquet as
|
||||||
select distinct * from (
|
select distinct * from (
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
drop database if exists TARGET cascade;
|
drop database if exists TARGET cascade;
|
||||||
create database if not exists TARGET;
|
create database if not exists TARGET;
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
|
|
||||||
create table TARGET.result stored as parquet as
|
create table TARGET.result stored as parquet as
|
||||||
select distinct * from (
|
select distinct * from (
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
create table ${observatory_db_name}.result_cc_licence stored as parquet as
|
create table ${observatory_db_name}.result_cc_licence stored as parquet as
|
||||||
select r.id, coalesce(rln.count, 0) > 0 as cc_licence
|
select r.id, coalesce(rln.count, 0) > 0 as cc_licence
|
||||||
from ${stats_db_name}.result r
|
from ${stats_db_name}.result r
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
-- Dataset table/view and Dataset related tables/views
|
-- Dataset table/view and Dataset related tables/views
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
--------------------------------------------------------
|
--------------------------------------------------------
|
||||||
--------------------------------------------------------
|
--------------------------------------------------------
|
||||||
-- Software table/view and Software related tables/views
|
-- Software table/view and Software related tables/views
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- Otherresearchproduct table/view and Otherresearchproduct related tables/views
|
-- Otherresearchproduct table/view and Otherresearchproduct related tables/views
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
-- Project table/view and Project related tables/views
|
-- Project table/view and Project related tables/views
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
-- Result table/view and Result related tables/views
|
-- Result table/view and Result related tables/views
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
-- noinspection SqlNoDataSourceInspectionForFile
|
-- noinspection SqlNoDataSourceInspectionForFile
|
||||||
|
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
set mapred.job.queue.name=analytics; /*EOS*/
|
||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
-- Organization table/view and Organization related tables/views
|
-- Organization table/view and Organization related tables/views
|
||||||
|
|
Loading…
Reference in New Issue