[ 
https://issues.apache.org/jira/browse/AMBARI-5779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myroslav Papirkovskyy updated AMBARI-5779:
------------------------------------------

    Attachment: AMBARI-5779.patch

Uploaded patch

> Recommission a DN fails when https is enabled in Ambari server
> --------------------------------------------------------------
>
>                 Key: AMBARI-5779
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5779
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.6.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Blocker
>             Fix For: 1.6.0
>
>         Attachments: AMBARI-5779.patch
>
>
> After https is enable in Ambari server, Recommission a DN will fails with the 
> following error message found in the Ambari-server log:
> WARN [qtp1103265648-610] nio:651 - javax.net.ssl.SSLException: Received fatal 
> alert: certificate_unknown 
> 00:32:05,458 INFO [ExecutionScheduler_Worker-1] JobRunShell:207 - Job 
> LinearExecutionJobs.BatchRequestJob-2-1 threw a JobExecutionException: 
> org.quartz.JobExecutionException: org.apache.ambari.server.AmbariException: 
> Exception occurred while performing request [See nested exception: 
> org.apache.ambari.server.AmbariException: Exception occurred while performing 
> request] 
> at 
> org.apache.ambari.server.scheduler.AbstractLinearExecutionJob.execute(AbstractLinearExecutionJob.java:94)
>  
> at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 
> at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) 
> Caused by: org.apache.ambari.server.AmbariException: Exception occurred while 
> performing request 
> at 
> org.apache.ambari.server.scheduler.ExecutionScheduleManager.executeBatchRequest(ExecutionScheduleManager.java:479)
>  
> at 
> org.apache.ambari.server.state.scheduler.BatchRequestJob.doWork(BatchRequestJob.java:77)
>  
> at 
> org.apache.ambari.server.scheduler.AbstractLinearExecutionJob.execute(AbstractLinearExecutionJob.java:88)
>  
> ... 2 more 
> Caused by: com.sun.jersey.api.client.ClientHandlerException: 
> javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: 
> No name matching localhost found 
> at 
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
>  
> at 
> com.sun.jersey.api.client.filter.CsrfProtectionFilter.handle(CsrfProtectionFilter.java:97)
>  
> at 
> org.apache.ambari.server.security.authorization.internal.InternalTokenClientFilter.handle(InternalTokenClientFilter.java:39)
>  
> at com.sun.jersey.api.client.Client.handle(Client.java:648) 
> at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670) 
> at com.sun.jersey.api.client.WebResource.method(WebResource.java:311) 
> at 
> org.apache.ambari.server.scheduler.ExecutionScheduleManager.performApiRequest(ExecutionScheduleManager.java:619)
>  
> at 
> org.apache.ambari.server.scheduler.ExecutionScheduleManager.executeBatchRequest(ExecutionScheduleManager.java:469)
>  
> ... 4 more 
> Caused by: javax.net.ssl.SSLHandshakeException: 
> java.security.cert.CertificateException: No name matching localhost found 
> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) 
> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884) 
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276) 
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270) 
> at 
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
>  
> at 
> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153) 
> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868) 
> at sun.security.ssl.Handshaker.process_record(Handshaker.java:804) 
> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016) 
> at 
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
>  
> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339) 
> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323) 
> at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563) 
> at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
>  
> at 
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
>  
> at 
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to