09 2021 档案

摘要:-- 方式一 -- 使用判断获取top3的最小值 select case when countNum = 1 then (select order_amount from test.test04 group by order_amount order by order_amount desc lim 阅读全文
posted @ 2021-09-26 17:37 SailorG 阅读(253) 评论(0) 推荐(0)
摘要:注意: 从Sqoop导入MySQL导入TINYINT(1)类型数据到hive(tinyint),数据为null的问题 参考链接:https://blog.csdn.net/qq_43688472/article/details/117998545 阅读全文
posted @ 2021-09-26 15:16 SailorG 阅读(1248) 评论(0) 推荐(0)
摘要:#!/bin/bash # 连接mysql数据库,并查询结果,将结果输出到文件中 # 1.定义连接变量 mysql_u="root" mysql_p="vaca1234!" save_f="mysql.txt" save_p="/root/bin/" mysql_sq="select * from 阅读全文
posted @ 2021-09-24 10:17 SailorG 阅读(5049) 评论(0) 推荐(0)
摘要:打开文档,插入-书签。如图: 添加书签名。如图: 回到正文,选中内容右键超链接。如图: 插入超链接,如图: 确定,超链接就就成功了,字体变成蓝色。如图: 需要返回指定章节或标题时,按住Ctrl+鼠标变成手指形状点击即可。如图: 原文链接:https://jingyan.baidu.com/artic 阅读全文
posted @ 2021-09-23 23:22 SailorG 阅读(3686) 评论(0) 推荐(0)
摘要:1、vim编辑器命令 阅读全文
posted @ 2021-09-15 17:27 SailorG 阅读(38) 评论(0) 推荐(0)
摘要:1、单独的job #test type=command command=/usr/bin/sh /opt/module/azkaban/executor/jobs/goodsmysql2hdfs.sh 在写脚本的时候尽量使用命令的绝对路径,避免不识别或找不到执行命令位置。 2、带有依赖的job # 阅读全文
posted @ 2021-09-07 10:44 SailorG 阅读(104) 评论(0) 推荐(0)