问:基于什么文件读取数据 ID=JSvUPH4B1r73GMJAujlh INDEX=1
"使用脚本开发的详情请参见通过脚本模式配置任务。说明 实际运行时,请删除下述代码中的注释。您可以基于HDFS文件和Hive JDBC读取数据:基于HDFS文件读取数据 {""type"": ""job"",""steps"": [{""stepType"": ""hive"",""parameter"": {""partition"": ""pt1=a,pt2=b,pt3=c"", //分区信息""datasource"": ""hive_not_ha_"", //数据源名称""column"": [ //需要读取的字段列""id"",""pt2"",""pt1""],""readMode"": ""hdfs"", //读取方式""table"": ""part_table_1""},""name"": ""Reader"",""category"": ""reader""},{""stepType"": ""hive"",""parameter"": {},""name"": ""Writer"",""category"": ""writer""}],""version"": ""2.0"",""order"": {""hops"": [{""from"": ""Reader"",""to"": ""Writer""}]},""setting"": {""errorLimit"": {""record"": """" //错误记录数},""speed"": {""concurrent"": 2, //作业并发数""throttle"": true,//当throttle值为flase时,mbps参数不生效,表示不限流;当throttle值为true时,表示限流。""mbps"":""12""//限流}}}基于Hive JDBC读取数据 {""type"": ""job"",""steps"": [{""stepType"": ""hive"",""parameter"": {""querySql"": ""select id,name,age from part_table_1 where pt2='B'"",""datasource"": ""hive_not_ha_"", //数据源名称""column"": [ //需要读取的字段列""id"",""name"",""age""],""where"": """",""table"": ""part_table_1"",""readMode"": ""jdbc"" //读取方式},""name"": ""Reader"",""category"": ""reader""} https://help.aliyun.com/document_detail/143413.html 此回答整理自钉群“DataWorks交流群(答疑@机器人)”"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
DataWorks基于MaxCompute/Hologres/EMR/CDP等大数据引擎,为数据仓库/数据湖/湖仓一体等解决方案提供统一的全链路大数据开发治理平台。