# 今天在将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);