2
votes

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.

1

1 Answers

1
votes

I have some similiar set up, the way I return the data is by writing the spark result to HDFS. and when I recieve a SUCCESS I read from the client machine the HDFS to get the result.