title: Mapreduce job history server and yarn web UIs do not respect HTTPS_ONLY policy
body: <p>I am using hadoop 2.7.2 and have configured HTTPS for yarn and job history server web UIs but the UIs are still served as HTTP and not HTTPS.</p>
  
  <p>I have set up key and trust stores and configuring ssl-server.xml and ssl-client.xml. In addition to that, I have put the following properties in mapred-site.xml using ambari:</p>
  
  <pre><code>mapreduce.jobhistory.http.policy=HTTPS_ONLY
  mapreduce.jobhistory.webapp.https.address=JHS:19889
  mapreduce.jobhistory.webapp.address=JHS:19889
  </code></pre>
  
  <p>When I access the https url <a href="https://JHS:19889" rel="nofollow noreferrer">https://JHS:19889</a>, I receive the following error:</p>
  
  <pre><code>SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
  </code></pre>
  
  <p>The above error is because the job history server is listening for http connections and not https.</p>
  
  <p>When I access the same url with http i.e. <a href="http://JHS:19889" rel="nofollow noreferrer">http://JHS:19889</a>, I can see the job history server web ui. Same thing happens for yarn's resource manager web UI after having made the following configuration:</p>
  
  <pre><code>yarn.http.policy=HTTPS_ONLY
  yarn.log.server.url=https://JHS:19889/jobhistory/logs
  yarn.resourcemanager.webapp.https.address=RM:8090
  yarn.nodemanager.webapp.https.address=0.0.0.0:8090
  </code></pre>
  
  <p>How can I make the yarn and job history server web UIs make available on HTTPS?</p>