You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Bilwa S T (JIRA)" <ji...@apache.org> on 2019/06/06 08:06:01 UTC
[jira] [Comment Edited] (YARN-9606) Set sslfactory for
AuthenticatedURL() while creating LogsCLI#webServiceClient
[ https://issues.apache.org/jira/browse/YARN-9606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857400#comment-16857400 ]
Bilwa S T edited comment on YARN-9606 at 6/6/19 8:05 AM:
---------------------------------------------------------
In LogsCLI#run method when webServiceClient is created SSLFactory must be set
{quote}webServiceClient = new Client(new URLConnectionClientHandler(
new HttpURLConnectionFactory() {
@Override
public HttpURLConnection getHttpURLConnection(URL url)
throws IOException {
AuthenticatedURL.Token token = new AuthenticatedURL.Token();
HttpURLConnection conn = null;
try
Unknown macro: \{ conn = new AuthenticatedURL().openConnection(url, token); }
catch (AuthenticationException e)
Unknown macro: \{ throw new IOException(e); }
return conn;
}
}));
{quote}
was (Author: bilwast):
In LogsCLI#run method when webServiceClient is created SSLFactory must be set
> Set sslfactory for AuthenticatedURL() while creating LogsCLI#webServiceClient
> ------------------------------------------------------------------------------
>
> Key: YARN-9606
> URL: https://issues.apache.org/jira/browse/YARN-9606
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Bilwa S T
> Assignee: Bilwa S T
> Priority: Major
>
> Yarn logs fails for running containers
> {quote}
> Unable to fetch log files list
> Exception in thread "main" java.io.IOException: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: Error while authenticating with endpoint: [https://vm2:65321/ws/v1/node/containers/container_e05_1559802125016_0001_01_000008/logs]
> at org.apache.hadoop.yarn.client.cli.LogsCLI.getContainerLogFiles(LogsCLI.java:543)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.getMatchedContainerLogFiles(LogsCLI.java:1338)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.getMatchedOptionForRunningApp(LogsCLI.java:1514)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.fetchContainerLogs(LogsCLI.java:1052)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.runCommand(LogsCLI.java:367)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCLI.java:152)
> at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsCLI.java:399)
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org