internal

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

This section is empty.

Functions

func DownloadSelectedFile

func DownloadSelectedFile(logger *glog.Logger, fileURL string, writer io.Writer) (err error)

func GetClient

func GetClient(hdfsConfig *config.HdfsConfig) (*hdfs.Client, error)

func GetHdfsDirPath

func GetHdfsDirPath(space_id, flow_id, inst_id, managerName string) string

func GetHdfsJobMgrFilePath

func GetHdfsJobMgrFilePath(space_id, flow_id, inst_id, fileName string) string

func GetHdfsTaskMgrFilePath

func GetHdfsTaskMgrFilePath(space_id, flow_id, inst_id, taskManagerID, fileName string) string

func GetJobManagerLogFileURL

func GetJobManagerLogFileURL(baseServerURL, fileName string) string

func GetJobManagerLogsURL

func GetJobManagerLogsURL(baseServerURL string) string

func GetTaskManagerIDs

func GetTaskManagerIDs(logger *glog.Logger, baseServerURL string) ([]string, error)

baseServerURL format [http://ip:port] e.g. "http://127.0.0.1:8081"

func GetTaskManagerLogFileURL

func GetTaskManagerLogFileURL(baseServerURL, taskManagerID, fileName string) string

func GetTaskManagerLogsURL

func GetTaskManagerLogsURL(baseServerURL, taskManagerID string) string

func GetTaskManagersURL

func GetTaskManagersURL(baseServerURL string) string

func StatFile

func StatFile(client *hdfs.Client, filePath string) (os.FileInfo, error)

func StatFilesInDir

func StatFilesInDir(client *hdfs.Client, dirPath string) ([]os.FileInfo, error)

Types

type FileInfo

type FileInfo struct {
	Name string `json:"name"`
	Size int64  `json:"size"`
}

func SelectLogFileToUpload

func SelectLogFileToUpload(logger *glog.Logger, apiURL string) (file FileInfo, err error)

select the log to upload if there are many Rolling log files

type LogFileDir

type LogFileDir struct {
	Logs []FileInfo `json:"logs"`
}

Jump to

Keyboard shortcuts

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