{"action":"closed","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/1289","repository_url":"https://api.github.com/repos/xetorthio/jedis","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/1289/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/1289/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/1289/events","html_url":"https://github.com/xetorthio/jedis/issues/1289","id":156143411,"number":1289,"title":"Support password authentication in the redis cluster configurations","user":{"login":"charpty","id":8869963,"avatar_url":"https://avatars.githubusercontent.com/u/8869963?v=3","gravatar_id":"","url":"https://api.github.com/users/charpty","html_url":"https://github.com/charpty","followers_url":"https://api.github.com/users/charpty/followers","following_url":"https://api.github.com/users/charpty/following{/other_user}","gists_url":"https://api.github.com/users/charpty/gists{/gist_id}","starred_url":"https://api.github.com/users/charpty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charpty/subscriptions","organizations_url":"https://api.github.com/users/charpty/orgs","repos_url":"https://api.github.com/users/charpty/repos","events_url":"https://api.github.com/users/charpty/events{/privacy}","received_events_url":"https://api.github.com/users/charpty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-22T09:25:36Z","updated_at":"2016-05-22T15:03:48Z","closed_at":"2016-05-22T15:03:48Z","body":"### Expected behavior\r\n\r\n support to set password in JedisCluster\r\n\r\n### Actual behavior\r\n\r\nnot support(jedis 2.81)\r\n\r\n### Steps to reproduce:\r\n\r\n```\r\n\t\tSet<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6379));\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6380));\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6381));\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6382));\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6383));\r\n\t\tjedisClusterNodes.add(new HostAndPort(\"47.xx.7.10\", 6384));\r\n\t\tJedisCluster jc = new JedisCluster(jedisClusterNodes);\r\n\t\t// NOAUTH Authentication required.\r\n\t\tjc.auth(\"mypassword\");\r\n\t\tjc.set(\"foo\", \"bar\");\r\n\t\tString r = jc.get(\"foo\");\r\n\t\tSystem.out.println(r);\r\n\t\tjc.close();\r\n```\r\n\r\nor I use in Spring-data-redis\r\n```\r\n\t\tList<String> servers = new ArrayList<>();\r\n\t\tservers.add(\"47.xx.7.10:6379\");\r\n\t\tservers.add(\"47.xx.7.10:6380\");\r\n\t\tservers.add(\"47.xx.7.10:6381\");\r\n\t\tservers.add(\"47.xx.7.10:6382\");\r\n\t\tservers.add(\"47.xx.7.10:6383\");\r\n\t\tservers.add(\"47.xx.7.10:6384\");\r\n\t\tRedisClusterConfiguration clusterConfig = new RedisClusterConfiguration(servers);\r\n\t\tclusterConfig.setMaxRedirects(10);\r\n\t\tJedisConnectionFactory factory = new JedisConnectionFactory(clusterConfig);\r\n\t\tJedisPoolConfig poolConfig = new JedisPoolConfig();\r\n\t\tfactory.setPoolConfig(poolConfig);\r\n\t\t// Jedis does not support password protected Redis Cluster configurations!\r\n\t\tfactory.setPassword(\"mypassword\");\r\n\t\tfactory.afterPropertiesSet();\r\n\t\tRedisClusterConnection clusterConnection = factory.getClusterConnection();\r\n\t\tclusterConnection.set(\"test\".getBytes(), \"test-value\".getBytes());\r\n\t\tbyte[] bs = clusterConnection.get(\"test\".getBytes());\r\n\t\tSystem.out.println(\"result: \" + new String(bs));\r\n```\r\n\r\n### Redis / Jedis Configuration\r\nredis cluster \r\n127.0.0.1:6379> cluster info\r\ncluster_state:ok\r\ncluster_slots_assigned:16384\r\ncluster_slots_ok:16384\r\ncluster_slots_pfail:0\r\ncluster_slots_fail:0\r\ncluster_known_nodes:6\r\ncluster_size:6\r\ncluster_current_epoch:6\r\ncluster_my_epoch:1\r\ncluster_stats_messages_sent:4072\r\ncluster_stats_messages_received:4072\r\n#### Jedis version:\r\n2.81\r\n#### Redis version:\r\nredis-cli 2.8.19\r\n#### Java version:\r\njdk1.7\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"marcosnils"}}