Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 81564 invoked from network); 25 Sep 2009 00:06:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 00:06:38 -0000 Received: (qmail 66507 invoked by uid 500); 25 Sep 2009 00:06:38 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 66465 invoked by uid 500); 25 Sep 2009 00:06:38 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 66455 invoked by uid 99); 25 Sep 2009 00:06:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 00:06:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 00:06:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0B05F234C004 for ; Thu, 24 Sep 2009 17:06:16 -0700 (PDT) Message-ID: <224276520.1253837176030.JavaMail.jira@brutus> Date: Thu, 24 Sep 2009 17:06:16 -0700 (PDT) From: "Koji Noguchi (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6284) Any hadoop commands crashing jvm (SIGBUS) when /tmp (tmpfs) is full In-Reply-To: <33483689.1253743516095.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koji Noguchi updated HADOOP-6284: --------------------------------- Attachment: hadoop-6284-patch-v1.txt It's a silly patch but introduces a new env HADOOP_JAVA_PLATFORM_OPTS . With this, no option set. {noformat} [knoguchi@ ~]$ df /tmp Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 524288 524288 0 100% /tmp [knoguchi@ ~]$ hadoop dfs -ls / # # An unexpected error has been detected by Java Runtime Environment: # # SIGBUS (0x7) at pc=0x00824077, pid=12811, tid=4160617360 # # Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86) # Problematic frame: # C [libc.so.6+0x6e077] memset+0x37 # # An error report file with more information is saved as: # /homes/knoguchi/hs_err_pid12811.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Abort {noformat} Setting HADOOP_CLIENT_OPTS {noformat} [knoguchi@ ~]$ setenv HADOOP_CLIENT_OPTS '-XX:-UsePerfData' [knoguchi@ ~]$ $HADOOP_HOME/bin/hadoop dfs -ls / Exception in thread "main" java.lang.NoClassDefFoundError: #_An_unexpected_error_has_been_detected_by_Java_Runtime_Environment: Caused by: java.lang.ClassNotFoundException: #_An_unexpected_error_has_been_detected_by_Java_Runtime_Environment: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) {noformat} This is because hadoop is executing java -Xmx1000m -Djava.library.path=/.../hadoop/bin/../lib/native/# #_An_unexpected_error_has_been_detected_by_Java_Runtime_Environment: # (basically JAVA_PLATFORM became a long error message) and then {noformat} [knoguchi@ ~]$ setenv HADOOP_JAVA_PLATFORM_OPTS '-XX:-UsePerfData' [knoguchi@ ~]$ $HADOOP_HOME/bin/hadoop dfs -ls / Found 10 items drwx------ - ... {noformat} works. I'm reluctant to put -XX:-UsePerfData directly in hadoop script since I don't know when java stops supporting this option. > Any hadoop commands crashing jvm (SIGBUS) when /tmp (tmpfs) is full > -------------------------------------------------------------------- > > Key: HADOOP-6284 > URL: https://issues.apache.org/jira/browse/HADOOP-6284 > Project: Hadoop Common > Issue Type: Improvement > Components: scripts > Reporter: Koji Noguchi > Priority: Minor > Attachments: hadoop-6284-patch-v1.txt > > > {noformat} > [knoguchi@ ~]$ df /tmp > Filesystem 1K-blocks Used Available Use% Mounted on > tmpfs 524288 524288 0 100% /tmp > [knoguchi@ ~]$ hadoop dfs -ls > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGBUS (0x7) at pc=0x00824077, pid=19185, tid=4160617360 > # > # Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86) > # Problematic frame: > # C [libc.so.6+0x6e077] memset+0x37 > # > # An error report file with more information is saved as: > # /homes/knoguchi/hs_err_pid19185.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > Aborted > [knoguchi@ ~]$ > {noformat} > This does not happen when /tmp is not in tmpfs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.