title: Error when calling h2o.init() in R to connecting to remote cluster
body: <p>I'm trying to connect to the cluster hosted on EC2 machine from R and getting the same error when trying both on Windows and Mac:</p>
  
  <pre><code>&gt; h2o.init(ip = "&lt;Public IP&gt;")
   Connection successful!
  
  
  ERROR: Unexpected HTTP Status code: 404 Not Found (url = http://&lt;Public IP&gt;:54321/3/Cloud?skip_ticks=true)
  
  Error: lexical error: invalid char in json text.
                                         &lt;!DOCTYPE html&gt; &lt;html lang="en"
                       (right here) ------^
  </code></pre>
  
  <ul>
  <li>Cluster is reachable at <code>http://&lt;Public IP&gt;:54321/</code></li>
  <li>Starting a local cluster with <code>h2o.init()</code> also works fine in R, so the problem is only when trying to connect to <strong>remote</strong> one.</li>
  </ul>
  
  <p>I've seen the following <a href="https://0xdata.atlassian.net/browse/PUBDEV-1460" rel="nofollow">issue</a> marked as resolved, but it doesn't help in my case. Have anybody experienced anything similar?</p>
  
  <hr>
  
  <p><strong>UPD:</strong> The answer was very simple. It turns out that the code example given in their <a href="http://h2o-release.s3.amazonaws.com/h2o/rel-lambert/5/docs-website/deployment/ec2_build_ami.html" rel="nofollow">guide for EC2</a> is outdated and uses the old version of H2O. Using the most recent version (<a href="http://s3.amazonaws.com/h2o-release/h2o/master/3555/index.html" rel="nofollow">3.9.1.5555</a> at the moment) on EC2 machines has resolved the issue.</p>