Documentation
¶
Index ¶
- Variables
- func CheckJobManagerLogFile(baseServerURL, destPrePath string) (isCompleted bool, err error)
- func CheckTaskManagerLogFiles(baseServerURL, destPrePath string) (bool, error)
- func CheckUploadingTask(baseServerURL, destPrePath string) (*logpb.TaskStatReply, error)
- func DownloadLogFile(filePath string, stream logpb.LogManager_DownloadJobMgrLogFileServer) (err error)
- func GetJobManagerFilePathInHDFS(destPreDirPath, fileName string) string
- func GetTaskManagerFilePathInHDFS(destPreDirPath, fileName, taskManagerID string) string
- func Init(opts ...Option)
- func ListHistoryLogFiles(dirPath string) ([]os.FileInfo, error)
- func UploadLogFile(baseServerURL, destPrePath string) (*logpb.UploadFileReply, error)
- type FileDataBlock
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HdfsServerConfig *config.HdfsConfig
)
global options in this package.
Functions ¶
func CheckJobManagerLogFile ¶
func CheckUploadingTask ¶
func CheckUploadingTask(baseServerURL, destPrePath string) (*logpb.TaskStatReply, error)
func DownloadLogFile ¶
func DownloadLogFile(filePath string, stream logpb.LogManager_DownloadJobMgrLogFileServer) (err 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 Option ¶
type Option func()
func WithHdfsConfig ¶
func WithHdfsConfig(hc *config.HdfsConfig) Option
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.