Configuration Item | Description |
Resource Configuration Method | Divided into two methods: Cluster Default Configuration and Custom Configuration 1. Use Cluster Default Configuration Use the current task's Compute Resource Cluster Configuration 2. Custom User Custom Executor and Driver Configuration |
Executor Resources | Fill in the required resource count. 1CU is roughly equivalent to 1 CPU core and 4GB memory. 1. Small: Single compute unit (1CU) 2. Medium: Two compute units (2CU) 3. Large: Four compute units (4CU) 4. Xlarge: Eight compute units (8CU) |
Number of Executors | Executor is a compute node or instance responsible for executing tasks and handling compute work. Each Executor uses the configured resource count. |
driver Resources | Fill in the required Driver resource count. 1CU is roughly equivalent to 1 CPU core and 4GB memory. 1. Small: Single compute unit (1CU) 2. Medium: Two compute units (2CU) 3. Large: Four compute units (4CU). 4. Xlarge: Eight compute units (8CU). |
-- Create a User Information Tablecreate table if not exists wedata_demo_db.user_info (user_id string COMMENT 'User ID',user_name string COMMENT 'Username',user_age int COMMENT 'Age',city string COMMENT 'City') COMMENT 'User Information Table';-- Insert data into the User Information Tableinsert into wedata_demo_db.user_info values ('001', 'Zhang San', 28, 'Beijing');insert into wedata_demo_db.user_info values ('002', 'Li Si', 35, 'Shanghai');insert into wedata_demo_db.user_info values ('003', 'Wang Wu', 22, 'Shenzhen');insert into wedata_demo_db.user_info values ('004', 'Zhao Liu', 45, 'Guangzhou');insert into wedata_demo_db.user_info values ('005', 'Xiao Ming', 20, 'Beijing');insert into wedata_demo_db.user_info values ('006', 'Xiao Hong', 30, 'Shanghai');insert into wedata_demo_db.user_info values ('007', 'Xiao Gang', 25, 'Shenzhen');insert into wedata_demo_db.user_info values ('008', 'Xiao Li', 40, 'Guangzhou');insert into wedata_demo_db.user_info values ('009', 'Xiao Zhang', 23, 'Beijing');insert into wedata_demo_db.user_info values ('010', 'Xiao Wang', 50, 'Shanghai');select * from wedata_demo_db.user_info;
CREATE TABLE `cpt_demo`.`dempts` (id bigint COMMENT 'id number',num int,eno float,dno double,cno decimal(9,3),flag boolean,data string,ts_year timestamp,date_month date,bno binary,point struct<x: double, y: double>,points array<struct<x: double, y: double>>,pointmaps map<struct<x: int>, struct<a: int>>)COMMENT 'table documentation'PARTITIONED BY (bucket(16, id), years(ts_year), months(date_month), identity(bno), bucket(3, num), truncate(10, data));
CREATE TABLE `cpt_demo`.`dempts` (id bigint COMMENT 'id number',num int,eno float,dno double,cno decimal(9,3),flag boolean,data string,ts_year timestamp,date_month date,bno binary,point struct<x: double, y: double>,points array<struct<x: double, y: double>>,pointmaps map<struct<x: int>, struct<a: int>>)COMMENT 'table documentation'PARTITIONED BY (bucket(16, id), years(ts_year), months(date_month), identity(bno), bucket(3, num), truncate(10, data));
CREATE TABLE `cpt_demo`.`dempts` (id bigint COMMENT 'id number',num int,eno float,dno double,cno decimal(9,3),flag boolean,data string,ts_year timestamp,date_month date,bno binary,point struct<x: double, y: double>,points array<struct<x: double, y: double>>,pointmaps map<struct<x: int>, struct<a: int>>)COMMENT 'table documentation'PARTITIONED BY (id, ts_year, date_month);
Was this page helpful?