<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[编程者说的博客专栏]]></title><description><![CDATA[Hello，world！]]></description><link>https://blog.youkuaiyun.com/shipfei_csdn</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shipfei_csdn]]></copyright><item><title><![CDATA[Mybatis 中的 fetchSize]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/133701744</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/133701744</guid><author>shipfei_csdn</author><pubDate>Mon, 09 Oct 2023 14:37:21 +0800</pubDate><description><![CDATA[简单来讲，Fetch相当于读缓存，默认Fetch Size值是10，读取10000条记录，一次数据库交互，即rs.next的操作，ResultSet会一次性从数据库服务器，得到10条记录，下次执行rs.next，就直接使用内存读取，不用和数据库交互了，但总计需要有1000次交互，如果使用setFetchSize设置Fetch Size为10000，则只需要一次数据库交互，本地缓存10000条记录，每次执行rs.next，只是内存操作，不会有数据库网络消耗，效率就会高些。]]></description><category></category></item><item><title><![CDATA[Python经常遇到：Microsoft Visual C++ 14.0 or greater is required.错误]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/129732473</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/129732473</guid><author>shipfei_csdn</author><pubDate>Thu, 23 Mar 2023 16:15:13 +0800</pubDate><description><![CDATA[Python经常遇到：Microsoft Visual C++ 14.0 or greater is required.]]></description><category></category></item><item><title><![CDATA[Python报错：ModuleNotFoundError: No module named ‘pip‘]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/129729445</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/129729445</guid><author>shipfei_csdn</author><pubDate>Thu, 23 Mar 2023 14:01:42 +0800</pubDate><description><![CDATA[Python报错：ModuleNotFoundError: No module named 'pip']]></description><category></category></item><item><title><![CDATA[idea编译报错：Error:Kotlin: Module was compiled with an incompatible version of Kotlin.]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/124817582</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/124817582</guid><author>shipfei_csdn</author><pubDate>Tue, 17 May 2022 11:17:33 +0800</pubDate><description><![CDATA[1. idea 编译报错信息




Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.



2. 解决办法

重新编译项目

