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: 7 Imported by: 0

README

[inputs] plugin hdfs

{
    "hdfs": {
        "namenode": "10.10.40.212:8020",
        "file": "/tmp/test.log",
    }
}

Documentation

Index

Constants

View Source
const (
	VERSION = "0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HDFSInput

type HDFSInput struct {
	NameNode string `json:"namenode"`
	File     string `json:"file"`
	// contains filtered or unexported fields
}

func NewHDFSInput

func NewHDFSInput() *HDFSInput

func (*HDFSInput) Close

func (in *HDFSInput) Close() error

func (*HDFSInput) Init

func (in *HDFSInput) Init(config transport.Configer) error

func (*HDFSInput) Read

func (in *HDFSInput) Read(p []byte) (int, error)

func (*HDFSInput) Start

func (in *HDFSInput) Start() error

func (*HDFSInput) Version

func (in *HDFSInput) Version() string

Jump to

Keyboard shortcuts

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