Thanks to visit codestin.com
Credit goes to github.com

Skip to content

It may be not suitable to use / as separator in DynamicRemotePrefixFormatter #131

@zhenchuan

Description

@zhenchuan

if i want to upload file to hdfs with dynamic directory with format yyyy/MM/dd/HH , how can i achieve that ?

    @JsonCreator
    public DynamicRemotePrefixFormatter(@JsonProperty("format") String formatString) {
        String[] formatList = formatString.split("/");
        for (String format : formatList) {
            formatterList.add(createFormatter(format));
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions