![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
码基
码基
展开
-
maven settings.xml
<?xml version="1.0" encoding="UTF-8"?> ~/.m2/repository alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ nexus local private nexus http://maven.oschina.net/content/groups/public/ true fals原创 2022-05-17 18:15:32 · 143 阅读 · 0 评论 -
ubuntu 虚拟机 笔记
Ubuntu Sever 虚拟机安装 LTS Long Term Support 查看ubuntu版本信息 # cat /proc/version Linux version 5.4.0-89-generic (buildd@lgw01-amd64-044) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 启用root用户 # passwd root Confi原创 2021-11-08 20:08:12 · 411 阅读 · 0 评论 -
定期删除分区表数据
#!/bin/bash ts=$(date +%s%3N) list="/tmp/table2drop" touch $list echo > $list declare -A tbl_retention dbs=$(hive -S -e "show databases" | grep -i -v -e 'default' -e 'database_name' -e 'tmp') for db in $dbs; do tbls=$(hive -S -e "show tables in原创 2021-05-14 12:53:33 · 380 阅读 · 0 评论 -
awk使用示例
hive -e “desc tablexxxx” | awk ’ BEGIN { s=99999 } { if ($2 == “part”) s=NR; if (s < NR) print $2 } ’原创 2020-01-14 15:56:12 · 130 阅读 · 0 评论 -
CentOS配置网络yum源
转载记录 1)下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 2)备份并替换系统的repo文件 cp CentOS-7.repo /etc/yum.repos.d/ cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS-7.repo Cen...转载 2019-06-05 14:21:10 · 556 阅读 · 0 评论 -
shell脚本向端口发送消息并使用netcat监听
下载并安装netcat yum install -y nc 开启监听10001端口 nc -l 10001,必须先开启监听,再想端口发送消息,否则会有如下报错 sentMessageToPort.sh: connect: Connection refused sentMessageToPort.sh: line 12: /dev/tcp/hadoop03/10001: Connection ref...原创 2019-07-10 10:20:59 · 3674 阅读 · 0 评论