- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 SpringBoot项目修复Log4j2高危漏洞-升级log4j2版本至2.15.0
在spring boot集成log4j2的项目中,升级log4j2版本至2.15.0有两种方法:解决办法一: 屏蔽spring-boot-starter-log4j2的log-api和log-corejar,单独引用log4j-api和log4j-core的2.15.0版本<!-- log4j2 --><dependency> <groupId>org.springframework.boot</groupId> <art
2021-12-13 14:17:10
5976
2
原创 hbase shell批量执行命令获取执行状态码
背景:项目中批量执行hbase shell无法获取到执行状态方案:将每一行代码弄成文件,单独执行,获取每次执行的状态码,非0直接退出。#!/bin/bashdir=$(cd "$(dirname "$0")" && pwd)#hbase命令文件,使用参数传入进来,文件为绝对路径,如: /test/hbase_command_list.txthbase_command_file=$1tmp_hbase_file=$dir/tmp_file.txtif [ ! -f $
2021-11-19 17:29:29
1741
1
原创 java spark使用flatMap或flatMapToPair报错空指针
java版spark使用faltmap时报空指针错误,错误如下:20/08/28 09:41:44 INFO DAGScheduler: ResultStage 0 (count at TestJob.java:252) failed in 3.500 s due to Job aborted due to stage failure: Task 299 in stage 0.0 failed 1 times, most recent failure: Lost task 299.0 in stage
2020-08-28 09:54:04
1326
原创 cdh新增root用户到supergroup
1.查看supergroup是否存在cat /etc/group | grep supergroup不存在则创建groupadd supergroup2.将root用户添加到supergroup组usermod -a -G supergroup root3.将权限应用到cdh集群中hdfs dfsadmin -refreshUserToGroupsMappings4.测试第一种(建议采用):sudo -u root hadoop fs -chmod ...
2020-06-09 10:57:41
1417
2
原创 nginx添加stream模块
查看nginx目前模块 /usr/local/nginx/sbin/nginx -V 如: nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) configure arguments: --add-module=/usr/local/fast/fast...
2019-04-28 09:55:14
13978
2
原创 nginx添加ssl_module模块
查看nginx目前模块 /usr/local/nginx/sbin/nginx -V 如: nginx version: nginx/1.15.12 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) configure arguments: --add-module=/usr/local/fast/fas...
2019-04-28 09:53:18
2524
mysql使用手册
2014-05-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人