赞
踩
在SparkStreaming中使用Redis进行高并发写,发现有时候会出现以下异常:
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)
at redis.clients.jedis.Connection.flush(Connection.java:303)
at redis.clients.jedis.Connection.getMany(Connection.java:317)
at redis.clients.jedis.Pipeline.sync(Pipeline.java:98)
at redis.clients.jedis.Pipeline.clear(Pipeline.java:84)
at redis.clients.jedis.Pipeline.close(Pipeline.java:157)
at com.amt.spark.streaming.UserBehaviorStreaming$1$12$1.call(UserBehaviorStreaming.java:353)
at com.amt.spark.streaming.UserBehaviorStreaming$1$12$1.call(UserBehaviorStreaming.java:331)
at org.apache.spark.api.java.JavaRDDLike
百度谷歌尝试了各种方法,发现一点用都没有,异常原因给我引导到错误的排查方式去了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。