You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
931 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

1、执行接口拉取远程数据库写入文件这个接口只是暂时用后面正式任务配置在数据库的
http://127.0.0.1:18081/batch/test/getTables
接口参数>>
dbName数据库、必填yml文件中
sqlSQL语句、必填不要“;”号)
fieldSeparator字段分隔非必填默认“\t”
filename文件名非必填填了则会追加写入反之每次创建一个例如jsyHiveDs-table-2023-08-02-164409.txt
2、登录sptcc@10.10.241.208服务器,文件生成目录在 /home/sptcc/read_write_data
3、执行命令
curl -X POST -d 'dbName=jsyHiveDs&sql=show tables&fieldSeparator=,&filename=ceshi' http://127.0.0.1:18081/batch/test/getTables
同步的,任务执行结束才会返回如下内容:(如有错误看日志 agile-batch-service/logs/
{
"code" : 200,
"msg" : "操作成功"
}