2017-09-07 108 views
-3
: 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] 

回答

0

这是因为新加坡民防部队服务器收到请求获取从分析库唐数据(默认情况下是Redis的),你没有Redis按照SCDF服务器的预期运行。 其中一种情况是访问UI分析选项卡。

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

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

+0

我打算在此设置上使用分析。我正在运行redis,kafka,scdf local,这些都位于链接到公共网络的各个码头集装箱中。不想禁用分析功能。让我知道什么特定的设置需要照顾,以便redis和scdf连接得到解决。 – prigya

+0

Redis的所有需求都是Redis连接工厂设置,通过典型的Spring Boot Redis连接属性,前缀为'spring.redis',例如spring.redis.host,spring.redis.port属性。 –