2017-09-07 1 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

SCDF 서버 (기본적으로 레디 스입니다) 분석 저장소에서 데이터를하고 돈을 가져 오기 위해 요청을 받고 있기 때문이다 Redis이 SCDF 서버에서 예상대로 실행되고 있지 않습니다. 이러한 경우 중 하나가 UI 분석 탭에 액세스하는 것입니다.

spring.cloud.dataflow.features.analytics-enabledfalse으로 설정하여 anlaytics 기능을 사용 중지 할 수도 있습니다.

이것은 https://github.com/spring-cloud/spring-cloud-dataflow/issues/1636과 관련된 것입니다.

+0

이 설정에서 analytics를 사용하려고합니다. redis, kafka, scdf local을 공통 네트워크에 연결된 각각의 도커 컨테이너에 모두 실행합니다. 분석 기능을 비활성화하고 싶지 않습니다. redis 및 scdf 연결이 해결되도록 처리해야하는 특정 설정을 알려주십시오. – prigya

+0

redis에 필요한 것은 spring.redis.host, spring.redis.port 속성과 같은 접두어'spring.redis'를 사용하는 일반적인 Spring Boot Redis 연결 속성을 통한 Redis 연결 팩토리 설정입니다. –