Packages

c

org.apache.spark.resource

ResourceDiscoveryScriptPlugin

class ResourceDiscoveryScriptPlugin extends ResourceDiscoveryPlugin with Logging

Developer API

The default plugin that is loaded into a Spark application to control how custom resources are discovered. This executes the discovery script specified by the user and gets the json output back and constructs ResourceInformation objects from that. If the user specifies custom plugins, this is the last one to be executed and throws if the resource isn't discovered.

Annotations
@DeveloperApi()
Source
ResourceDiscoveryScriptPlugin.scala
Since

3.0.0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceDiscoveryScriptPlugin
  2. Logging
  3. ResourceDiscoveryPlugin
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResourceDiscoveryScriptPlugin()

Value Members

  1. def discoverResource(request: ResourceRequest, sparkConf: SparkConf): Optional[ResourceInformation]