表名:ftp_tasks ================================== # 字段 | 列名 | 类型 | 是否非空 | 默认值 | 备注 | | -------- | -------------- | -------- | ------ | ------------------------------------------ | | id | big increament | not null | null | 自增ID | | ip | string | not null | null | 服务器IP | | port | short | not null | 21 | 端口号 | | username | string | not null | null | 用户名 | | password | string | not null | null | 密码,如果是SFTP则为密钥 | | dir | string | not null | null | FTP路径 | | subdir | boolean | not null | true | 是否扫描子目录 | | regex | string | not null | "" | 正则表达式 | | hdfsdir | string | not null | null | HDFS路径 | | inc | boolean | not null | true | 是否增量,false为全量采集 | | secure | boolean | not null | true | 是否SFTP,false为FTP | | cron | string | not null | "" | 定时调度,仅增量使用,为空则不启动定时调度 | # 索引 无