forked from github/dataease
Update ExtractDataService.java
fix: "kettle job 脚本"
This commit is contained in:
parent
16ac056240
commit
8b6dc5c0fa
@ -119,9 +119,9 @@ public class ExtractDataService {
|
||||
|
||||
private static final String dropTableSql = "DROP TABLE IF EXISTS TABLE_NAME;";
|
||||
private static final String shellScript = "result=`curl --location-trusted -u %s:%s -H \"label:%s\" -H \"column_separator:%s\" -H \"columns:%s\" -H \"merge_type: %s\" -T %s -XPUT http://%s:%s/api/%s/%s/_stream_load`\n" +
|
||||
"if [ $? == 0 ] ; then\n" +
|
||||
"if [ $? -eq 0 ] ; then\n" +
|
||||
" failstatus=$(echo $result | grep '\"Status\": \"Fail\"')\n" +
|
||||
" if [[ \"$failstatus\" != \"\" ]]; then\n" +
|
||||
" if [ \"x${failstatus}\" != \"x\" ];then" +
|
||||
" echo $result\n" +
|
||||
" exit 1\n" +
|
||||
" fi\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user