我有一个Scala程序,使用线程(实际上是Spark)和Redis (Jedis)。我为我的Redis操作定义了一个object,其中我为连接定义了一个Lazy val。连接对象: lazy val r = new Jedis("127.0.0.1",6379,30)
def find(u: Long): Option[Long]首先,我在每个线程中都有Unknown replay: 4,其中"4“是一个随机字符(redis.clients.jedis.
querying cache : class org.springframework.data.redis.RedisConnectionFailureException Message: Cannot get Jedisconnection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not geta resource from the poolCause: redis.clients.jedis.exception