From mapreduce-issues-return-91761-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed May 16 18:11:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2CC9E180671 for ; Wed, 16 May 2018 18:11:06 +0200 (CEST) Received: (qmail 90467 invoked by uid 500); 16 May 2018 16:11:05 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 90456 invoked by uid 99); 16 May 2018 16:11:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2018 16:11:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8C6C01A2D7C for ; Wed, 16 May 2018 16:11:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0BXwCKj4JB2h for ; Wed, 16 May 2018 16:11:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C9CEF5F41C for ; Wed, 16 May 2018 16:11:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 000EDE02EC for ; Wed, 16 May 2018 16:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7A318217B4 for ; Wed, 16 May 2018 16:11:00 +0000 (UTC) Date: Wed, 16 May 2018 16:11:00 +0000 (UTC) From: "Adam Szita (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-7094) LocalDistributedCacheManager leaves classloaders open, which leaks FDs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-7094?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Szita updated MAPREDUCE-7094: ---------------------------------- Status: Patch Available (was: In Progress) > LocalDistributedCacheManager leaves classloaders open, which leaks FDs > ---------------------------------------------------------------------- > > Key: MAPREDUCE-7094 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-7094 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 2.6.0 > Reporter: Adam Szita > Assignee: Adam Szita > Priority: Major > Attachments: MAPREDUCE-7094.0.patch, MAPREDUCE-7094.1.patch, MAPR= EDUCE-7094.2.patch, MAPREDUCE-7094.3.patch, MAPREDUCE-7094.4.patch, MAPREDU= CE-7094.5.patch > > > When a user starts a local mapred task from Hive's beeline, it will leave= open file descriptors on the HS2 process (which runs the mapred task). > I debugged this and saw that it is caused by LocalDistributedCacheManager= class, which creates a new URLClassLoader, with a classpath for the two ja= rs seen below. Somewhere down the line Loaders will be created in this URLC= lassLoader for these files effectively creating the FD's on the OS level. > This is never cleaned up after execution, although=C2=A0LocalDistributedC= acheManager removes the files, it will not close the ClassLoader, so=C2=A0F= Ds are left open although they point to deleted files at that time: > {code:java} > [root@host-1 ~]# lsof -p 14439 | grep hadoop-hive > java=C2=A0 =C2=A0 14439 hive=C2=A0 DEL =C2=A0 =C2=A0 =C2=A0 REG=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 8,1 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 3348748 /tmp/hadoop-hive/mapred/local/1525789796610/hive-= exec-core.jar > java=C2=A0 =C2=A0 14439 hive=C2=A0 DEL =C2=A0 =C2=A0 =C2=A0 REG=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 8,1 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 3348750 /tmp/hadoop-hive/mapred/local/1525789796609/hive-= exec-1.1.0-cdh5.13.4-SNAPSHOT-core.jar > java=C2=A0 =C2=A0 14439 hive=C2=A0 649r=C2=A0 =C2=A0 =C2=A0 REG=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 8,1 =C2=A0 8112438 =C2=A0 334= 8750 /tmp/hadoop-hive/mapred/local/1525789796609/hive-exec-1.1.0-cdh5.13.4-= SNAPSHOT-core.jar (deleted) > java=C2=A0 =C2=A0 14439 hive=C2=A0 650r=C2=A0 =C2=A0 =C2=A0 REG=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 8,1 =C2=A0 8112438 =C2=A0 334= 8748 /tmp/hadoop-hive/mapred/local/1525789796610/hive-exec-core.jar (delete= d) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org