- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 DataX-web运行时报错:jdbc4.MySQLNonTransientConnectionException:Could not create database server
DataX-web启动后执行器在线机器为0.0.0开头的地址,删除这个执行器后添加一个执行器,注册方式为手动录入,在线机器地址改为你的地址。结果系统仍不能调度成功。查看日志报错jdbc4.MySQLNonTransientConnectionException:Could not create database server,直接在datax下执行python ~/datax/bin/datax.py ~/datax/job/test.json也提示上述错误。原因是java的mysql-
2021-07-09 15:37:42 3080 1
转载 mysql出现ERROR : (2006, ‘MySQL server has gone away‘) 的问题意思就是指client和MySQL server之间的链接断开了
首选分析给出可能出现的原因,然后给出解决方案:(1)找出原因:造成这样的原因最常见的就是采集或者新旧数据转化——也就是一般说sql操作的时间过长,或者是传送的数据太大(例如使用insert ... values的语句过长, 这种情况可以通过修改max_allowed_packed的配置参数来避免,也可以在程序中将数据分批插入(使用mysql limit进行分页,循环分批处理数据));应用程序(比如PHP)长时间的执行批量的MYSQL语句。执行一个SQL,但SQL语句过大或者语句中含有BLOB或者lo
2021-07-08 16:26:28 552
原创 centos7 elasticsearch6.8.3启动提示bound or publishing to a non-loopback address, enforcing bootstrap che
centos7 elasticsearch6.8.3启动如果启动命令是./bin/elasticsearch会提示bound or publishing to a non-loopback address, enforcing bootstrap checksKilled服务并没有启动而改用启动命令是./bin/elasticsearch -d 则没问题
2021-07-07 14:14:53 2332
原创 canal.adapter启动报错Could not resolve placeholder ‘HOSTNAME%%.*‘
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'HOSTNAME%%.*' in value "history -a; printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}""配置里面根本就不需要用到HOSTNAME%%.*,所以这下有点蒙蔽,查看相关源码也没有要读取这个HOSTNAME%%.*,不得已,
2021-07-07 13:27:31 1363 5
原创 kkFileView使用过程中的问题
有时启动kkFileView时提示org.artofsolving.jodconverter.office.OfficeException: failed to start and connect,尝试再次重新启动即可。word 2007/2010 版本的文件,如果内容里面有1,2,3这些序号(一般回车就会自动出现的),不能正常预览。可能是字体问题 字体问题 大部分Linux系统上并没有预装中文字体或字体不全,需要把常用字体拷贝到Linux服务器上,具体操作如下: 下载如下字体包http:.
2021-07-07 11:05:34 3561
原创 elasticsearch6.8 {“error“:“Content-Type header [application/x-www-form-urlencoded] is not supported“
在postman中执行创建mapping时(_mapping?pretty)提示:"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406解决方法指定header头Content-Type: application/json即可
2021-07-06 08:35:59 156
原创 Elasticsearch-head 连接不上Elasticsearch的原因和解决方案
/编辑配置文件# vim /opt/elasticsearch/elasticsearch.yml //增加下面两项http.cors.enabled: true http.cors.allow-origin: "*"http.cors.enabled 是否支持跨域,默认为false http.cors.allow-origin 当设置允许跨域,默认为*,表示支持所有域名,如果我们只是允许某些网站能访问,那么可以使用正则表达式。比如只允许本地地址。/https?:\/\/loc..
2021-07-05 17:11:33 829
原创 Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/action/admin/indices/analyze/AnalyzeReq
查阅官方文档发现了它们之间有依赖关系:Dependenciesedit The High Level Java REST Client depends on the following artifacts and their transitive dependencies: org.elasticsearch.client:elasticsearch-rest-client org.elasticsearch:elasticsearch而且版本号尽量一致,不一致可能会导致某些api不可用。引入依
2021-07-05 11:34:52 1667
原创 elstic search6.8 报错max virtual memory areas vm.max_map_count [65530] is too low,max file descriptors
elstic search6.8.3报错: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]解决:在 /etc/sysctl.conf 追加最大虚拟空间限制 vm.max_map_count=262144 ,sysctl -p 使系统配置生效。
2021-07-02 16:12:21 100
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人