SecureCRT-8.3安装&破解
https://www.cnblogs.com/qlgj/p/13960699.html
查找某个HDP版本对应的大数据组件版本
https://www.jianshu.com/p/94f4068c5304
【maven单独下载依赖包到本地】
mvn dependency:get -DremoteRepositories=http://repository.polyv.net/nexus/content/groups/public/ -DgroupId=com.polyv.da -DartifactId=da-common -Dversion=1.0.3-SNAPSHOT -DoutputDirectory=E:\maven3.5.4\
【MySQL时间戳和日期格式互转】
日期转十位时间戳:select UNIX_TIMESTAMP('2018-12-25 12:25:00');
时间戳转日期格式:select FROM_UNIXTIME(1545711900);
【centos7】
查看ip信息 ip addr
查看防火墙状态 firewall-cmd --state
禁止防火墙开机启动 systemctl disable firewalld.service
停止防火墙 systemctl stop firewalld.service
设置hostname hostnamectl set-hostname vm01
查看selinux防火墙状态 getenforce
关闭selinux防火墙 vi /etc/sysconfig/selinux,然后修改 SELINUX = enforcing 为 SELINUX = disabled
wget命令安装 yum -y install wget
启动SSH服务 systemctl start sshd.service
重启SSH服务 systemctl restart sshd.service
设置SSH服务开机自启动 systemctl enable sshd.service
检查22号端口是否开启监听 netstat -an | grep 22
查看MYSQL服务状态 service mysqld status
配置hosts vi /etc/hosts
重启网卡服务 service network restart
查看环境变量 vi /etc/profile
查看ambari-agent的PID cat /run/ambari-agent/ambari-agent.pid
无密码登录root用户 sudo -i
查看内存命令 top或者free
git config --global --unset [待删除的全局变量名]
git config --global url."git://".insteadOf https://
scp xxx root@vm01:/root/downloads
【ELK】
打开索引状态 POST polyv-live-api-tc-2021.05.26/_open
查看索引状态 GET _cat/indices/polyv-live-api-tc-2021.05.26
统计7月20日去重的用户数
GET polyv-vod-pathflow-stat-2021-07/_search
{
"size": 0,
"query": {
"match": {
"timestamp": "2021-07-20"
}
},
"aggs":{
"group_by_userid":{
"cardinality": {
"field": "userid"
}
}
}
}
查询7月20日根据用户id聚合出来的列表
GET polyv-vod-pathflow-stat-2021-07/_search
{
"size": 0,
"query": {
"match": {
"timestamp": "2021-07-20"
}
},
"aggs":{
"group_by_userid":{
"terms": {
"field": "userid",
"size": 4630
}
}
}
}
组合多条件进行查询
GET polyv-live-viewlog-*/_search
{
"size": 0,
"query": {
"bool": {
"must": [
{
"match": {
"timestamp":"2021-07-19"
}
},
{
"match": {
"user_id": "8e15606eab"
}
}
]
}
},
"aggs":{
"group_by_channel":{
"cardinality": {
"field": "channel_id"
}
}
}
}
Oracle官网账号: 2696671285@qq.com
密码: Oracle123