Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
zhengchaoken opened this issue Oct 23, 2022 · 0 comments · Fixed by #1337
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@zhengchaoken
Copy link
Contributor

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

@zhengchaoken zhengchaoken added the bug Something isn't working label Oct 23, 2022
@FlechazoW FlechazoW linked a pull request Oct 24, 2022 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant