https://help.aliyun.com/document_detail/27971.html#section-7ce-cnh-euq

同意

然后会自动让你开通DataWorks,选择免费开通基础版





填写信息

等待构建完成即可

解压打开


具体配置如下:
project_name=
access_id=
access_key=
end_point=
log_view_host=
https_check=
# confirm threshold for query input size(unit: GB)
data_size_confirm=
# this url is for odpscmd update
update_url=
# download sql results by instance tunnel
use_instance_tunnel=
# the max records when download sql results by instance tunnel
instance_tunnel_max_record=
# IMPORTANT:
# If leaving tunnel_endpoint untouched, console will try to automatically get one from odps service, which might charge networking fees in some cases.
# Please refer to Endpoint
# tunnel_endpoint=
# use set.<key>=
# e.g. set.odps.sql.select.output.format=

点击创建








https://help.aliyun.com/document_detail/27833.html


以gender为分区
create test02_p(id int,name string) partitioned by(gender string);
alter table test02_p add if not exists partition (gender='male');


tunnel upload D:\2020-2024大学学习\大数据考证\实验数据\ODPS_DEMO\Resources\02-DataTransfer\t_tunnel_p.csv test02_p/gender='male';

select * from test02_p where gender='male';

