title: Cannot get master address from sentinel running @myIpaddress:6379
body: <p>I'm working on implementing the master slave using sentinels in Redis with spring boot application. And while creating the JedisSentinelPool using sentinels I'm getting the following error</p>
  
  <blockquote>
    <p>Cannot get master address from sentinel running @myIpaddress:6379</p>
  </blockquote>
  
  <p>Below is the code.</p>
  
  <pre><code>        final String MASTER_NAME = "mymaster";
          final String PASSWORD = "empower";
          final Set sentinels;
  
          sentinels = new HashSet();
          sentinels.add("127.0.0.1:6379");
          sentinels.add("127.0.0.1:2222");
          sentinels.add("127.0.0.1:3333");
  
          JedisSentinelPool pool = new JedisSentinelPool(MASTER_NAME, sentinels);
  </code></pre>
  
  <p>My question is how do I run the sentinels and how do I fix this issue. Any kind of help is appreciated.</p>
  
  <p>Thanks in advance.</p>