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

读本地文件或HDFS文件的区分 #145

Open
Lmikic101 opened this issue Sep 9, 2020 · 0 comments
Open

读本地文件或HDFS文件的区分 #145

Lmikic101 opened this issue Sep 9, 2020 · 0 comments

Comments

@Lmikic101
Copy link

Lmikic101 commented Sep 9, 2020

您好:
我想读本地数据,在数据地址上加 file:// 或者 local:// 或者什么也不加,都报错:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flink/fs/osshadoop/OSSFileSystemFactory
查询官方文档[https://ci.apache.org/projects/flink/flink-docs-stable/ops/filesystems/],确定读写local文件的前缀为“file://”,但是仅在linux的python环境尝试成功,但windows的java环境中始终失败,尝试如下:
// 不成功 URL = "file://\\E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file:///E:/SVN_CODE//alinkdemo/data/input/ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file://E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file:///E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file:\\E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file:///E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file:///\\E:\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "file://\\SVN_CODE\\alinkdemo\\data\\input\\ChnSentiCorp_htl_all.csv";
// 不成功 URL = "./data/input/ChnSentiCorp_htl_all.csv";
请问这个问题怎么解决?

@Lmikic101 Lmikic101 reopened this Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant