Hi,
we want to use spark in our java web service , compute data in spark cluster according to request,now we have two probles:
1、 how to get sparkSession of remote spark cluster (spark on yarn mode) , we want to keep one sparkSession to execute all data compution;
2、how to submit to remote spark cluster in java code instead of spark-submit , as we want to execute spark code in reponse server;

Thanks for any replys