上一页 1 2 3 4 5 6 7 8 ··· 13 下一页

2021年11月10日

初识python 之 cx_oracle

摘要: 使用cx_oracle操作oracle数据库 oracleClient 包 #!/user/bin env python # author:Simple-Sir # create_time: 2021/11/9 15:41 import cx_Oracle class OracleClient(): 阅读全文

posted @ 2021-11-10 09:19 Simple-Sir 阅读(78) 评论(0) 推荐(0)

2021年11月3日

初识python 之 ImportError: No module named _ssl

摘要: 场景 安装好python之后,导入ssl模块报错: ImportError: No module named _ssl 解决方法 查看openssl、openssl-devel是否安装 rpm -qa|grep openssl openssl-devel-1.0.1e-30.el6.x86_64op 阅读全文

posted @ 2021-11-03 14:18 Simple-Sir 阅读(1092) 评论(0) 推荐(0)

2021年9月5日

hadoop 之 某一个datanode启动失败(Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to)

摘要: 环境 集群7台 master 3台 datanode 4台 每个datanode有12个硬盘 场景 启动集群之后,发现有一台datanode未启动,手动启动,还是未启动。查看日志,发现: Initialization failed for Block pool <registering> (Data 阅读全文

posted @ 2021-09-05 11:36 Simple-Sir 阅读(945) 评论(0) 推荐(0)

2021年8月11日

初识python 之 离线搭建pyhive环境(含python3安装)

摘要: 系统版本: centos6.5 python版本:python3.6.8 相关包存放目录:software 注意:以下操作需要用到root权限 安装python3 root操作 cd /lzh/software tar -zxvf Python-3.6.8.tgz cd /lzh/software/ 阅读全文

posted @ 2021-08-11 11:44 Simple-Sir 阅读(1055) 评论(0) 推荐(0)

2021年7月20日

oracle 之 while循环月份

摘要: 需求 需要跑一个数据,时间从17年5月到21年3月。 代码(简单粗暴实现) DECLARE i number; BEGIN i:= 201705; WHILE i <202104 LOOP if i=201713 then i:=201801; elsif i=201813 then i:=2019 阅读全文

posted @ 2021-07-20 17:47 Simple-Sir 阅读(399) 评论(0) 推荐(0)

oracle 之 for循环表

摘要: 代码 create table tm_lzh as SELECT 'a1' c1,'b1' c2 FROM dual union all SELECT 'a2' c1,'b2' c2 FROM dual union all SELECT 'a3' c1,'b3' c2 FROM dual union 阅读全文

posted @ 2021-07-20 17:39 Simple-Sir 阅读(1103) 评论(0) 推荐(0)

2021年7月9日

初识python 之 自动拆分转换文本内容

摘要: 上一篇升级版,转换文件内容。 #!/user/bin env python # author:Simple-Sir # time:2021/7/9 23:32 def txt_2_list(filename): dic = {} dic_k = [] dic_v = [] with open(fil 阅读全文

posted @ 2021-07-09 00:28 Simple-Sir 阅读(114) 评论(0) 推荐(0)

2021年7月8日

初识python之词组截取及翻译

摘要: d = {} k = [] v = [] with open('dir','r',encoding='utf-8') as f: for i in f.readlines(): j = i.strip('\n') # 删除换行符 li_k = j.split(',') # 以逗号分隔为列表 d[li 阅读全文

posted @ 2021-07-08 00:51 Simple-Sir 阅读(108) 评论(0) 推荐(0)

2021年5月13日

ORACLE 之 按月循环执行操作

摘要: DECLARE i number; BEGIN i:= 201705; WHILE i <202104 LOOP if i=201713 then i:=201801; elsif i=201813 then i:=201901; elsif i=201913 then i:=202001; els 阅读全文

posted @ 2021-05-13 14:24 Simple-Sir 阅读(661) 评论(0) 推荐(0)

2021年4月26日

linux 之 DolphinScheduler(海豚调度) 安装步骤

摘要: 下载安装包 直接进官网下载 https://dolphinscheduler.apache.org/zh-cn/download/download.html 参考官方文档 https://dolphinscheduler.apache.org/zh-cn/docs/1.3.2/user_doc/cl 阅读全文

posted @ 2021-04-26 16:56 Simple-Sir 阅读(3027) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 13 下一页

导航