We are using Apache Livy 0.6.0-incubating and using its REST API to make calls to custom spark jar using /batches/ API.
The custom spark code reads data from HDFS and does some processing. This code is successful and the REST response is also 'SUCCESS'. We want the data to be returned back to the client, the way /sessions/ API returns the data. Is there a way to do this?
Note: /sessions/ API can only accept spark scala code.