There is a committed PR from Marcelo Vanzin addressing that capability:

https://github.com/apache/spark/pull/3916/files

Is there any documentation on how to use this?  The PR itself has two comments asking for the docs that were not answered.