尝试在docker容器中运行Spring-cloud-data-flow服务器时收到Redis连接失败异常

时间:2017-09-07 04:41:06

标签: redis spring-cloud-dataflow

: Failed to perform redis operation.

org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
    at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:204) ~[spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:348) ~[spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:129) ~[spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:92) ~[spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:79) ~[spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:194) [spring-data-redis-1.8.4.RELEASE.jar!/:na]
    at org.springframework.analytics.retry.RedisRetryTemplate.access$101(RedisRetryTemplate.java:34) [spring-analytics-1.1.3.RELEASE.jar!/:na]
    at org.springframework.analytics.retry.RedisRetryTemplate$1.doWithRetry(RedisRetryTemplate.java:70) ~[spring-analytics-1.1.3.RELEASE.jar!/:na]
    at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:286) [spring-retry-1.2.0.RELEASE.jar!/:na]
    at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:179) [spring-retry-1.2.0.RELEASE.jar!/:na]
    at org.springframework.analytics.retry.RedisRetryTemplate.execute(RedisRetryTemplate.java:63) [spring-analytics-1.1.3.RELEASE.jar!/:na]

1 个答案:

答案 0 :(得分:0)

这是因为SCDF服务器接收从分析存储库(默认为redis)获取数据的请求,并且您没有按照SCDF服务器的预期运行Redis。 其中一种情况是访问UI分析选项卡。

您还可以通过将anlaytics设置为spring.cloud.dataflow.features.analytics-enabled来停用false功能。

这与https://github.com/spring-cloud/spring-cloud-dataflow/issues/1636有关。