- 博客(6)
- 收藏
- 关注
翻译 【无标题】flink代码
从集合读取数据// 定义样例类,传感器 id,时间戳,温度case class SensorReading(id: String, timestamp: Long, temperature: Double)object Sensor {def main(args: Array[String]): Unit = {val env = StreamExecutionEnvironment.getExecutionEnvironmentval stream1 = env.fromCollection
2022-04-04 19:18:30
163
转载 2021-08-31
【常见问题】CentOS6 yum命令报错YumRepo Error: All mirror URLs are not using ftp, http[s] or fileCentOS6已经在2020年11月30日停止维护了。centos官方停止了对centos6的所有更新,并且下架了包括官方所有的centos6源,目前阿里、163、清华等centos6源已无法使用。1、更新yum源:1 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.
2021-08-31 11:19:36
74
原创 window下文件夹快速删除
删除testXml文件夹Runtime runtime = Runtime.getRuntime();String cmd="cmd /c rd/s/q "+“D:\testFile\testXml”;Process p = runtime.exec(cmd);p.waitFor();
2020-06-24 11:12:29
176
转载 文本工具
1. 创建文件路径public void createFile1(String path) throws IOException {File file = new File(path);File fileParent = file.getParentFile();//判断是否存在if (!fileParent.exists()) {fileParent.mkdirs();}file...
2019-04-02 14:59:20
99
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人