<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[debimeng]]></title><description><![CDATA[如果永远不去做你能力以外的事，你就永远无法进步.]]></description><link>https://blog.csdn.net/debimeng</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; debimeng]]></copyright><item><title><![CDATA[【达梦DM】DM在windows下的安装]]></title><link>https://blog.csdn.net/debimeng/article/details/145692276</link><guid>https://blog.csdn.net/debimeng/article/details/145692276</guid><author>debimeng</author><pubDate>Mon, 17 Feb 2025 22:14:36 +0800</pubDate><description><![CDATA[选择X86，win64位版本下载下载后的安装包。]]></description><category></category></item><item><title><![CDATA[【PostgreSQL】PG在windows下的安装]]></title><link>https://blog.csdn.net/debimeng/article/details/145662472</link><guid>https://blog.csdn.net/debimeng/article/details/145662472</guid><author>debimeng</author><pubDate>Sun, 16 Feb 2025 12:18:47 +0800</pubDate><description><![CDATA[双击postgresql-17.3-1-windows-x64.exe文件，启动安装，进入安装步骤，点击Next。选择存放数据库数据对应的路径，这里采用默认数据库下面的*/data。最后一步，取消勾选，再点finish完成数据库安装。在开始的程序找到PG默认客户端pgAdmin 4。选择PG安装路径，最好不要放在C盘。点击新建的数据库，右键选择查询工具。系统语言/地区，采用默认的即可。端口号采用默认的5432即可。输入安装时设置的管理员密码。点击Next开始安装PG。插件这一步默认都安装。]]></description><category></category></item><item><title><![CDATA[【linux】ubunbu切换到root]]></title><link>https://blog.csdn.net/debimeng/article/details/145622378</link><guid>https://blog.csdn.net/debimeng/article/details/145622378</guid><author>debimeng</author><pubDate>Thu, 13 Feb 2025 23:06:54 +0800</pubDate><description><![CDATA[在 Ubuntu 中切换到root用户有几种方法，具体取决于你的需求和权限配置。]]></description><category></category></item><item><title><![CDATA[【shell】统计文件行数]]></title><link>https://blog.csdn.net/debimeng/article/details/118469353</link><guid>https://blog.csdn.net/debimeng/article/details/118469353</guid><author>debimeng</author><pubDate>Sun, 04 Jul 2021 23:05:41 +0800</pubDate><description><![CDATA[shell命令统计文件行数


wc -l test1.sh


]]></description><category></category></item><item><title><![CDATA[【hive】Hive常见的存储格式的区别与应用场景]]></title><link>https://blog.csdn.net/debimeng/article/details/118280594</link><guid>https://blog.csdn.net/debimeng/article/details/118280594</guid><author>debimeng</author><pubDate>Sun, 27 Jun 2021 21:45:44 +0800</pubDate><description><![CDATA[Hive常见的存储格式的区别与应用场景
一、文件存储格式
行存储和列存储
1.TextFile
2.sequencefile
3.RC
4.orc(工作中常用)
5.parquet
二、四种存储格式分析
一、文件存储格式
在HIVE中，常见的文件存储格式有


TextFile
Parquet
ORC
Sequencefile
RC
AVRO

注意：TextFile、Sequencefile 基于行存储，ORC、Patquet基于列存储

行存储和列存储

上图中左边为行存储，右边为列存储
行存储的特点：]]></description><category></category></item><item><title><![CDATA[【scala报错】java.sql.BatchUpdateException: Incorrect string value: ‘\xE4\xBA\xA7\xE5\x93\x81...‘ for co]]></title><link>https://blog.csdn.net/debimeng/article/details/113101894</link><guid>https://blog.csdn.net/debimeng/article/details/113101894</guid><author>debimeng</author><pubDate>Mon, 25 Jan 2021 06:49:50 +0800</pubDate><description><![CDATA[【scala报错】java.sql.BatchUpdateException: Incorrect string value: '\xE4\xBA\xA7\xE5\x93\x81...' for column 'job_name' at row 1

一.场景
在使用IDEA编写scala程序时，为了实现从CSV文件写入MYSQL数据库时报错。

二.原因
在程序里使用utf-8编码，但创建数据库时没有指定编码，如不指定编码会使用默认latin1编码，这时候与程序使用的utf-8编码冲突。

三.解决
解决]]></description><category></category></item><item><title><![CDATA[【Linux报错】VM虚拟机的CentOS7系统启动时报Generating /run/initramfs/rdsosreport.txt]]></title><link>https://blog.csdn.net/debimeng/article/details/112751804</link><guid>https://blog.csdn.net/debimeng/article/details/112751804</guid><author>debimeng</author><pubDate>Sun, 17 Jan 2021 16:49:42 +0800</pubDate><description><![CDATA[一、场景：

因Linux无故关机，重启后报错Generating /run/initramfs/rdsosreport.txt



二、解决：

解决步骤：查看/dev/mapper下有什么文件、执行xfs_repair、重启。

