Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DBE8992D for ; Mon, 8 Dec 2014 20:58:14 +0000 (UTC) Received: (qmail 99083 invoked by uid 500); 8 Dec 2014 20:58:12 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 98990 invoked by uid 500); 8 Dec 2014 20:58:12 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 98977 invoked by uid 500); 8 Dec 2014 20:58:12 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 98974 invoked by uid 99); 8 Dec 2014 20:58:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 20:58:12 +0000 Date: Mon, 8 Dec 2014 20:58:12 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9040) Spark Memory can be formatted string 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/HIVE-9040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jimmy Xiang updated HIVE-9040: ------------------------------ Attachment: HIVE-9040.2-spark.patch How about 512m? Attached v2. > Spark Memory can be formatted string > ------------------------------------ > > Key: HIVE-9040 > URL: https://issues.apache.org/jira/browse/HIVE-9040 > Project: Hive > Issue Type: Sub-task > Components: Spark > Reporter: Brock Noland > Assignee: Jimmy Xiang > Fix For: spark-branch > > Attachments: HIVE-9040.1-spark.patch, HIVE-9040.2-spark.patch > > > Here: https://github.com/apache/hive/blob/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/session/SparkSessionImpl.java#L72 > we call {{getInt}} on {{spark.executor.memory}} but this is a formatted string, example here: http://spark.apache.org/docs/1.0.1/configuration.html as such, I get: > {noformat} > 2014-12-08 03:04:48,114 WARN [HiveServer2-Handler-Pool: Thread-34]: spark.SetSparkReducerParallelism (SetSparkReducerParallelism.java:process(141)) - Failed to create spark client. > java.lang.NumberFormatException: For input string: "23000m" > at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.lang.Integer.parseInt(Integer.java:492) > at java.lang.Integer.parseInt(Integer.java:527) > at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:229) > at scala.collection.immutable.StringOps.toInt(StringOps.scala:31) > at org.apache.spark.SparkConf$$anonfun$getInt$2.apply(SparkConf.scala:184) > at org.apache.spark.SparkConf$$anonfun$getInt$2.apply(SparkConf.scala:184) > at scala.Option.map(Option.scala:145) > at org.apache.spark.SparkConf.getInt(SparkConf.scala:184) > at org.apache.hadoop.hive.ql.exec.spark.session.SparkSessionImpl.getMemoryAndCores(SparkSessionImpl.java:72) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)