hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-9471) Webhdfs not working with shell command when kerberos security+https is enabled.
Date Mon, 30 Nov 2015 17:19:11 GMT

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

Chris Nauroth resolved HDFS-9471.
---------------------------------
    Resolution: Not A Problem

[~surendrasingh], that's a good point about the documentation.  I filed HDFS-9483 to track
a documentation improvement.  If you're interested in providing the documentation, please
feel free to pick up that one.  I'm going to resolve this one.

> Webhdfs not working with shell command when kerberos security+https is enabled.
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-9471
>                 URL: https://issues.apache.org/jira/browse/HDFS-9471
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.7.1
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Blocker
>         Attachments: HDFS-9471.01.patch
>
>
> *Client exception*
> {code}
> secure@host85:/opt/hdfsdata/HA/install/hadoop/namenode/bin> ./hdfs dfs -ls webhdfs://x.x.x.x:50070/test
> 15/11/25 18:46:55 ERROR web.WebHdfsFileSystem: Unable to get HomeDirectory from original
File System
> java.net.SocketException: Unexpected end of file from server
>         at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792)
> {code}
> *Exception in namenode log*
> {code}
> 2015-11-26 11:03:18,231 WARN org.mortbay.log: EXCEPTION
> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
>         at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
>         at sun.security.ssl.InputRecord.read(InputRecord.java:527)
>         at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961)
>         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
>         at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:708)
>         at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> {code}
> This is because URL schema hard coded in {{WebHdfsFileSystem.getTransportScheme()}}.
> {code}
>  /**
>    * return the underlying transport protocol (http / https).
>    */
>   protected String getTransportScheme() {
>     return "http";
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message