查看/dev/mapper路径下的文件，重点查看root相关的文件，因这里是centos系统，一般会有一个centos-root文件，需要的就是这个文件

ls /dev/mapper/

执行命令

xfs_repair /dev/mapper/centos-root -L]]></description><category></category></item><item><title><![CDATA[【123】05_Hive外部分区表score4的操作]]></title><link>https://blog.csdn.net/debimeng/article/details/111088901</link><guid>https://blog.csdn.net/debimeng/article/details/111088901</guid><author>debimeng</author><pubDate>Sun, 13 Dec 2020 10:25:38 +0800</pubDate><description><![CDATA[【题目】

外部分区表score4的操作，并说明为什么最后需要执行msck repair table score4

【解答】

--进入Hive环境

[hadoop@node03 ~]$ hive



--连接到db_hive数据库(已提前创建好数据库：create database db_hive;)

hive (default)&gt; use db_hive;



--创建外部分区表score4

hive (db_hive)&gt; create external table scor..]]></description><category></category></item><item><title><![CDATA[【Hive报错】FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask]]></title><link>https://blog.csdn.net/debimeng/article/details/111088791</link><guid>https://blog.csdn.net/debimeng/article/details/111088791</guid><author>debimeng</author><pubDate>Sun, 13 Dec 2020 10:15:45 +0800</pubDate><description><![CDATA[【场景】
在hive3.1版本下执行以下语句报错
--加载数据到桶表u_demo_bk中
insert into table u_tab_bk_p select * from u_tab;

可是插入到普通表和分区表的语句是能正常执行的。

【原因】
最后才知道是因为资源不足的问题，可是这数据量又不大，有可能hive的机制有关，本来它的场景就是为了解决大数据的问题。





【解决】
最后在主节点修改了yarn-site.xml文件，添加一个参数，即：关闭虚拟内存的检测，最后完整的内容如下：
&lt;co]]></description><category></category></item><item><title><![CDATA[【Linux报错】Cent os 7 Error downloading packages]]></title><link>https://blog.csdn.net/debimeng/article/details/110356352</link><guid>https://blog.csdn.net/debimeng/article/details/110356352</guid><author>debimeng</author><pubDate>Sun, 29 Nov 2020 22:38:42 +0800</pubDate><description><![CDATA[背景：

在运行yum -y install net-tool包是报错，一般情况下，如果网络连到外网的话，会使用网络上的yum资源安装，可这个时候报Cent os 7 Error downloading packages的错了。

最后发现是DNS那里写错了，居然写到了DNS0=8.8.8.8，值是没有问题的，可不是从0开始的，是从1开始的

解决：

把对应的DNS0更改为DNS1即可，如图所示





说明：8.8.8.8是一个IP地址，是Google提供的免费DNS服务器的IP地址





...]]></description><category></category></item><item><title><![CDATA[【Linux报错】修改SELINUXTYPE参数启动不了系统]]></title><link>https://blog.csdn.net/debimeng/article/details/110295016</link><guid>https://blog.csdn.net/debimeng/article/details/110295016</guid><author>debimeng</author><pubDate>Sat, 28 Nov 2020 22:28:42 +0800</pubDate><description><![CDATA[背景：

修改了一下selinux参数后，重启系统一直启动不成功后回想貌似有个参数修改错了，应该是修改SELINUX这个参数的，可修改到了SELINUXTYPE，罪过

修改前的情况如下：


[root@node10 ~]# cat /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforci]]></description><category></category></item><item><title><![CDATA[【Excel】函数：VLOOKUP]]></title><link>https://blog.csdn.net/debimeng/article/details/109729692</link><guid>https://blog.csdn.net/debimeng/article/details/109729692</guid><author>debimeng</author><pubDate>Mon, 16 Nov 2020 20:53:09 +0800</pubDate><description><![CDATA[【Excel】函数：VLOOKUP

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

第1个参数：查找的值
第2个参数：查找的区域，建议使用绝对引用表示查找的区域，即类似"$A$2:$f$12"
第3个参数：查找范围的第几列，不是excel默认的列数，从1开始
第4个参数：精确或模糊匹配，true/1为近似匹配，false/0精确匹配

注：只能从左往右查找，而不能从右往左的反向查找，即需要把与查找的值的列放在查找区域的第一列
..]]></description><category></category></item><item><title><![CDATA[【Excel】添加自动填充时指定的内容]]></title><link>https://blog.csdn.net/debimeng/article/details/109700720</link><guid>https://blog.csdn.net/debimeng/article/details/109700720</guid><author>debimeng</author><pubDate>Sun, 15 Nov 2020 10:17:55 +0800</pubDate><description><![CDATA[【Excel】添加自动填充时指定的内容

操作：文件 – 选项 – 高级 – 常规 – 编辑自定义列表 – 输入序列 – 添加 – 确定 – 确定

例子：
比如需要输入：周一，周二，周三，周四，周五，周六，周日
系统默认的情况是没有这几个序列的，这时就可以手动设置





