hdfs

Type:

Reads files from a HDFS directory, where each discrete file will be consumed as a single message payload.

# Config fields, showing default values
input:
  label: ""
  hdfs:
    hosts: [] # No default (required)
    user: ""
    directory: "" # No default (required)

Metadata

This input adds the following metadata fields to each message:

  • hdfs_name

  • hdfs_path

You can access these metadata fields using function interpolation.

Fields

hosts

A list of target host addresses to connect to.

Type: array

# Examples

hosts: localhost:9000

user

A user ID to connect as.

Type: string

Default: ""

directory

The directory to consume from.

Type: string