Hello @Pavithra B ,
Welcome to the MS Q&A platform.
A similar thread has been discussed here.
You can look for using java in Azure functions, and then it would be easy to invoke an Azure function from Azure Data Factory.
Also, you can use a Batch account and Web jobs for this.
Please let us know if you have any further questions.