livy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaggal, Vinod C." <Kaggal.Vi...@mayo.edu>
Subject using conf parameter via REST
Date Wed, 17 Jan 2018 22:33:09 GMT
Hi!

In the “POST /batches” section, the documentation suggests that we can have “conf”
as part of the request body. Would you be able to direct me to an example of how to post key=value
as part of conf parameter?

This command works:

curl -X POST -u me https://<server>/knox/livy/v1/batches -H 'X-Requested-By: livy' -H
'cache-control: no-cache' -H 'content-type: application/json' -d '{ "className": "mySparkClass",
"file": "/user/me/spark-utils/spark-utils-1.0.1-SNAPSHOT.jar", "executorMemory": "512m", "driverMemory":
"512m", "proxyUser": "me" }'


This is how I tried to add a conf parameter as step one which did not work:
curl -X POST -u me https://<server>/knox/livy/v1/batches -H 'X-Requested-By: livy' -H
'cache-control: no-cache' -H 'content-type: application/json' -d '{ "className": "mySparkClass",
"file": "/user/me/spark-utils/spark-utils-1.0.1-SNAPSHOT.jar", "executorMemory": "512m", "driverMemory":
"512m", "proxyUser": "me",  "conf": "path=/user/mydir"}'

How would I submit a map of key=val? Your help would be appreciated!

Thanks,
Vinod


Mime
View raw message