Kill task through command line

Hi,

As I am using shared cluster, we need to pass the username to delete the data from HDFS. We cannot pass the permissions using APIs. Is it possible to execute the kill task through command line ?

Thanks,

Santhosh Tangudu

Yes, you can issue a curl command to an HTTP endpoint.

Can you tell me how to issue kill task through command line?
or

Can you tell how to send user information using Curl command to avoid permissions issue?