Skip to content

[Bug] [chunjun-connector-hdfs] hdfswriter路径写死,在windows debug时写入目录路径错误 #1336

@zhengchaoken

Description

@zhengchaoken

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

使用chunjun-local-test本地调试,且写插件为hdfswriter时,因HdfsOutputFormat 各个插件中的路径是使用File.separatorChar ,当运行环境 是windows时,会出现路径错误,导致数据无法写入。路径形如:/usr/hive/warehouse/tablepath.data\xxx.gz

What you expected to happen

应该的路径是:/usr/hive/warehouse/tablepath/.data/xxx.gz (临时) , /usr/hive/warehouse/xxx.gz (正式数据)

How to reproduce

本地使用LocalTest.java 启动一个写插件为hdfswriter的json任务

Anything else

No response

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions