Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B3FE5200C73 for ; Wed, 26 Apr 2017 06:51:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B2947160BB8; Wed, 26 Apr 2017 04:51:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0637A160BB3 for ; Wed, 26 Apr 2017 06:51:06 +0200 (CEST) Received: (qmail 29847 invoked by uid 500); 26 Apr 2017 04:51:06 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 29838 invoked by uid 99); 26 Apr 2017 04:51:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 04:51:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A04E1C86F4 for ; Wed, 26 Apr 2017 04:51:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id i8tVcGtwZqXo for ; Wed, 26 Apr 2017 04:51:05 +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 C214B5F5F8 for ; Wed, 26 Apr 2017 04:51:04 +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 5950FE017A for ; Wed, 26 Apr 2017 04:51:04 +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 15F5521D92 for ; Wed, 26 Apr 2017 04:51:04 +0000 (UTC) Date: Wed, 26 Apr 2017 04:51:04 +0000 (UTC) From: "Hyukjin Kwon (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SPARK-20465) Throws a proper exception rather than ArrayIndexOutOfBoundsException when temp directories could not be got/created MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Apr 2017 04:51:07 -0000 Hyukjin Kwon created SPARK-20465: ------------------------------------ Summary: Throws a proper exception rather than ArrayIndexOutOfBoundsException when temp directories could not be got/created Key: SPARK-20465 URL: https://issues.apache.org/jira/browse/SPARK-20465 Project: Spark Issue Type: Improvement Components: Spark Submit Affects Versions: 2.2.0 Reporter: Hyukjin Kwon Priority: Trivial If none of temp directories could not be created, it throws an {{ArrayIndexOutOfBoundsException}} as below: {code} ./bin/spark-shell --conf spark.local.dir=/NONEXISTENT_DIR_ONE,/NONEXISTENT_DIR_TWO 17/04/26 13:11:06 ERROR Utils: Failed to create dir in /NONEXISTENT_DIR_ONE. Ignoring this directory. 17/04/26 13:11:06 ERROR Utils: Failed to create dir in /NONEXISTENT_DIR_TWO. Ignoring this directory. Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.spark.repl.Main.main(Main.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:756) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:179) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:204) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:118) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.spark.util.Utils$.getLocalDir(Utils.scala:743) at org.apache.spark.repl.Main$$anonfun$1.apply(Main.scala:37) at org.apache.spark.repl.Main$$anonfun$1.apply(Main.scala:37) at scala.Option.getOrElse(Option.scala:121) at org.apache.spark.repl.Main$.(Main.scala:37) at org.apache.spark.repl.Main$.(Main.scala) ... 10 more {code} It seems we should throw a proper exception with better message. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org