摘要:
1.查询所有的POST /expert_experts/_search 2.查询记录数量countGET /expert_experts/_count 3.按照条件查询POST expert10_experts/_search{ "query" : { "match" : {"_id":"08d7e 阅读全文
posted @ 2021-02-07 15:03
简单音乐
阅读(59)
评论(0)
推荐(0)
摘要:
from elasticsearch import Elasticsearchfrom elasticsearch import helpers es_host = https://es-sta.pamirs.comes_auth = elastic:123456 es= Elasticsearch 阅读全文
posted @ 2021-02-07 14:58
简单音乐
阅读(544)
评论(0)
推荐(0)
摘要:
1.镜像使用 docker # 查看客户端所有的命令选项 docker stats --help # 查看stats的使用方法,stats可为其他命令 docker images # 查看镜像 docker pull image_name # 拉取镜像 docker rmi image_id # 删 阅读全文
posted @ 2021-02-07 14:51
简单音乐
阅读(140)
评论(0)
推荐(0)
摘要:
1.下载安装clickhouse 镜像 docker pull zhoujun18855525303/clickhouse-server:19.17.2.4 2.创建存储目录挂载的文件夹 mkdir -p /app/clickhouse/data mkdir -p /app/clickhousemk 阅读全文
posted @ 2021-02-07 14:45
简单音乐
阅读(176)
评论(0)
推荐(0)
摘要:
from clickhouse_driver import Clientdef clickhouse16(): #clickhouse: id , 端口 , 用户名,密码 return Client(host='192.168.10.16', port='8123', user='root', pa 阅读全文
posted @ 2021-02-07 14:20
简单音乐
阅读(6452)
评论(0)
推荐(0)
摘要:
#clickhouse: 默认端口8123 或90001.在sql语句连接其他clickhouse数据库,参数:ip端口,数据库表,用户名,密码select * from remote('192.168.1.12:8123',mysql_test.r_app_rank,'root','123456' 阅读全文
posted @ 2021-02-07 13:48
简单音乐
阅读(1539)
评论(0)
推荐(0)
摘要:
1.数字转字符cast((t1.year * 100 + t1.month) as char(6)) 转字符 2.字符转时间str_to_date('2020-04-28 16:09:36','%Y-%m-%d %H:%i:%s') 3.日期转第几周,返回当年的第几周,整形select WEEK(d 阅读全文
posted @ 2021-02-07 13:32
简单音乐
阅读(645)
评论(0)
推荐(0)
摘要:
1.排序df_all.sort_values(by=['用户名','日期'], ascending=False)2.两个dataframe合并,参数:on用哪个字段连接,how连接方式(默认inner,其余的可选left,outer,right), 若没有共同的字段,left_on=左连接字段,ri 阅读全文
posted @ 2021-02-07 11:16
简单音乐
阅读(187)
评论(0)
推荐(0)
浙公网安备 33010602011771号