[
https://issues.apache.org/jira/browse/SLIDER-593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Maron updated SLIDER-593:
----------------------------------
Attachment: SLIDER-593.001.patch
With the following patch I see the slider client's registry command working.
Some notes:
1) The redirect to an HTTPS enabled RM requires a trust store to be configured
for the slider client:
-Djava.security.krb5.realm=EXAMPLE.COM
-Djava.security.krb5.kdc=c6401.ambari.apache.org
-Djavax.net.ssl.trustStore=/vagrant/keystore.jks
-Djavax.net.ssl.trustStorePassword=password
2) The patch redirects on its own prior to hand back to Jersey:
2014-10-31 19:03:11,019 [main] DEBUG retrieve.RegistryRetriever - GET
http://c6405.ambari.apache.org:48001/ws/v1/slider/publisher/slider
2014-10-31 19:03:11,036 [main] INFO retrieve.RegistryRetriever - Protocol
change during redirect. Invoking redirect URL
https://c6403.ambari.apache.org:8090/proxy/application_1414071922318_0017/ws/v1/slider/publisher/slider
Comments welcome.
> registry/REST interactions fail with "302 Found" errors if HTTPS is enabled
> for RM
> ----------------------------------------------------------------------------------
>
> Key: SLIDER-593
> URL: https://issues.apache.org/jira/browse/SLIDER-593
> Project: Slider
> Issue Type: Bug
> Reporter: Jonathan Maron
> Assignee: Jonathan Maron
> Fix For: Slider 0.60
>
> Attachments: SLIDER-593.001.patch
>
>
> The java HTTP support does not redirect between protocols (HTTP and HTTPS).
> So in situations where HTTPS is enabled for the RM (yarn.http.policy), the
> redirections from AM to RM fail with a "302 Found" error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)