Documentation
¶
Index ¶
- Constants
- func NewClusterInitializer(l log.Logger, ytc yt.Client, root ypath.Path) strawberry.ClusterInitializer
- func NewController(l log.Logger, ytc yt.Client, root ypath.Path, cluster string, ...) strawberry.Controller
- func VersionType(version string) string
- type ClusterInitializer
- type Config
- type Controller
- func (c *Controller) DescribeOptions(parsedSpeclet any) []strawberry.OptionGroupDescriptor
- func (c *Controller) Family() string
- func (c *Controller) GetOpBriefAttributes(parsedSpeclet any) map[string]any
- func (c *Controller) GetSparkDistrib(ctx context.Context, speclet *Speclet) (name string, path string, err error)
- func (c *Controller) ParseGlobalConf(ctx context.Context) (conf SparkGlobalConf, err error)
- func (c *Controller) ParseSpeclet(specletYson yson.RawValue) (any, error)
- func (c *Controller) ParseVersionConf(ctx context.Context, speclet *Speclet) (conf SparkLaunchConf, err error)
- func (c *Controller) Prepare(ctx context.Context, oplet *strawberry.Oplet) (spec map[string]any, description map[string]any, annotations map[string]any, ...)
- func (c *Controller) Root() ypath.Path
- func (c *Controller) UpdateState() (changed bool, err error)
- type SparkGlobalConf
- type SparkLaunchConf
- type Speclet
Constants ¶
View Source
const ( DefaultDriverCPU = 1 DefaultDriverMemory = 1 * 1024 * 1024 * 1024 DefaultMaxSessions = 3 DefaultSparkVersion = "3.2.2" )
View Source
const (
LivyPort = 27135
)
Variables ¶
This section is empty.
Functions ¶
func NewClusterInitializer ¶
func NewClusterInitializer(l log.Logger, ytc yt.Client, root ypath.Path) strawberry.ClusterInitializer
func NewController ¶
func VersionType ¶
Types ¶
type ClusterInitializer ¶
type ClusterInitializer struct {
// contains filtered or unexported fields
}
func (*ClusterInitializer) ACONamespace ¶
func (initializer *ClusterInitializer) ACONamespace() string
func (*ClusterInitializer) InitializeCluster ¶
func (initializer *ClusterInitializer) InitializeCluster() error
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) DescribeOptions ¶
func (c *Controller) DescribeOptions(parsedSpeclet any) []strawberry.OptionGroupDescriptor
func (*Controller) Family ¶
func (c *Controller) Family() string
func (*Controller) GetOpBriefAttributes ¶
func (c *Controller) GetOpBriefAttributes(parsedSpeclet any) map[string]any
func (*Controller) GetSparkDistrib ¶
func (*Controller) ParseGlobalConf ¶
func (c *Controller) ParseGlobalConf(ctx context.Context) (conf SparkGlobalConf, err error)
func (*Controller) ParseSpeclet ¶
func (c *Controller) ParseSpeclet(specletYson yson.RawValue) (any, error)
func (*Controller) ParseVersionConf ¶
func (c *Controller) ParseVersionConf(ctx context.Context, speclet *Speclet) (conf SparkLaunchConf, err error)
func (*Controller) Root ¶
func (c *Controller) Root() ypath.Path
func (*Controller) UpdateState ¶
func (c *Controller) UpdateState() (changed bool, err error)
type SparkGlobalConf ¶
type SparkLaunchConf ¶
type Speclet ¶
type Speclet struct { DriverCPU *uint64 `yson:"driver_cores"` DriverMemory *uint64 `yson:"driver_memory"` MaxSessions *uint64 `yson:"max_sessions"` MasterGroupID *string `yson:"master_group_id"` SparkMasterAddress *string `yson:"spark_master_address"` SparkVersion *string `yson:"spark_version"` Version *string `yson:"spyt_version"` }
func (*Speclet) DriverCPUOrDefault ¶
func (*Speclet) DriverMemoryOrDefault ¶
func (*Speclet) MaxSessionsOrDefault ¶
func (*Speclet) SparkVersionOrDefault ¶
Click to show internal directories.
Click to hide internal directories.