curl-v-XPOSThttp://172.30.16.110:19999/v1/load?path=s3://test&opType=submit# 输出示例* About to connect() to 172.30.16.110 port 19999 (#0)*Trying172.30.16.110...* Connected to 172.30.16.110 (172.30.16.110) port 19999 (#0)>POST/v1/load?path=s3://test&opType=submitHTTP/1.1> User-Agent: curl/7.29.0> Host: 172.30.16.110:19999> Accept: */*> Content-Length: 183>* upload completely sent off: 183 out of 183 bytes< HTTP/1.1 200 OK< Date: Wed, 10 Apr 2024 05:47:17 GMT< Content-Length: 4< Server: Jetty(9.4.53.v20231009)<* Connection #0 to host 172.30.16.110 left intacttrue
可以通过发送路径相同的 GET 请求,并将 progress 作为 opType 查询参数来检查进度。
curl-v-XGEThttp://host:19999/v1/load?path=s3://test&opType=progress结果:* About to connect() to 172.30.16.110 port 19999 (#0)*Trying172.30.16.110...* Connected to 172.30.16.110 (172.30.16.110) port 19999 (#0)>GET/v1/load?path=s3://test&opType=progress> User-Agent: curl/7.29.0> Host: 172.30.16.110:19999> Accept: */*> Content-Length: 81>* upload completely sent off: 81 out of 81 bytes< HTTP/1.1 200 OK< Date: Wed, 10 Apr 2024 05:48:49 GMT< Content-Length: 572< Server: Jetty(9.4.53.v20231009)<* Connection #0 to host 172.30.16.110 left intact"{\"mVerbose\":true,\"mJobState\":\"RUNNING\",\"mVerificationEnabled\":false,\"mSkippedByteCount\":0,\"mLoadedByteCount\":0,\"mScannedInodesCount\":18450,\"mLoadedNonEmptyFileCopiesCount\":0,\"mThroughput\":0,\"mFailureFilesPercentage\":0.0,\"mFailureSubTasksPercentage\":0.0,\"mRetrySubTasksPercentage\":0.0,\"mFailedFileCount\":0,\"mRecentFailedSubtasksWithReasons\":[],\"mRecentRetryingSubtasksWithReasons\":[],\"mSkipIfExists\":true,\"mMetadataOnly\":true,\"mRunningStage\":\"LOADING\",\"mRetryDeadLetterQueueSize\":0,\"mTimeElapsed\":87237,\"mSegmentEnabled\":false}"
curl-v-XPOSThttp://host:19999/v1/load?path=s3://test&opType=stop* 结果示例:* About to connect() to 172.30.16.110 port 19999 (#0)*Trying172.30.16.110...* Connected to 172.30.16.110 (172.30.16.110) port 19999 (#0)>POST/v1/load?path=s3://test&opType=stop> User-Agent: curl/7.29.0> Host: 172.30.16.110:19999> Accept: */*> Content-Length: 42>* upload completely sent off: 42 out of 42 bytes< HTTP/1.1 200 OK< Date: Wed, 10 Apr 2024 05:51:56 GMT< Content-Length: 5< Server: Jetty(9.4.53.v20231009)<* Connection #0 to host 172.30.16.110 left intacttrue