随笔分类 -  Java

jdbc多机器
摘要:java -cp ./checkRoutineLoad.jar com.sf.App jdbc:mysql://10.xx.xx.14:port,10.xx.xx.15:port,10.xx.xx.16:port accountName password alarmList alarmType al 阅读全文
posted @ 2023-06-06 14:36 架构艺术 阅读(19) 评论(0) 推荐(0)
正则
摘要:字段内容,以M或P开头 select dept_code RLIKE '^[MP].*' a, * from tmp_gdl.tmp10_bk where dept_code RLIKE '^[MP].*' limit 100 字段名,查找除了ds和hr之外的所有列。 set hive.suppor 阅读全文
posted @ 2022-06-09 13:56 架构艺术
IDEA常用快捷键
摘要:查看当前类所有方法:alt+7,如下图 阅读全文
posted @ 2021-12-03 01:01 架构艺术 阅读(38) 评论(0) 推荐(0)
IDEA如何快速生成get和set方法-lombok插件方法
摘要:1.点击"setings" 2.选择"plugins",然后选择Browse repositories 3.在搜索框中输入"lombok",点击"lombok Plugin" , 然后点击"inatall"进行插件下载. 4.下载成功后,在pom.xml文件中编写lombok的版本控制 <depen 阅读全文
posted @ 2021-11-21 23:42 架构艺术 阅读(1003) 评论(0) 推荐(0)
spark-submit提交streaming任务
摘要:#!/bin/bash master="yarn-cluster" current=`cd $(dirname $0)/../;pwd` yarn application -kill `yarn application -list | grep HwSwOneMinJob | awk '{print 阅读全文
posted @ 2021-10-27 16:38 架构艺术 阅读(305) 评论(0) 推荐(0)
maven打包zip包含bin下启动脚本
摘要:在idea上测试有效: pom.xml打包 <build> <sourceDirectory>src/main/scala</sourceDirectory> <testSourceDirectory>src/test/scala</testSourceDirectory> <resources> 阅读全文
posted @ 2021-10-27 16:33 架构艺术 阅读(285) 评论(0) 推荐(0)
Java 正则表达式(hive RGEXP)
摘要:一、概述:用来描述或者匹配一系列符合某个语句规则的字符串二、单个符号1、英文句点.符号:匹配单个任意字符。 表达式t.o 可以匹配:tno,t#o,teo等等。不可以匹配:tnno,to,Tno,t正o等。2、中括号[]:只有方括号里面指定的字符才参与匹配,也只能匹配单个字符。 表达式:t[abcd 阅读全文
posted @ 2021-09-07 11:43 架构艺术 阅读(224) 评论(0) 推荐(0)
jmap --查看JVM内存使用详情
摘要:概述 命令jmap是一个多功能的命令。它可以生成 java 程序的 dump 文件, 也可以查看堆内对象示例的统计信息、查看 ClassLoader 的信息以及 finalizer 队列。 jmap命令是一个可以输出所有内存中对象的工具,甚至可以将VM 中的heap,以二进制输出成文本。 打印出某个 阅读全文
posted @ 2021-01-18 15:13 架构艺术 阅读(1880) 评论(0) 推荐(0)
【转】最详细的Log4J使用教程
摘要:原文地址:http://www.codeceo.com/article/log4j-usage.html 日志是应用软件中不可缺少的部分,Apache的开源项目log4j是一个功能强大的日志组件,提供方便的日志记录。在apache网站:jakarta.apache.org/log4j 可以免费下载到 阅读全文
posted @ 2020-07-24 16:12 架构艺术 阅读(346) 评论(0) 推荐(0)