mapreduce

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Name               string
	ReduceCounterValue uint64
	MapCounterValue    uint64
	TotalCounterValue  uint64
}

type CounterGroup

type CounterGroup struct {
	CounterGroupName string
	Counters         []Counter `json:"counter"`
}

func GetJobCounters

func GetJobCounters(historyServer string, client http.Client, jobId string) ([]CounterGroup, error)

type Job

type Job struct {
	Id                        string `field:"mapreduce.job.id"`
	Name                      string `field:"mapreduce.job.name"`
	Queue                     string `field:"mapreduce.job.queue"`
	User                      string `field:"mapreduce.job.user"`
	State                     string `field:"mapreduce.job.state"`
	SubmitTime                uint64 `field:"mapreduce.job.submit_time"`
	StartTime                 uint64 `field:"mapreduce.job.start_time"`
	FinishTime                uint64 `field:"mapreduce.job.finish_time"`
	MapsTotal                 int    `field:"mapreduce.job.maps.total"`
	MapsCompleted             int    `field:"mapreduce.job.maps.completed"`
	AvgMapTime                uint64 `field:"mapreduce.job.maps.avg_time"`
	FailedMapAttempts         int    `field:"mapreduce.job.maps.attempts.failed"`
	KilledMapAttempts         int    `field:"mapreduce.job.maps.attempts.killed"`
	SuccessfullMapAttempts    int    `field:"mapreduce.job.maps.attempts.successful"`
	ReducesTotal              int    `field:"mapreduce.job.reduces.total"`
	ReducesCompleted          int    `field:"mapreduce.job.reduces.completed"`
	AvgReduceTime             uint64 `field:"mapreduce.job.reduces.avg_time"`
	FailedReduceAttempts      int    `field:"mapreduce.job.reduces.attempts.failed"`
	KilledReduceAttempts      int    `field:"mapreduce.job.reduces.attempts.killed"`
	SuccessfullReduceAttempts int    `field:"mapreduce.job.reduces.attempts.successful"`
	AvgShuffleTime            uint64 `field:"mapreduce.job.shuffles.avg_time"`
	AvgMergeTime              uint64 `field:"mapreduce.job.merges.avg_time"`
	Uberized                  bool   `field:"mapreduce.job.uberized"`
}

func GetJobSummary

func GetJobSummary(historyServer string, client http.Client, jobId string) (*Job, error)

Jump to

Keyboard shortcuts

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