- 博客(3)
- 问答 (2)
- 收藏
- 关注
原创 java 生成配置文件的方法
一.生成json格式的配置文件(OutputStreamWriter类) Map<String, Object> configMap; //生成文件地址 String path = "test.properties"; File file = new File(path); if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); }
2021-01-22 10:31:13
1339
原创 java程序 执行linux命令
public static void executeSh(){ //linux 命令 String command = "cd .." String[] cm = new String[]{"/bin/sh","-c",command} //执行 Runtime.getRuntime().exec(cmd); }
2021-01-22 10:08:44
253
原创 spark提交任务方式:通过RestSubmissionClientApp提交任务
Java项目通过通过RestSubmissionClientApp提交spark任务,并获取执行状态 SparkConf sparkConf = new SparkConf(); //配置文件地址 String[] args = { }; //设置参数 sparkConf.setMaster(master)//master地址 .setAppName
2020-12-25 17:47:06
929
2
空空如也
Scala文件中 import java.lang.Long
2020-07-31
如何获取li下所以span的宽度和,然后赋值给ul宽度
2018-05-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人