- 博客(400)
- 资源 (4)
- 收藏
- 关注
原创 goland debug断点失效
升级go到版本1.22.0后 goland Debug断点失效,都进入proc.go文件。在配置文件中添加dlv.exe路径之后提示要重启删除,直接删除重启ok。->Create 注意使用双引号。
2024-02-20 17:47:18 2147 1
原创 flink-sql-parser Could not transfer artifact org.freemarker:freemarker:pom:2.3.26.jbossorg-1 f
Flink 1.15编译报错Failed to execute goal com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generate (generate-fmpp-sources) on project flink-sql-parser: Execution generate-fmpp-sources of goal com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generat
2022-07-12 10:15:30 519 1
原创 NoSuchMethodError: org.springframework.core.type.AnnotationMetadata.introspect
spring-boot-starter spring-data-mongo NoSuchMethodError: org.springframework.core.type.AnnotationMetadata.introspect
2022-06-15 19:02:55 4234
原创 Markdown&&流程图实用工具汇总Obsidian+excalidraw
MarkdownObsidian首先推荐Obsidian,不光支持md,配上excalidraw 完美MarkDown效果,还可以选其他主题excalidraw 流程图效果画图1. excalidraw 免费 支持手绘风(也可以二开支持中文字体手绘风)2. draw.io3.processon4.飞书5.visio...
2022-03-10 14:35:26 5173 1
原创 go get -u 出错git submodule update --init --recursive cannot be used without a working tree.
C:\Users\Administrator>go get -u github.com/visualfc/gocode# cd E:\dev_tools\go1.15\mygo_path\src\golang.org\x\mod; git submodule update --init --recursivefatal: E:/dev_tools/Git/mingw64/libexec/git-core\git-submodule cannot be used without a working
2021-11-09 16:41:17 1137
原创 Protocol Buffer2.x如何生成Java class文件
注意--java_out=.指定路径,这样生成到指定文件夹D:\luyee\git-abc\ugcvideo-common-lib2\src\main\java\com\luyee\ugc\common\pb\message>protoc --versionlibprotoc 2.5.0D:\luyee\git-abc\ugcvideo-common-lib2\src\main\java\com\luyee\ugc\common\pb\message>D:\luyee\git-
2021-10-25 19:53:59 262
原创 Dubbo FactoryBean threw exception on object creation; nested exception is java.lang.UnsupportedOpera
错误如下Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.set(CopyOnWriteArrayList.java:1185) at java.util.Collections.sort(Collections.java:170) at org.apache.dubbo.rpc.cluster.RouterChain.so...
2021-08-26 16:30:51 541
原创 okhttp3 支持 https的坑
最开始由于第三方切换为https了,会出现java.io.IOException: Hostname was not verified所以要支持https了,这里碰到个okhttp3的坑,项目中okhttp的版本为4.2.0<dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <...
2021-04-29 20:21:13 2417
原创 golang grpc-go相关
unable to determine Go import path for "kv.proto"protoc --go_out=. --go-grpc_out=. --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative kv.protoprotoc-gen-go: unable to determine Go import path for "kv.proto"Please specify either: ...
2021-04-20 14:44:16 1022
原创 idea 报错 java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags
主要是jar包依赖冲突,增加dependencyManagement,升级lombok为高版本<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.16</version> <scope>provided</scope><
2021-01-20 20:54:11 466
原创 数据湖DeltaLake源码example运行调试
注意引入项目是examples下的scala为scala项目,编译与delta官网一致```build/sbt compile```注意在window下运行hadoop相关一堆事,我这里直接通过System.setProperty设置hadoop.home.dirSystem.setProperty("hadoop.home.dir", "E:\\code\\github\\winutils\\hadoop-3.0.0")配置好之后就可以运行调试Quicksta...
2020-11-06 19:59:42 339
原创 数据湖DeltaLake导入idea报错DeltaSqlBaseBaseListener is already defined as class DeltaSqlBaseBaseListener
sbt编译完导入idea后报错DeltaSqlBaseBaseListener is already defined as class DeltaSqlBaseBaseListener这个应该是重复文件吧,删除了target\scala-2.12\src_managed\main 只保留了target\scala-2.12\src_managed\main\antlr4就正常了...
2020-09-18 16:47:20 496 1
原创 记一次produces引发的404
发现有个服务快应用过来的请求突然都404(no mapping found)了,但是自己用postman调或者浏览器都正常开始怀疑是url中有乱码,加了个Filter, 这个是正常的,参数什么的也正常,按理是一样的最后实在没招了,想到可能是Header的问题,如果打印出所有的Header,对比快应用与postman的请求请求头Accept跟请求消息体Content-type居然都是application/x-protobuf,而自己的@RequestMapping又设置了prod..
2020-09-02 11:34:05 587
原创 数据湖DeltaLake编译scalastyle检查错误Failing because of negative scalastyle result
delta编译报错很明显是scalastyle检查的问题,但是sbt不像maven有-skip可以不执行检查, 用scalastyle:on /scalastyle:off 太麻烦,只好把scalastyle-config.xml文件的内容全部删除$ build/sbt compileUsing E:\dev_tools\jdk1.8.0_202\jdk as default JAVA_HOME.Note, this will be overridden by -java-home if it i
2020-07-02 17:23:33 615
原创 多个泛型CompletableFuture获取结果
获取feed列表通常里边需要依据Id查询用户信息import java.util.HashMap;import java.util.Map;import java.util.concurrent.CompletableFuture;import java.util.concurrent.ExecutionException;import java.util.concurrent.atomic.AtomicLong;public class BatchCompletableFutureTes
2020-05-26 16:54:02 1481
原创 Elasticsearch "reason": "date_time_parse_exception: Text '1588707487000' could not be parsed at inde
mapping{ "properties": { "createDate": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss" }, "id": { "type": "long" }
2020-05-11 21:03:57 7569 2
原创 ArrayBlockingQueue 自己坑了CPU搞出100%
写监控给自己挖了个坑哈哈,入队列肯定是不阻塞的,不入成功出队列写了个while poll
2020-05-07 10:38:50 728
原创 elasticsearch long类型出现精度丢失问题
建立schema添加doc17位postman结果es 后台查询结果js, 精度会丢失实际19位也可以?20位好像不行
2020-04-29 10:53:24 7531 1
原创 fidder抓取firefox请求
1.选着tools--->options--->Connections,点击Copy Brower Proxy Configuration URL2.还是在Firefox浏览器:选项中->常规->网络代理->设置->自动代理配置的Url(PAC),ctrl+V粘贴刚刚复制的fiddler代理地址...
2020-03-25 15:00:03 281
原创 301 Moved Permanently > websocket: bad handshake
1.SSL 配置 FULL2.Authenticated Origin Pulls,开启ON
2019-09-20 15:39:48 3843
原创 mybatis 返回主键
插入返回主键 <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" keyColumn="Fid" parameterType="com.dao.domain.calculationv2.ComputeDebug" >1,useGeneratedKeys="true" 2,keyP...
2019-09-18 16:01:46 199
原创 mybatis-generator-maven-plugin不生成WithBLOB结尾命名的domain
pom <build> <finalName>MybatisGen</finalName> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> ...
2019-09-12 09:51:21 1774
原创 flink1.9 源码编译
之前编译过blink,感觉很顺利,这次1.9 release 编译好几次都没成功。。。git clone https://github.com/apache/flink.gitcd flinkgit checkout release-1.9mvn clean install -DskipTests -Drat.skip=true一开始习惯的使用,编译好几次都失败了,-D...
2019-08-31 21:00:20 670
原创 java.lang.UnsupportedOperationException List.clear
用Set实现List去重的代码 public static <S> List<S> removeDedupElement(List<S> list) { TreeSet<S> set = new TreeSet<S>(list); list.clear(); list.addAll(set); return list...
2019-08-21 19:57:46 1190
原创 ProcessBuilder java.io.IOException: Cannot run program error=2, No such file or directory
通过javaProcessBuilder执行如下命令, String killCommand = String.format("ps -ef|grep java|grep 'kafka_sink_partitition_test_2019_0730/conf/'|awk '{print $2}'|xargs kill -9",taskName); try {...
2019-08-13 16:00:12 10406 1
原创 http json参数乱码
通过传递json参数,生成需要的spark任务模板,生成的Properties文件乱码。主要是http传参与服务端接收参数的问题解决方案客户端 httpPost.setEntity(new StringEntity(GsonUtils.toJsonString(map).toString(),"utf-8"));服务端 HttpServletRequest.setCh...
2019-06-05 18:23:10 453
原创 fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD)
git push$ git pushfatal: You are not currently on a branch.To push the history leading to the current (detached HEAD)state now, usegit status$ git statusHEAD detached from da74766nothing...
2019-06-05 10:53:43 12701
原创 spark idea java.lang.NoClassDefFoundError
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream at org.apache.spark.SparkConf.loadFromSystemProperties(SparkConf.scala:73) at org.apache.spark.Spar...
2019-05-29 15:57:25 2213 1
原创 Warning:scala: skipping Scala files without a Scala SDK in module(s)
scala 与java 混合的maven项目模块右键--》Add Framework Supporthttps://intellij-support.jetbrains.com/hc/en-us/community/posts/206411529-Add-Scala-SDK-to-module
2019-05-29 10:39:03 2065
原创 eclipse 不能识别scala代码 红叉
eclipse Version: Oxygen.3a Release (4.7.3a)安装了scalaIDE插件4.7.0 Release 与Oxygen兼容安装完后导入包含java,scala的maven项目,scala代码不能识别,都是红叉解决方案:右键单击工程--》Configure--》add scala nature;参考链接:https://stackover...
2019-05-28 15:18:11 929
原创 spark sql functions
org.apache.spark.sql.functions是一个Object,提供了很多函数。https://spark.apache.org/docs/2.3.1/api/java/org/apache/spark/sql/functions.html
2019-03-22 10:26:33 685
原创 printStackTrace&getMessage
package com.ly.test.fql;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class TestPrintStackTrace { private static final Logger LOG = LoggerFactory.getLogger(TestPrintStackTrac...
2019-02-18 21:19:10 288
原创 Error:(52, 75) not found: value TCLIService public abstract class ThriftCLIService extends AbstractS
maven编译完spark2.2.0,然后导入maven项目File-->new->Import project from external model-->maven方便hive-thriftserver的代码,记得select profiles 页勾选hive-thriftserver导入maven项目到idea 出现错误Error:(52, 75) not...
2019-02-13 13:27:03 353
原创 Error occurred during initialization of VM Could not reserve enough space for object heap
maven 编译报错D:\code\github\spark> set MAVEN_OPTS= -Xms2000m -Xmx2000mD:\code\github\spark> mvn clean install package -DskipTests -Dcheckstyle.skip=trueError occurred during initializatio...
2019-02-13 10:53:03 2168
原创 EINVRES Request to https://bower.herokuapp.com/packages/ failed with 502
解决方案:在.bowerrc文件添加:{ "registry": "https://registry.bower.io"}
2019-01-25 17:41:50 1220
原创 “Received fatal alert: protocol_version” or “peer not authenticated”
maven 编译的时候碰到解决方案 :export MAVEN_OPTS=-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2也可以通过在mvn前面添加 mvn -Dhttps.protocols=TLSv1.2 install
2019-01-24 14:37:03 1319
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人