2017-09-07 107 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屬性。 –