摘要: 新建工具类: 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 小小菜包子 阅读(1146) 评论(0) 推荐(0)
摘要: 我需要执行的linux命令是: hdfs dfs -put [本地目录] [hadoop目录] 把jar包复制到hdfs某个文件夹下, 导入的jar包, import com.jcraft.jsch.ChannelExec; 新建空对象: ChannelExec openChannel =null; 阅读全文
posted @ 2021-09-22 18:13 小小菜包子 阅读(388) 评论(0) 推荐(0)
摘要: 正常使用@value注解去获取yaml或者properties中的文件是可以的,但是我在工具类中使用时,没有获取到配置文件里的值; 上网看了一下,有的说配置文件首行要空出来,试了一下无效; 先贴代码:这是一个本地文件上传到服务器的工具类 import com.jcraft.jsch.Channel; 阅读全文
posted @ 2021-09-17 17:29 小小菜包子 阅读(829) 评论(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 小小菜包子 阅读(150) 评论(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 小小菜包子 阅读(10555) 评论(1) 推荐(0)
摘要: Date date=null; 把date给值就是空. 阅读全文
posted @ 2021-09-14 19:44 小小菜包子 阅读(42) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_45156610/article/details/105433804 cellStyle.setAlignment(HorizontalAlignment.CENTER); cellStyle.setVerticalAlignment(Ver 阅读全文
posted @ 2021-09-14 19:43 小小菜包子 阅读(114) 评论(0) 推荐(0)
摘要: SELECT DATE_FORMAT(时间字段,"%Y-%m-%d %H:%m:%s") FROM 表名 阅读全文
posted @ 2021-09-14 19:43 小小菜包子 阅读(336) 评论(0) 推荐(0)
摘要: 修改启动类文件,重配置一下tomcat@Configuration public class TomcatConfig { @Value("${server.http.port}") private int httpPort; @Bean public ServletWebServerFactory 阅读全文
posted @ 2021-09-14 19:41 小小菜包子 阅读(60) 评论(0) 推荐(0)
摘要: 根据主键查找,如果存在该主键,那么进行原数据的删除,新数据的插入 mysql语法,用法和insert into一样,功能不同 阅读全文
posted @ 2021-09-14 19:40 小小菜包子 阅读(126) 评论(0) 推荐(0)