I think it should be worked, can you please test with 0.4 version of Livy.
Also "conf" should be a map of string key to string value.

"conf" : {"spark.dynamicAllocation.enabled":"false","spark.shuffle.
service.enabled":"false"}

Besides, please be aware in the current Livy we only tested on local and
yarn mode, we don't guarantee the correct behavior using Mesos cluster
manager.

On Fri, Nov 3, 2017 at 5:36 PM, 王峰 <[email protected]> wrote:

> Hello everyone , I have meet a problem about Livy-0.3 when I run `POST
> /sessions` to create a new interactive spark session
>
>
> here is the post body
> ```Content-Type: application/json; charset=utf-8
> {
>   "kind" : "spark",
>   "proxyUser" : "root",
>   "executorMemory" : "4G",
>   "executorCores": 4,
>   "numExecutors" : 4,
>    "conf" : {"spark.dynamicAllocation.enabled":false,"spark.shuffle.
> service.enabled":false}
> }
> ```
>
> However, I found that this Livy session  allocated all of resources in
> Mesos UI as Pic shows
>
> [image: 内嵌图片 1]
>
> It seem like that `conf` did not worked but numExecutors , executorCores
> and executorMemory worked well..
>
> please help me  thanks...
>

Reply via email to