conf

package
v0.0.0-...-4e92e14 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 1 Imported by: 26

Documentation

Index

Constants

View Source
const (
	YARN_PREFIX                      = "yarn."
	RM_PREFIX                        = YARN_PREFIX + "resourcemanager."
	RM_ADDRESS                       = RM_PREFIX + "address"
	DEFAULT_RM_ADDRESS               = "0.0.0.0:8032"
	RM_SCHEDULER_ADDRESS             = RM_PREFIX + "scheduler.address"
	DEFAULT_RM_SCHEDULER_ADDRESS     = "0.0.0.0:8030"
	RM_AM_EXPIRY_INTERVAL_MS         = YARN_PREFIX + "am.liveness-monitor.expiry-interval-ms"
	DEFAULT_RM_AM_EXPIRY_INTERVAL_MS = 600000
)

Variables

View Source
var (
	YARN_DEFAULT hadoop_conf.Resource = hadoop_conf.Resource{"yarn-default.xml", false}
	YARN_SITE    hadoop_conf.Resource = hadoop_conf.Resource{"yarn-site.xml", true}
)

Functions

This section is empty.

Types

type YarnConfiguration

type YarnConfiguration interface {
	GetRMAddress() (string, error)
	GetRMSchedulerAddress() (string, error)

	SetRMAddress(address string) error
	SetRMSchedulerAddress(address string) error

	Get(key string, defaultValue string) (string, error)
	GetInt(key string, defaultValue int) (int, error)

	Set(key string, value string) error
	SetInt(key string, value int) error
}

func NewYarnConfiguration

func NewYarnConfiguration() (YarnConfiguration, error)

Jump to

Keyboard shortcuts

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