spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaoyu Wang <>
Subject How to set local property in beeline connect to the spark thrift server
Date Wed, 31 Dec 2014 07:55:49 GMT
Hi all!

I use Spark SQL1.2 start the thrift server on yarn.

I want to use fair scheduler in the thrift server.

I set the properties in spark-defaults.conf like this:
spark.scheduler.mode FAIR

In the thrift server UI can see the scheduler pool is ok.
[image: 内嵌图片 1]

How can I specify one sql job to the "test" pool.
By default the sql job run in the "default" pool.

In the document
I see sc.setLocalProperty("spark.scheduler.pool", "pool1") can be set in
the code.

In the beeline I execute "set spark.scheduler.pool=test", but no use.
But how can I set the local property in the beeline?

View raw message