摘要: 最近学习爬虫,安装selenium,很简单地执行代码,但是一直报错。 ``` import time import openpyxl from selenium import webdriver from selenium.webdriver.common.keys import Keys from 阅读全文
posted @ 2023-08-30 15:24 水木青楓 阅读(2491) 评论(0) 推荐(0) 编辑
摘要: 看了一些文章,终于知道该怎么在 mysql 里面实现 row_number() 排序 话不多说,show you the code: 第一步:建表: create table grades( `name` varchar(10), `subject` varchar(10), `score` int 阅读全文
posted @ 2021-12-21 17:15 水木青楓 阅读(1407) 评论(6) 推荐(2) 编辑
摘要: start_date='20201201' end_date='20201221' while [ "${start_date}" -le "${end_date}" ]; do start_date=`date -d "$start_date" +%Y-%m-%d` echo ${start_da 阅读全文
posted @ 2021-06-22 14:42 水木青楓 阅读(697) 评论(0) 推荐(0) 编辑
摘要: ERROR sqoop.Sqoop: Got exception running Sqoop: org.kitesdk.data.DatasetNotFoundException: Descriptor location does not exist: hdfs://nameservice1/use 阅读全文
posted @ 2021-04-02 16:40 水木青楓 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 本地分支会滚到指定版本 git reset --hard <commit ID号> 推送到远程分支 git push -f origin master 阅读全文
posted @ 2021-03-30 16:14 水木青楓 阅读(244) 评论(0) 推荐(1) 编辑
摘要: 方法: 先增加字段,然后再移动字段。 alter table tbl_1 add columns(col_c string comment'ccc') ; alter table tbl_1 change col_c col_c string comment'cccc' after col_b; 具 阅读全文
posted @ 2021-03-25 16:09 水木青楓 阅读(6167) 评论(0) 推荐(0) 编辑
摘要: 今天在微信看到毕导的视频号,讲了关于微信抢红包的"玄学",在网上找到了那篇文章,转载过来记录一下,有时候分析别人家的产品还是很有意思的。 https://gameinstitute.qq.com/community/detail/104216 以下是转载: 背景:有某个朋友在朋友圈咨询微信红包的架构 阅读全文
posted @ 2021-01-29 10:56 水木青楓 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 查看hive表的最新更新时间: desc formatted [hive_table] 在 location 里面,找到表所在的目录 例如: hdfs://nameservice1/user/hive/warehouse/cmcs_ods.db/ods_bak_t_user_info 只取 /use 阅读全文
posted @ 2021-01-11 17:47 水木青楓 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: python代码里怎么执行另外一个py文件 阅读全文
posted @ 2021-01-08 14:11 水木青楓 阅读(578) 评论(0) 推荐(0) 编辑
摘要: ValueError: unsupported format character '?' (0x5927) at index 134 怎么破? 阅读全文
posted @ 2021-01-05 09:57 水木青楓 阅读(1782) 评论(0) 推荐(0) 编辑