摘要: 新建工具类: package com.lrhealth.mappingintegration.utils; import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelExec; import com.jcraft.jsch.Chann 阅读全文
posted @ 2021-09-23 18:45 小小菜包子 阅读(1150) 评论(0) 推荐(0)
摘要: 我需要执行的linux命令是: hdfs dfs -put [本地目录] [hadoop目录] 把jar包复制到hdfs某个文件夹下, 导入的jar包, import com.jcraft.jsch.ChannelExec; 新建空对象: ChannelExec openChannel =null; 阅读全文
posted @ 2021-09-22 18:13 小小菜包子 阅读(392) 评论(0) 推荐(0)
摘要: 正常使用@value注解去获取yaml或者properties中的文件是可以的,但是我在工具类中使用时,没有获取到配置文件里的值; 上网看了一下,有的说配置文件首行要空出来,试了一下无效; 先贴代码:这是一个本地文件上传到服务器的工具类 import com.jcraft.jsch.Channel; 阅读全文
posted @ 2021-09-17 17:29 小小菜包子 阅读(833) 评论(1) 推荐(0)
摘要: 首先是要引入依赖 <dependencies> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-exec</artifactId> <version>1.2.1</version> </dependency> <!-- 阅读全文
posted @ 2021-09-15 14:33 小小菜包子 阅读(160) 评论(0) 推荐(0)
摘要: //{a=1, b=2, c=3} 格式转换成map private static Map<String, String> mapStringToMap(String str) { str = str.substring(1, str.length() - 1); String[] strs = s 阅读全文
posted @ 2021-09-14 19:47 小小菜包子 阅读(10575) 评论(1) 推荐(0)
摘要: Date date=null; 把date给值就是空. 阅读全文
posted @ 2021-09-14 19:44 小小菜包子 阅读(43) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_45156610/article/details/105433804 cellStyle.setAlignment(HorizontalAlignment.CENTER); cellStyle.setVerticalAlignment(Ver 阅读全文
posted @ 2021-09-14 19:43 小小菜包子 阅读(120) 评论(0) 推荐(0)
摘要: SELECT DATE_FORMAT(时间字段,"%Y-%m-%d %H:%m:%s") FROM 表名 阅读全文
posted @ 2021-09-14 19:43 小小菜包子 阅读(338) 评论(0) 推荐(0)
摘要: 修改启动类文件,重配置一下tomcat@Configuration public class TomcatConfig { @Value("${server.http.port}") private int httpPort; @Bean public ServletWebServerFactory 阅读全文
posted @ 2021-09-14 19:41 小小菜包子 阅读(67) 评论(0) 推荐(0)
摘要: String date = "Thu Aug 27 18:05:49 CST 2015"; SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US); Date d = sdf.par 阅读全文
posted @ 2021-09-14 19:40 小小菜包子 阅读(292) 评论(0) 推荐(0)