Return-Path: Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: (qmail 41888 invoked from network); 14 Mar 2011 18:03:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Mar 2011 18:03:18 -0000 Received: (qmail 29374 invoked by uid 500); 14 Mar 2011 18:03:17 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 29328 invoked by uid 500); 14 Mar 2011 18:03:17 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 29320 invoked by uid 99); 14 Mar 2011 18:03:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2011 18:03:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qwertymaniac@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2011 18:03:11 +0000 Received: by fxm7 with SMTP id 7so4157350fxm.35 for ; Mon, 14 Mar 2011 11:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=ShTBzqD3L2yWRkVYwJ4g9ZDWmG43djg2G8PTYTMhHzg=; b=bSgaCczQHxI3zn1piH2jcOEy+Zz4Lxc2B0y6vQ9u1m/cn49R486+tAJ4Y3b9akV18y hKlRrf8SonqaXUeSyeij6kpyMgKcVlA8RuGSZfwRFCyyKUZ84qQc/KBifKHGGKu3uTMb 6EVlRvpQM+KVvEcNdmMsCrUsvVNSSNYirgypc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=FFcmIXBKDd0osOIzyv4KL3tzbg42+nCB5XJFarchqHmrz/zb2JNKodaP3BE6Ip57Uf x/fXmTgi31QlH1xp/4t5iodHBkfq9vHXdOI/Aha5gcoiU1wo1Q1+57yHpbTDq9keFdPx FQ8uUvdsIDLumns4yGPPTMtNanNqVE8MbiVj0= Received: by 10.223.14.137 with SMTP id g9mr1442565faa.2.1300125754971; Mon, 14 Mar 2011 11:02:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.123.139 with HTTP; Mon, 14 Mar 2011 11:02:05 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Mon, 14 Mar 2011 23:32:05 +0530 Message-ID: Subject: Re: problem to write on HDFS To: hdfs-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You're running into ulimit issues (You have hit the number of open files allowed for a/the user). It is not an uncommon problem, and some web-searching should help you solve it :) http://www.google.com/search?q=Too+many+open+files Also, do remember to close your open files and file-system connections when you're done with them for a task. On Mon, Mar 14, 2011 at 11:18 PM, Alessandro Binhara wrote: > Hello ... > I have a servlet on tomcat.. and it open a hdfs and write simple file with a > content of post information. > Well , in first test we had a 14.000 request per second. > My servet start many trads to write on filesystem. > i got this message on tomcat: > Mar 11, 2011 6:00:20 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run > SEVERE: Socket accept failed > java.net.SocketException: Too many open files > > HDFS is slow to write a file? > How is a better strategy to write on HFDS... > In real aplication we will have a 100.000 request per second to salve in > hdfs. > thanks.. > > -- Harsh J http://harshj.com