yarn_client

package
v0.0.0-...-d973ed3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMNMClient

type AMNMClient struct {
	// contains filtered or unexported fields
}

func CreateAMNMClient

func CreateAMNMClient(host string, port int) (*AMNMClient, error)

func (*AMNMClient) StartContainer

func (c *AMNMClient) StartContainer(container *hadoop_yarn.ContainerProto, containerLaunchContext *hadoop_yarn.ContainerLaunchContextProto) error

type AMRMClient

type AMRMClient struct {
	// contains filtered or unexported fields
}

func CreateAMRMClient

func CreateAMRMClient(conf yarn_conf.YarnConfiguration) (*AMRMClient, error)

func (*AMRMClient) AddRequest

func (c *AMRMClient) AddRequest(priority int32, resourceName string, capability *hadoop_yarn.ResourceProto, numContainers int32) error

func (*AMRMClient) Allocate

func (*AMRMClient) FinishApplicationMaster

func (c *AMRMClient) FinishApplicationMaster(finalStatus *hadoop_yarn.FinalApplicationStatusProto, message string, url string) error

func (*AMRMClient) RegisterApplicationMaster

func (c *AMRMClient) RegisterApplicationMaster(host string, port int32, url string) error

func (*AMRMClient) ReleaseAssignedContainer

func (c *AMRMClient) ReleaseAssignedContainer(containerId *hadoop_yarn.ContainerIdProto)

type AMRMClientAsync

type AMRMClientAsync struct {
	// contains filtered or unexported fields
}

func CreateAMRMClientAsync

func CreateAMRMClientAsync(conf yarn_conf.YarnConfiguration, intervalMs int, handler CallBackHandler) (*AMRMClientAsync, error)

func (*AMRMClientAsync) AddRequest

func (c *AMRMClientAsync) AddRequest(priority int32, resourceName string, capability *hadoop_yarn.ResourceProto, numContainers int32) error

func (*AMRMClientAsync) FinishApplicationMaster

func (c *AMRMClientAsync) FinishApplicationMaster(finalStatus *hadoop_yarn.FinalApplicationStatusProto, message string, url string) error

func (*AMRMClientAsync) RegisterApplicationMaster

func (c *AMRMClientAsync) RegisterApplicationMaster(host string, port int32, url string) error

func (*AMRMClientAsync) ReleaseAssignedContainer

func (c *AMRMClientAsync) ReleaseAssignedContainer(containerId *hadoop_yarn.ContainerIdProto)

type CallBackHandler

type CallBackHandler interface {
	OnContainersCompleted(completedContainers []*hadoop_yarn.ContainerStatusProto)
	OnContainersAllocated(allocatedContainers []*hadoop_yarn.ContainerProto)
	OnShutDownRequest()
	OnNodesUpdated(updatedNodes []*hadoop_yarn.NodeReportProto)
	GetProgress() float64
	OnError(err error)
}

type YarnClient

type YarnClient struct {
	// contains filtered or unexported fields
}

func CreateYarnClient

func CreateYarnClient(conf yarn_conf.YarnConfiguration) (*YarnClient, error)

func (*YarnClient) GetApplicationAttemptReport

func (c *YarnClient) GetApplicationAttemptReport(applicationAttemptId *hadoop_yarn.ApplicationAttemptIdProto) (*hadoop_yarn.ApplicationAttemptReportProto, error)

func (*YarnClient) GetApplicationReport

func (c *YarnClient) GetApplicationReport(applicationId *hadoop_yarn.ApplicationIdProto) (*hadoop_yarn.ApplicationReportProto, error)

func (*YarnClient) SubmitApplication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL