hdfs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

[outputs] plugin hdfs

{
    "hdfs": {
        "namenode": "10.10.40.212:8020",
        "file": "/tmp/test_%Y%M%D.log",
        "batch": 10
    }
}

Documentation

Index

Constants

View Source
const (
	VERSION = "0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HDFSOutput

type HDFSOutput struct {
	NameNode string `json:"namenode"`
	File     string `json:"file"`
	Batch    int    `json:"batch"`
	// contains filtered or unexported fields
}

func NewHDFSOutput

func NewHDFSOutput() *HDFSOutput

func (*HDFSOutput) Close

func (out *HDFSOutput) Close() error

func (*HDFSOutput) Init

func (out *HDFSOutput) Init(config transport.Configer) error

func (*HDFSOutput) Start

func (out *HDFSOutput) Start() error

func (*HDFSOutput) Version

func (out *HDFSOutput) Version() string

func (*HDFSOutput) Write

func (out *HDFSOutput) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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