输入周一，使用填充序列既可以自动获取这些指定的值



注：如果不是每行一个值的话，需要用英文逗号


...]]></description><category></category></item><item><title><![CDATA[【Leetcode数据库177】获取 Employee 表中第 n 高的薪水（Salary）]]></title><link>https://blog.csdn.net/debimeng/article/details/104457029</link><guid>https://blog.csdn.net/debimeng/article/details/104457029</guid><author>debimeng</author><pubDate>Sun, 23 Feb 2020 11:43:08 +0800</pubDate><description><![CDATA[编写一个 SQL 查询，获取 Employee 表中第 n 高的薪水（Salary）。
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
例如上述 Employee 表，n = 2 时，应返回第二高的薪水 200。如果不存在第...]]></description><category></category></item><item><title><![CDATA[【Mysql报错】You have an error in your SQL syntax：rank]]></title><link>https://blog.csdn.net/debimeng/article/details/104455123</link><guid>https://blog.csdn.net/debimeng/article/details/104455123</guid><author>debimeng</author><pubDate>Sun, 23 Feb 2020 09:50:39 +0800</pubDate><description><![CDATA[Mysql 5.7 rank报错

场景：
在mysql5.7版本执行rank函数时报错，报错如下：
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select id,sala...]]></description><category></category></item><item><title><![CDATA[【SQL35】编号为 '3' 的人是编号为 '1'，'2' 和 '4' 的好友，所以他总共有 3 个好友，比其他人都多]]></title><link>https://blog.csdn.net/debimeng/article/details/104363674</link><guid>https://blog.csdn.net/debimeng/article/details/104363674</guid><author>debimeng</author><pubDate>Mon, 17 Feb 2020 19:49:39 +0800</pubDate><description><![CDATA[在 微信 或者 QQ这样的社交应用中，人们经常会发好友申请也会收到其他人的好友申请。

表 request_accepted 存储了所有好友申请通过的数据记录，其中， requester_id 和 accepter_id 都是用户的编号。

写一个查询语句，求出谁拥有最多的好友和他拥有的好友数目。对于上面的样例数据，结果为：

注意：保证拥有最多好友数目的只有 1 个人。好友申请只会被接受一次，所...]]></description><category></category></item><item><title><![CDATA[【SQL34】计算至少连续两天登录的玩家数，把这个数字除以玩家总数]]></title><link>https://blog.csdn.net/debimeng/article/details/104347728</link><guid>https://blog.csdn.net/debimeng/article/details/104347728</guid><author>debimeng</author><pubDate>Sun, 16 Feb 2020 19:59:11 +0800</pubDate><description><![CDATA[编写一个SQL查询，报告在首次登录后第二天再次登录的玩家的分数，四舍五入到小数点后两位。换句话说，你需要从首次登录日期开始计算至少连续两天登录的玩家数，把这个数字除以玩家总数。

查询结果格式如下所示：
Activity 表:

Result 表:

Result 表:

解释：只有ID为1的玩家在第一天登录后才重新登录，所以答案是1/3=0.33



解决：


SELECT round((...]]></description><category></category></item><item><title><![CDATA[【SQL】查询部门有2个人或以上员工的部门号]]></title><link>https://blog.csdn.net/debimeng/article/details/104329939</link><guid>https://blog.csdn.net/debimeng/article/details/104329939</guid><author>debimeng</author><pubDate>Sat, 15 Feb 2020 16:27:35 +0800</pubDate><description><![CDATA[查询部门有2个人或以上员工的部门号


id      payno
1       lisi
1       zhangsan
2       wangmeng
3       zhaoliu
3       wuxia
3       mengfang
4       guodaxia
5       guofurong

结果如下：


id
1
3

解决：
方法一：


SELECT DI...]]></description><category></category></item><item><title><![CDATA[【SQL33】求付款最早和最小付款的信息]]></title><link>https://blog.csdn.net/debimeng/article/details/104317719</link><guid>https://blog.csdn.net/debimeng/article/details/104317719</guid><author>debimeng</author><pubDate>Fri, 14 Feb 2020 19:22:45 +0800</pubDate><description><![CDATA[有如下一张表Orders


id    pdate             payno
1     2019-11-02        5
1     2019-11-02        3
1     2019-11-03        1
1     2019-11-03        3
2     2019-11-09        1
2     2019-11-09        4...]]></description><category></category></item><item><title><![CDATA[【SQL32】行转列]]></title><link>https://blog.csdn.net/debimeng/article/details/104300926</link><guid>https://blog.csdn.net/debimeng/article/details/104300926</guid><author>debimeng</author><pubDate>Thu, 13 Feb 2020 19:17:23 +0800</pubDate><description><![CDATA[行转列
怎么把下面的表tb_tab


year    month   amount
2017    1       1.1
2017    2       1.2
2017    3       1.3
2017    4       1.4
2018    1       2.1
2018    2       2.2
2018    3       2.3
2018    4       2...]]></description><category></category></item></channel></rss>