Build-&gt;Rebuild Project






]]></description><category></category></item><item><title><![CDATA[yarn create umi报错文件名、目录名或卷标语法不正确]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/124013419</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/124013419</guid><author>shipfei_csdn</author><pubDate>Thu, 07 Apr 2022 13:17:51 +0800</pubDate><description><![CDATA[yarn create umi报错文件名、目录名或卷标语法不正确]]></description><category></category></item><item><title><![CDATA[windows下pyinstaller安装]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/123676716</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/123676716</guid><author>shipfei_csdn</author><pubDate>Wed, 23 Mar 2022 08:44:47 +0800</pubDate><description><![CDATA[pyinstaller安装]]></description><category></category></item><item><title><![CDATA[Mybatis报错ORA-00911: 无效字符]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/123661104</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/123661104</guid><author>shipfei_csdn</author><pubDate>Tue, 22 Mar 2022 15:05:56 +0800</pubDate><description><![CDATA[今天在开发过程中遇到这么一个错误，

1. ORA-00911: 无效字符


Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

2. 原因是 sql 语句中加了一个分号。

把分号去掉就可以了。
]]></description><category></category></item><item><title><![CDATA[elastic安装报错：max file descriptors [4096] for elasticsearch process is too low, increase to at least]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122807749</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122807749</guid><author>shipfei_csdn</author><pubDate>Mon, 07 Feb 2022 13:55:17 +0800</pubDate><description><![CDATA[一、现象

因为 es 不允许使用root用户安装，在使用新建的es用户安装的时候报错如下，

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]


ERROR: [3] bootstrap checks failed. You must address the points described in the following [3] lines before sta]]></description><category></category></item><item><title><![CDATA[安装docker环境报错：Could not resolve host]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122730226</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122730226</guid><author>shipfei_csdn</author><pubDate>Fri, 28 Jan 2022 13:52:36 +0800</pubDate><description><![CDATA[今天在centos上安装docker环境的时候遇到这个报错，


curl: (6) Could not resolve host: get.docker.com; Unknown error

解决办法：

1. 编辑文件


vi /etc/resolv.conf

2. 新增如下


nameserver 119.29.29.29

nameserver 8.8.8.8

3.重启网络


service network restart


...]]></description><category></category></item><item><title><![CDATA[Git 常用基本操作命令]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122712070</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122712070</guid><author>shipfei_csdn</author><pubDate>Thu, 27 Jan 2022 09:26:10 +0800</pubDate><description><![CDATA[git基本操作]]></description><category></category></item><item><title><![CDATA[Nginx在Linux下的日志分割脚本]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122046002</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122046002</guid><author>shipfei_csdn</author><pubDate>Mon, 20 Dec 2021 17:19:16 +0800</pubDate><description><![CDATA[以下是分割脚本，需要日环对应的路径和日志名称，然后使用Linux自己的crontab定时任务调用sh脚本。


## Nginx相关目录
log_path=/home/apps/nginx/logs
pid_path=/home/apps/nginx/logs/nginx.pid

##获取当天的 yyyy-MM-dd
today=$(date -d "now" +%Y-%m-%d)

## 执行mv操作
mv ${log_path}/access.log ${log_path}/daily/access.]]></description><category></category></item><item><title><![CDATA[Nginx在Windows下的日志分割脚本]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122042769</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/122042769</guid><author>shipfei_csdn</author><pubDate>Mon, 20 Dec 2021 15:35:36 +0800</pubDate><description><![CDATA[以下是分割脚本，需要日环对应的路径和日志名称，让后用Windows自己的定时任务调用bat脚本。


@rem 关闭脚本的每行输出
@echo off
@rem 获取当前时间
set ToDay=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2%
@rem nginx安装路径
set NginxHome=D:\dev\servers\nginx-1.16.1

@rem 关闭nginx
@rem net stop nginx
@rem 重命名日志文件
move %NginxHome%\.]]></description><category></category></item><item><title><![CDATA[springboot外部配置文件的加载顺序]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/121865154</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/121865154</guid><author>shipfei_csdn</author><pubDate>Fri, 10 Dec 2021 21:22:50 +0800</pubDate><description><![CDATA[springboot外部配置文件的默认加载顺序]]></description><category></category></item><item><title><![CDATA[FastJson的坑：JSON.toJSONString 关于null值不序列化]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/120178312</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/120178312</guid><author>shipfei_csdn</author><pubDate>Wed, 08 Sep 2021 13:49:53 +0800</pubDate><description><![CDATA[在使用fastjson中JSON.toJSONString去转json字符串的时候遇到一个坑。

1.现象

null值不会被序列化，导致转出的json字符串里面丢失存在null值的字段。


JSON.toJSONString(dto);

转换前的实体，


- dto: VisitTaskDto(actId=123, actName=xxx, prodCode=null, prodName=null)

转换后，null值的字段丢失为


{"actId":"123","actName":"xxx".]]></description><category></category></item><item><title><![CDATA[Rest API设计时，POST和GET如何区分]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/119945517</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/119945517</guid><author>shipfei_csdn</author><pubDate>Fri, 27 Aug 2021 09:58:11 +0800</pubDate><description><![CDATA[在做API设计时，纠结新增的时候用POST还是PUT，更新的时候用POST还是PUT，到底改如何选择。

具体还要看使用场景，这里面涉及一个幂等性的问题。

PUT方法还是POST方法？这取决于这个REST服务的行为是否是幂等的，假如我们发送两个http://xxx/xxx/test请求，服务器端是什么样的行为？如果产生了两条记录，那就说明这个服务不是幂等的，因为多次使用产生了副作用了；如果后一个请求把第一个请求覆盖掉了，那这个服务就是幂等的。

不要求接口幂等（比如insert），应该使用POST方法，对]]></description><category></category></item><item><title><![CDATA[大数据集群巡检，最佳实践记录]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/115304022</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/115304022</guid><author>shipfei_csdn</author><pubDate>Mon, 29 Mar 2021 17:56:30 +0800</pubDate><description><![CDATA[公司使用的大数据集群是Cloudera，定期巡检，还是查出不少问题，后面进行优化。mark下供大家参考。发现主要的几个问题如下，

1. HDFS 小文件过多

小文件问题是目前HDFS上存在的最大问题。可以使用hadoop fs -count命令，简单统计下文件数量较多的目录。

小文件很多是临时文件，建议定期清理。并检查业务逻辑，主要是什么导致的小文件过多，看能否通过修改处理逻辑来避免。

2. DNS域名解析不全

很多新加的边缘节点，没有配置全部的host，导致集群内部解析不全。虽不影响程序运行，但]]></description><category></category></item><item><title><![CDATA[Flink 连接 MySQL 错误：The server time zone value ‘ÖÐ¹ú±ê×¼Ê±¼ä‘ is unrecognized or represents]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114915556</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114915556</guid><author>shipfei_csdn</author><pubDate>Wed, 17 Mar 2021 09:09:45 +0800</pubDate><description><![CDATA[Flink 处理好数据后，需要 Sink 到 MySQL 保存，连接的时候报错。

1. 错误描述


Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'ÖÐ¹ú±ê×¼Ê±¼ä' is unrecognized or represents more than one time zone. You must configure either the serve]]></description><category></category></item><item><title><![CDATA[Flink SQL 项目通用模板一]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114823406</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114823406</guid><author>shipfei_csdn</author><pubDate>Mon, 15 Mar 2021 11:17:50 +0800</pubDate><description><![CDATA[总结项目中的常用 flink sql 开发模板，供大家参考。

主要分三大步：

创建表执行环境。
	创建输入表、输出表，并进行数据的逻辑处理。
	任务执行。
其中第二部是重点，细分三小步（也就是三个 tabEnv.executeSql）

tableEnv.executeSql(inputTableDDL) // 1) create inputTable
	tableEnv.executeSql(outputTableDDL) // 2) create outputTable
	tableEnv.exec]]></description><category></category></item><item><title><![CDATA[Flink SQL 开发的代码结构]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114384871</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114384871</guid><author>shipfei_csdn</author><pubDate>Fri, 05 Mar 2021 11:23:44 +0800</pubDate><description><![CDATA[最近一直都在搞 Flink 相关的开发，清晰的代码结构有利于开发规范的统一和业务逻辑的梳理。

Scala 代码结构，官网推荐的如下，


// create a TableEnvironment for specific planner batch or streaming
val tableEnv = ... // see "Create a TableEnvironment" section

// create an input Table
tableEnv.executeSql("CREATE T]]></description><category></category></item><item><title><![CDATA[Flink 使用 Scala 编程中注意的隐式转换]]></title><link>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114366873</link><guid>https://blog.youkuaiyun.com/shipfei_csdn/article/details/114366873</guid><author>shipfei_csdn</author><pubDate>Thu, 04 Mar 2021 16:22:46 +0800</pubDate><description><![CDATA[写代码过程中，IDE 的代码提示功能是程序员的最爱，但是在用 Scala 写 Flink 代码的过程中，经常会有不提示的情况。

蛋疼。。。

这个就是 Scala 的引入包的问题，常用的用下面这几个，mark 下，


import org.apache.flink.streaming.api.scala._
import org.apache.flink.table.api._
import org.apache.flink.table.api.bridge.scala._

注意后面的下划线，就是整包]]></description><category></category></item></channel></rss>