handler

package
v0.0.0-...-eb0ee05 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HdfsServerConfig *config.HdfsConfig
)

global options in this package.

Functions

func CheckJobManagerLogFile

func CheckJobManagerLogFile(baseServerURL, destPrePath string) (isCompleted bool, err error)

func CheckTaskManagerLogFiles

func CheckTaskManagerLogFiles(baseServerURL, destPrePath string) (bool, error)

func CheckUploadingTask

func CheckUploadingTask(baseServerURL, destPrePath string) (*logpb.TaskStatReply, error)

func DownloadLogFile

func DownloadLogFile(filePath string, stream logpb.LogManager_DownloadJobMgrLogFileServer) (err error)

func GetJobManagerFilePathInHDFS

func GetJobManagerFilePathInHDFS(destPreDirPath, fileName string) string

func GetTaskManagerFilePathInHDFS

func GetTaskManagerFilePathInHDFS(destPreDirPath, fileName, taskManagerID string) string

func Init

func Init(opts ...Option)

func ListHistoryLogFiles

func ListHistoryLogFiles(dirPath string) ([]os.FileInfo, error)

func UploadLogFile

func UploadLogFile(baseServerURL, destPrePath string) (*logpb.UploadFileReply, error)

try to download log file from baseServerURL (flink web restful) and upload file to destPrePath in HDFS

Types

type FileDataBlock

type FileDataBlock struct {
	Data []byte
	Err  error
}

type Option

type Option func()

func WithHdfsConfig

func WithHdfsConfig(hc *config.HdfsConfig) Option

func WithLogger

func WithLogger(lp *glog.Logger) Option

Jump to

Keyboard shortcuts

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