apache-incubator-streampark源码编译本地运行(四)
发表于|更新于
|浏览量:
泰山不让土壤,故能成其大;河流不择细流,故能就其深。——李斯
首先是编译,由于我换到了mac,并且maven profile又发生了改变:
执行跟目录的build.sh
执行后scala报错。。。

此时删除掉maven本地repository里的org.scala-lang
重新执行即可
1 | Caused by: java.lang.ClassNotFoundException: org.apache.streampark.shaded.org.slf4j.Logger |
主要最后的部分:
1 | Caused by: java.lang.ClassNotFoundException: org.apache.streampark.shaded.org.slf4j.Logger |
我们切换到shaded模块进行install
相关推荐
2023-01-29
jackson序列化时区问题
念人之过必忘人之功——佚名 今天发现返回给前端的Date和数据库中查到的时间对不上 排查发现是Jackson指定时区问题,原先用的GMT+8,但数据库是Asia/Shanghai 123ObjectMapper shanghaiObjectMapper = new ObjectMapper() .setTimeZone(TimeZone.getTimeZone("Asia/Shanghai")) .setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")); 引用:https://alphahinex.github.io/2021/10/31/difference-between-gmt-plus-8-and-asia-shanghai/ 里面提到的 GMT+8 和 Asia/Shanghai 的区别 GMT+8 因为没有位置信息,所以无法使用夏令时 Asia/Shanghai 使用夏令时 时间戳字符串中不包含时区...
2021-01-16
spire.doc渲染pdf时富文本处理
不以一眚掩大德。——《左传》 使用spire.doc渲染富文本的话,可以使用Paragraph中的appendHTML()函数去渲染富文本,例如下面 1234567891011121314151617181920212223242526272829package com.ruben;import com.spire.doc.Document;import com.spire.doc.FileFormat;import com.spire.doc.documents.Paragraph;import java.time.LocalDateTime;import java.time.format.DateTimeFormatter;import java.util.Locale;/** * @ClassName: WordDemo * @Description: 我还没有写描述 * @Date: 2021/1/15 0015 20:31 * * * @author: <achao1441470436@gmail.com> * @version: 1.0 * @sinc...
2023-01-21
easy-trans
我参加了他的葬礼,在一个工作日的上午。——布里特·彼得《造船厂:脚手架装配作业》 分享一个框架easy-trans gitee:https://gitee.com/dromara/easy_trans 插件文档:http://easy-trans.fhs-opensource.top/ easy trans适用于5种场景1 我有一个id,但是我需要给客户展示他的title/name 但是我又不想自己手动做表关联查询2 我有一个字典码 sex 和 一个字典值0 我希望能翻译成 男 给客户展示。3 我有一组user id 比如 1,2,3 我希望能展示成 张三,李四,王五 给客户4 我有一个枚举,枚举里有一个title字段,我想给前端展示title的值 给客户5 我有一个唯一键(比如手机号,身份证号码,但是非其他表id字段),但是我需要给客户展示他的title/name 但是我又不想自己手动做表关联查询 食用步骤技术经理/架构 需要做的事情1 、先把maven 引用加上(注意,阿里云Maven仓库因为阿里本身软件升级所以暂时无法同步中央仓库的新发布...
2022-01-22
Collectors.toMap的对null友好实现
令她反感的,远不是世界的丑陋,而是这个世界所戴的漂亮面具。——《不能承受的生命之轻》 我们在使用toMap时如果遇到null元素,经常会导致我们发生npe 很不方便 于是我给hutool提交了一个PR 完美解决了这个问题 使用方式: 升级到hutool-5.7.20 然后使用CollectorUtil 12Map<String, Integer> collect = Arrays.asList("ruben", "a chao", "vampire", "RUBEN", "VAMPIRE", null).stream().collect(CollectorUtil.toMap(Function.identity(), String::length, (l, r) -> l));System.out.println(collect); 即可
2023-12-11
spring-state-machine使用redis持久化
问号是开启任何一门科学的钥匙。——巴甫洛夫 之前介绍过spring-state-machine持久化 今天使用redis实现 首先是需要一个RedisStateMachineRepository 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103import com.alibaba.nacos.common.utils.JacksonUtils;import jakarta.annotation.Nonnull;import jakarta.annotation.Resource;import org.dromara.streamquery.stream.core.stream.Steam;import org.springfra...
2023-02-04
rewriteBatchedStatements
从前的日色变得慢,车,马,邮件都慢,一生只够爱一个人。——木心 我们在使用mybatis进行批量更新时,可以在mysql的链接url处添加rewriteBatchedStatements=true提升效率. 文档:https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-connp-props-performance-extensions.html 1rewriteBatchedStatements Should the driver use multi-queries, regardless of the setting of ‘allowMultiQueries’, as well as rewriting of prepared statements for INSERT and REPLACE queries into multi-values clause statements when ‘executeBatch()’ is called? Notice that this might allow SQL...
