# POST /ispatial-data/integrate/importSourceDataToKudu ================================================================================ 创建一个导入任务,并通过指定数据源 将 指定数据 导入至 平台 kudu 库 目前已实现的可集成数据源: 1.ftp 2.oracle 3.hdfs 目前已实现的导入操作: 1.导入 ftp 数据进 kudu,暂时只支持矢量数据(shp),遍历路径参数中所有子文件夹 2.导入 oracle 中存储的 arcsde 矢量数据进 kudu (功能还在优化中) 3.导入 hdfs 中存储的 栅格数据(tif) 进 kudu ## 参数 | 名称 | 类型 | 是否必传 | 备注 | | --------------- | ------ | -------- | ---------------------------------------------------------------------------- | | sourceid | int | N | 数据源 id ,当 localSource 参数不传的时候,这个参数必须传 | | localSource | string | N | 使用本地数据源(可选值:'hdfs'),当 sourceid 参数不传的时候,这个参数必须传 | | dataType | int | Y | 数据类型,1-矢量,2-栅格 | | importType | int | Y | 导入方式:0->新建表,1->导入到已有表 | | createTableName | string | Y | 在 kudu 中创建或插入的数据表名 | | ftpPath | string | | ftp 服务器选择的导入路径 (适用 ftp 集成矢量 ) | | fromTableName | string | | 从哪个表导入 (适用 oracle 集成矢量 ) | | indexFields | string | | 要在 kudu 数据表中创建的索引的字段 (适用 oracle 集成矢量 ) | | filePath | string | | hdfs 上的文件路径,一般使用时为/.../.../\*.TIF (适用 hdfs 集成栅格) | ## 返回 | 名称 | 类型 | 是否必传 | 备注 | | ------ | ---- | -------- | ------------------------------------- | | taskId | int | Y | 导入任务的 id,如果为-1,则任务创建失败 |