Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC5EA102A8 for ; Sun, 27 Oct 2013 22:44:53 +0000 (UTC) Received: (qmail 37553 invoked by uid 500); 27 Oct 2013 22:44:46 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 37130 invoked by uid 500); 27 Oct 2013 22:44:37 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 37096 invoked by uid 99); 27 Oct 2013 22:44:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Oct 2013 22:44:33 +0000 Date: Sun, 27 Oct 2013 22:44:33 +0000 (UTC) From: "Arpit Agarwal (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-5295) hsftp throws an exception in the end on secure cluster with https enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arpit Agarwal updated HDFS-5295: -------------------------------- Affects Version/s: 3.0.0 Status: Patch Available (was: Open) > hsftp throws an exception in the end on secure cluster with https enabled > ------------------------------------------------------------------------- > > Key: HDFS-5295 > URL: https://issues.apache.org/jira/browse/HDFS-5295 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.1.1-beta, 3.0.0 > Environment: Secure > Reporter: Yesha Vora > Assignee: Arpit Agarwal > Attachments: secure-https-part2.07.patch > > > The hsftp command throws "java.net.SocketException: Unexpected end of file from server" exception in the end in secure environment and with https enabled. > Using https port defined by dfs.https.port=50701 > /usr/bin/hdfs dfs -fs hdfs://hostname:8020 -ls -R "hsftp://hostname:50701/user/abc/1380829410/.abc.crc" > -rw-r--r-- 3 abc abc 12 2013-10-03 19:44 hsftp://hostname:50701/user/abc/1380829410/.abc.crc > 13/10/03 19:50:48 INFO tools.DelegationTokenFetcher: error in cancel over HTTP > java.net.SocketException: Unexpected end of file from server > at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718) > at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579) > at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:715) > at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579) > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322) > at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) > at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.isNegotiate(KerberosAuthenticator.java:224) > at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:194) > at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:232) > at org.apache.hadoop.security.SecurityUtil.openSecureHttpConnection(SecurityUtil.java:512) > at org.apache.hadoop.hdfs.tools.DelegationTokenFetcher.cancelDelegationToken(DelegationTokenFetcher.java:354) > at org.apache.hadoop.hdfs.HftpFileSystem$TokenManager.cancel(HftpFileSystem.java:730) > at org.apache.hadoop.security.token.Token.cancel(Token.java:384) > at org.apache.hadoop.fs.DelegationTokenRenewer$RenewAction.cancel(DelegationTokenRenewer.java:152) > at org.apache.hadoop.fs.DelegationTokenRenewer$RenewAction.access$200(DelegationTokenRenewer.java:58) > at org.apache.hadoop.fs.DelegationTokenRenewer.removeRenewAction(DelegationTokenRenewer.java:241) > at org.apache.hadoop.hdfs.HftpFileSystem.close(HftpFileSystem.java:417) > at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2524) > at org.apache.hadoop.fs.FileSystem$Cache$ClientFinalizer.run(FileSystem.java:2541) > at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54) > 13/10/03 19:50:48 INFO fs.FileSystem: FileSystem.Cache.closeAll() threw an exception: > java.net.SocketException: Unexpected end of file from server -- This message was sent by Atlassian JIRA (v6.1#6144)