2024年4月17日

达梦数据库-初步学习

摘要: 达梦数据库-初步学习 sql 连接方式 su - dmdba cd /data/ /data/dm/bin/disql SYSDBA/SYSDBA@x.x.x.x:5236 数据库信息查看 查看当前数据库中存在的模式 ​select * from SYSOBJECTS t where t."TYPE 阅读全文

posted @ 2024-04-17 11:41 石墨方 阅读(23) 评论(0) 推荐(0) 编辑

2023年8月1日

pytest学习

摘要: pytest 参考 https://blog.csdn.net/stetstet/article/details/119221464 https://blog.csdn.net/lovedingd/article/details/98952868 示例 最简单的示例 类级别的示例 运行方式 main 阅读全文

posted @ 2023-08-01 17:58 石墨方 阅读(19) 评论(0) 推荐(0) 编辑

2023年6月19日

Kafka学习

摘要: Kafka学习 https://blog.csdn.net/Eternal_Blue/article/details/95598942 https://www.cnblogs.com/swordfall/p/10014300.html ‍ 常用命令 启停 开启zookeeper: ./zkServe 阅读全文

posted @ 2023-06-19 17:50 石墨方 阅读(6) 评论(0) 推荐(0) 编辑

2023年6月5日

ElasticSearch-初识

摘要: ElasticSearch-初识 常用命令 e.g. curl -X GET "http://100.86.13.57:9200/goods_type/_mapping?pretty"​ 索引 查看所有索引 get /_cat/indices?v"​​​ 查询索引中的字段 get /{index}/ 阅读全文

posted @ 2023-06-05 15:27 石墨方 阅读(5) 评论(0) 推荐(0) 编辑

2023年3月30日

allure

摘要: allure ‍ 生成报告 if __name__ == '__main__': # 会自动扫描当前目录下的pytest.ini # 根据配置文件中的配置来执行测试 pytest.main(["--alluredir=report/html"]) # 执行命令,生成测试报告 os.system('a 阅读全文

posted @ 2023-03-30 11:02 石墨方 阅读(83) 评论(0) 推荐(0) 编辑

2022年6月20日

hive部署

摘要: 1. 前置条件 安装hive前需先安装mysql及hadoop a)在mysql中创建用户及数据库 create user 'hive' identified by 'hive';grant all privileges on *.* to 'hive'@'%' with grant option; 阅读全文

posted @ 2022-06-20 11:25 石墨方 阅读(209) 评论(0) 推荐(0) 编辑

2021年1月19日

expect简单使用案例

摘要: 举例:自动从另一个机器B中获取文件 shell脚本中调用expect脚本(传递所需要的机器B中的文件路径) filename=$1 ./t1.exp "/data/$filename" 给t1.exp赋权 chmod 755 t1.exp expect 脚本 #!/usr/bin/expect se 阅读全文

posted @ 2021-01-19 16:23 石墨方 阅读(77) 评论(0) 推荐(0) 编辑

2020年12月30日

tpcc 压测工具准备与测试

摘要: 准备工作: 1、mysql安装 步骤: 1、在数据库中预创建一个库 2、create_table.sql建表 3、./tpcc_load加载数据 ./tpcc_load -h127.0.0.1 -ddb1 -uroot -p123456 -w10 4、tpcc_start压测: tpcc_start 阅读全文

posted @ 2020-12-30 15:45 石墨方 阅读(578) 评论(0) 推荐(0) 编辑

2020年10月28日

bash中执行SQL语句返回一个值

摘要: mysql --defaults-extra-file=/data/my.password --batch -N -h127.0.0.1 -Ddb1 -e"select uname from t1 where id =12;" --defaults-extra-file指定数据库连接的用户 my.p 阅读全文

posted @ 2020-10-28 14:23 石墨方 阅读(333) 评论(0) 推荐(0) 编辑

2020年10月26日

对机器特定端口增加网络延迟

摘要: 参考于https://blog.csdn.net/scdxmoe/article/details/78532425?utm_source=blogxgwz8 例如:对本地网卡上30001 端口延迟5秒 tc qdisc add dev lo root handle 1: prio bands 4tc 阅读全文

posted @ 2020-10-26 14:51 石墨方 阅读(381) 评论(0) 推荐(0) 编辑

导航