hadoop-hdfs-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/HDFS-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031377#comment-15031377
] 

Surendra Singh Lilhore commented on HDFS-9471:
----------------------------------------------

Thanks [~cnauroth] for suggestion..

{{swebhdfs}} is working :), but I didn't find anything related to {{swebhdfs}} in [webhdfs
document | https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html].

> 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