final class WorkerEnvironment extends GeneratedMessage with WorkerEnvironmentOrBuilder
Set of callables that can be used to setup, verify, and cleanup the worker environment before the worker callable is invoked. These callables should be specified if the worker setup cannot be assumed to be pre-installed on the target cluster. If defined, the below callables will be invoked once per Spark executor in the following order (top -> bottom): ┌──────────────┐ │ │ │ Verification │ │ │ └──┬────────┬──┘ │ │ Failed │ │ Succeeded │ │ ┌──────▼───────┐│ │ ││ │ Installation ││ │ ││ └──────┬───────┘│ │ │ ▼ ▼ ... UDF worker creation ... │ │ ┌────▼────┐ │ │ │ Cleanup │ │ │ └─────────┘ All scripts are optional. However, if a verification script is supplied, an installation script needs to be supplied as well.
Protobuf type org.apache.spark.udf.worker.WorkerEnvironment
- Annotations
- @Generated()
- Source
- WorkerEnvironment.java
- Alphabetic
- By Inheritance
- WorkerEnvironment
- WorkerEnvironmentOrBuilder
- GeneratedMessage
- Serializable
- AbstractMessage
- Message
- MessageOrBuilder
- AbstractMessageLite
- MessageLite
- MessageLiteOrBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: AnyRef): Boolean
- Definition Classes
- WorkerEnvironment → AbstractMessage → Message → AnyRef → Any
- Annotations
- @Override()
- def findInitializationErrors(): List[String]
- Definition Classes
- AbstractMessage → MessageOrBuilder
- def getAllFields(): Map[FieldDescriptor, AnyRef]
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDefaultInstanceForType(): WorkerEnvironment
- Definition Classes
- WorkerEnvironment → MessageOrBuilder → MessageLiteOrBuilder
- Annotations
- @Override()
- def getDescriptorForType(): Descriptor
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def getEnvironmentCleanup(): ProcessCallable
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_cleanup = 3;- returns
The environmentCleanup.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getEnvironmentCleanupOrBuilder(): ProcessCallableOrBuilder
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_cleanup = 3;- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getEnvironmentVerification(): ProcessCallable
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_verification = 2;- returns
The environmentVerification.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getEnvironmentVerificationOrBuilder(): ProcessCallableOrBuilder
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_verification = 2;- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getField(field: FieldDescriptor): AnyRef
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def getInitializationErrorString(): String
- Definition Classes
- AbstractMessage → MessageOrBuilder
- def getInstallation(): ProcessCallable
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
optional .org.apache.spark.udf.worker.ProcessCallable installation = 1;- returns
The installation.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getInstallationOrBuilder(): ProcessCallableOrBuilder
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
optional .org.apache.spark.udf.worker.ProcessCallable installation = 1;- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def getOneofFieldDescriptor(oneof: OneofDescriptor): FieldDescriptor
- Definition Classes
- GeneratedMessage → AbstractMessage → MessageOrBuilder
- def getParserForType(): Parser[WorkerEnvironment]
- Definition Classes
- WorkerEnvironment → GeneratedMessage → Message → MessageLite
- Annotations
- @Override()
- def getRepeatedField(field: FieldDescriptor, index: Int): AnyRef
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def getRepeatedFieldCount(field: FieldDescriptor): Int
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def getSerializedSize(): Int
- Definition Classes
- WorkerEnvironment → GeneratedMessage → AbstractMessage → MessageLite
- Annotations
- @Override()
- def getUnknownFields(): UnknownFieldSet
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def hasEnvironmentCleanup(): Boolean
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
Callable, which is invoked after all workers have been terminated. This can be used to cleanup dependencies or temporary resources. (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_cleanup = 3;- returns
Whether the environmentCleanup field is set.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def hasEnvironmentVerification(): Boolean
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
Callable, which is called to verify that an environment is suitable to start the UDF worker. This callable needs to verify that - The worker code itself is present - Any needed dependencies are present (Optional)
optional .org.apache.spark.udf.worker.ProcessCallable environment_verification = 2;- returns
Whether the environmentVerification field is set.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def hasField(field: FieldDescriptor): Boolean
- Definition Classes
- GeneratedMessage → MessageOrBuilder
- def hasInstallation(): Boolean
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
A callable that prepares cluster nodes by installing the required runtime, dependencies, and UDF worker binaries at the expected locations. This step ensures that the worker starting callable can subsequently locate and launch the worker process. (Required if environment_verification is given)
optional .org.apache.spark.udf.worker.ProcessCallable installation = 1;- returns
Whether the installation field is set.
- Definition Classes
- WorkerEnvironment → WorkerEnvironmentOrBuilder
- Annotations
- @Override()
- def hasOneof(oneof: OneofDescriptor): Boolean
- Definition Classes
- GeneratedMessage → AbstractMessage → MessageOrBuilder
- def hashCode(): Int
- Definition Classes
- WorkerEnvironment → AbstractMessage → Message → AnyRef → Any
- Annotations
- @Override()
- def internalGetFieldAccessorTable(): FieldAccessorTable
- Attributes
- protected[worker]
- Definition Classes
- WorkerEnvironment → GeneratedMessage
- Annotations
- @Override()
- def internalGetMapFieldReflection(fieldNumber: Int): MapFieldReflectionAccessor
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- final def isInitialized(): Boolean
- Definition Classes
- WorkerEnvironment → GeneratedMessage → AbstractMessage → MessageLiteOrBuilder
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeExtensionsImmutable(): Unit
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilderForType(parent: BuilderParent): Builder
- Attributes
- protected[worker]
- Definition Classes
- WorkerEnvironment → AbstractMessage
- Annotations
- @Override()
- def newBuilderForType(): Builder
- Definition Classes
- WorkerEnvironment → Message → MessageLite
- Annotations
- @Override()
- def newInstance(unused: UnusedPrivateParameter): AnyRef
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parseUnknownField(input: CodedInputStream, unknownFields: Builder, extensionRegistry: ExtensionRegistryLite, tag: Int): Boolean
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- Annotations
- @throws(classOf[java.io.IOException])
- def parseUnknownFieldProto3(input: CodedInputStream, unknownFields: Builder, extensionRegistry: ExtensionRegistryLite, tag: Int): Boolean
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- Annotations
- @throws(classOf[java.io.IOException])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBuilder(): Builder
- Definition Classes
- WorkerEnvironment → Message → MessageLite
- Annotations
- @Override()
- def toByteArray(): Array[Byte]
- Definition Classes
- AbstractMessageLite → MessageLite
- def toByteString(): ByteString
- Definition Classes
- AbstractMessageLite → MessageLite
- final def toString(): String
- Definition Classes
- AbstractMessage → Message → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- AbstractMessageLite → MessageLite
- Annotations
- @throws(classOf[java.io.IOException])
- def writeReplace(): AnyRef
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- Annotations
- @throws(classOf[java.io.ObjectStreamException])
- def writeTo(output: CodedOutputStream): Unit
- Definition Classes
- WorkerEnvironment → GeneratedMessage → AbstractMessage → MessageLite
- Annotations
- @Override()
- def writeTo(output: OutputStream): Unit
- Definition Classes
- AbstractMessageLite → MessageLite
- Annotations
- @throws(classOf[java.io.IOException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def internalGetMapField(fieldNumber: Int): MapField[_ <: AnyRef, _ <: AnyRef]
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- Annotations
- @Deprecated
- Deprecated
- def mergeFromAndMakeImmutableInternal(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): Unit
- Attributes
- protected[protobuf]
- Definition Classes
- GeneratedMessage
- Annotations
- @throws(classOf[com.google.protobuf.InvalidProtocolBufferException]) @Deprecated
- Deprecated