当前位置:网站首页>Record a redis timeout
Record a redis timeout
2022-07-25 15:15:00 【The south wind knows what I mean】
Project scenario :
Spark Streaming Task consumption kafka, hold offsets Deposit in redis
Problem description
The main bug:
ERROR yarn.ApplicationMaster: User class threw exception: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:204)
at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:42)
at redis.clients.jedis.Protocol.process(Protocol.java:126)
at redis.clients.jedis.Protocol.read(Protocol.java:192)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:316)
at redis.clients.jedis.Connection.getOne(Connection.java:298)
at redis.clients.jedis.Connection.executeCommand(Connection.java:123)
at redis.clients.jedis.Jedis.set(Jedis.java:4725)
at cn.huorong.utils.RedisUtils$.$anonfun$writeOffset$3(RedisUtils.scala:45)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:128)
at cn.huorong.utils.RedisUtils$.writeOffset(RedisUtils.scala:40)
at cn.huorong.run.SampleTaskSinkHbaseMapping.$anonfun$sink$1(SampleTaskSinkHbaseMapping.scala:51)
at cn.huorong.run.SampleTaskSinkHbaseMapping.$anonfun$sink$1$adapted(SampleTaskSinkHbaseMapping.scala:17)
at org.apache.spark.streaming.dstream.DStream.$anonfun$foreachRDD$2(DStream.scala:629)
at org.apache.spark.streaming.dstream.DStream.$anonfun$foreachRDD$2$adapted(DStream.scala:629)
at org.apache.spark.streaming.dstream.ForEachDStream.$anonfun$generateJob$2(ForEachDStream.scala:51)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at org.apache.spark.streaming.dstream.DStream.createRDDWithLocalProperties(DStream.scala:417)
at org.apache.spark.streaming.dstream.ForEachDStream.$anonfun$generateJob$1(ForEachDStream.scala:51)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.util.Try$.apply(Try.scala:213)
at org.apache.spark.streaming.scheduler.Job.run(Job.scala:39)
at org.apache.spark.streaming.scheduler.JobScheduler$JobHandler.$anonfun$run$1(JobScheduler.scala:256)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
at org.apache.spark.streaming.scheduler.JobScheduler$JobHandler.run(JobScheduler.scala:256)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
Cause analysis :
redis colony Caused by excessive load redis Connection timeout , The program is down
Solution :
increase redis Time is enough
//connectionTimeout Connection timeout ( Default 2000ms)
private val redis: Jedis = new Jedis(HOST, PORT,100000)
边栏推荐
- NPM's nexus private server e401 E500 error handling record
- Raft of distributed consistency protocol
- Implementation of redis distributed lock
- 瀑布流布局
- Share a department design method that avoids recursion
- CMake指定OpenCV版本
- Boosting之GBDT源码分析
- 6月产品升级观察站
- C语言函数复习(传值传址【二分查找】,递归【阶乘,汉诺塔等】)
- @Scheduled source code analysis
猜你喜欢

密码强度验证示例

spark分区算子partitionBy、coalesce、repartition

Bridge NF call ip6tables is an unknown key exception handling

ice 100G 网卡分片报文 hash 问题

Introduction to raspberry Pie: initial settings of raspberry pie

VMware Workstation fails to start VMware authorization service when opening virtual machine

Use the command to check the WiFi connection password under win10 system

oracle_ 12505 error resolution

Spark SQL空值Null,NaN判断和处理

在win10系统下使用命令查看WiFi连接密码
随机推荐
sql server强行断开连接
VMware Workstation fails to start VMware authorization service when opening virtual machine
图片的懒加载
Maxcompute SQL 的查询结果条数受限1W
[Android] recyclerview caching mechanism, is it really difficult to understand? What level of cache is it?
Spark DF增加一列
Recommend 10 learning websites that can be called artifact
Overview of JS synchronous, asynchronous, macro task and micro task
Outline and box shadow to achieve the highlight effect of contour fillet
System. Accessviolationexception: an attempt was made to read or write to protected memory. This usually indicates that other memory is corrupted
C语言函数复习(传值传址【二分查找】,递归【阶乘,汉诺塔等】)
pkg_ Resources dynamic loading plug-in
防抖(debounce)和节流(throttle)
简易轮播图和打地鼠
Share a department design method that avoids recursion
Award winning interaction | 7.19 database upgrade plan practical Summit: industry leaders gather, why do they come?
Hbck 修复问题
My creation anniversary
Install entityframework method
Tasks, micro tasks, queues and scheduling (animation shows each step of the call)