# 今天在将flink-ml程序集成到现有项目中报错如下所示
Caused by: java.io.IOException: Found local file path with authority 'C:\Users\cc\AppData\Local\Temp\flink-io-bf1d6783-b04e-4d7c-af1f-7ad2d7cc32fc' in path 'file://C:%5CUsers%5Ccc%5CAppData%5CLocal%5CTemp%5Cflink-io-bf1d6783-b04e-4d7c-af1f-7ad2d7cc32fc'. Hint: Did you forget a slash? (correct path would be 'file:///C:\Users\tianyong\AppData\Local\Temp\flink-io-bf1d6783-b04e-4d7c-af1f-7ad2d7cc32fc')
# 错误分析
看问题就得看caused by,然后发现这错误的意思是少了一个斜杠,但是呢,这两个斜杠是程序中写好的,
就得想办法设置自定义参数,去覆盖默认获取到的参数了
# 代码查找
1. 第一步找到这里设置path的
(AbstractBroadcastWrapperOperator.java:525)
2. 第二步是这里进行设置的
OperatorUtils.getDataCachePath(xx)
3. 第三步是这里获取自定义参数的
IterationOptions
# 解决
参数设置代码,在构造env的时候设置参数,或者其他方式也可以
Configuration configuration = new Configuration();
configuration.set(RestOptions.PORT, 8888); # 这句顺带写上了
configuration.setString("iteration.data-cache.path","file:///D:\\checkpoint"); # 这才是关键
StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(configuration);
Found local file path with authority和Hint: Did you forget a slash解决方案
原创wx6419609e20dfa ©著作权
文章标签 Found local file path authority Hint forget a slash 文章分类 Html/CSS 前端开发
©著作权归作者所有:来自51CTO博客作者wx6419609e20dfa的原创作品,请联系作者获取转载授权,否则将追究法律责任

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
用nginx做负载时访问时提示{“result”:"host path error"}解决方案
nginx做负载时的配置方法
处理方法 服务器 重启 nginx 负载 -
scons: *** No SConstruct file found解决方案
No SConstruct file found
No SConstruct file -
Source not found :Edit Source Lookup Path 解决方案
作者原创,转载请注明转载地址 在eclipse中用debug调试的时候,
异常 bug调试 解决方法 eclipse -
Linux No such file or directory 解决方案
No such file or directory
No such file or dire -
gulp#4.0 Did you forget to signal async completion?
异常截图 解决方案:
gulp json 解决方案 .net JAVA