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 1DBF4200B32 for ; Thu, 23 Jun 2016 14:22:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1A956160A59; Thu, 23 Jun 2016 12:22:10 +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 5D0B0160A58 for ; Thu, 23 Jun 2016 14:22:09 +0200 (CEST) Received: (qmail 99966 invoked by uid 500); 23 Jun 2016 12:22:03 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 99182 invoked by uid 99); 23 Jun 2016 12:22:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 12:22:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E400C1857E4; Thu, 23 Jun 2016 12:22:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id eSDkCqQf1sXF; Thu, 23 Jun 2016 12:22:02 +0000 (UTC) Received: from mail-yw0-f176.google.com (mail-yw0-f176.google.com [209.85.161.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id BB8CD5F64B; Thu, 23 Jun 2016 12:22:01 +0000 (UTC) Received: by mail-yw0-f176.google.com with SMTP id v77so69642189ywg.0; Thu, 23 Jun 2016 05:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+M9b8alirEfXEhMX9lgvxl0FlJaeV63Ik6HaV0H5Sew=; b=SlDZj1MnDDzhZoOV94gQQXsgqolDb1R9y0udwB9EsmV0RCwd+sfcRsmeMQcK2n51lN sg+85xgs0+tQ/ifAD8bMcrAN2xzBUrZZOTvDhetPFt2TGQFR0vT2mtRJCd2tGof1HPDD FPkTWg2Os7z2/uPHdhfi1WRIX+i5orFRORd09n8CfpzQL/sPOD3z5UEWCDuX1ZOuCo7C 4XKSgQ9a8RYDyWWlfz9FSW0CdhQdYsJl8p0YHkassy0s5RsAwdSyQPBvKSrUlPAVU14d A20A2N1tZqWuZRiqcprXeulKBsHEwGOSgRJhQFnikJ0OyfNfxQRcUYjNAJPoJfW9/Lps 87rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+M9b8alirEfXEhMX9lgvxl0FlJaeV63Ik6HaV0H5Sew=; b=kYIym/eFymciYyA5tFtQMqW2LTvivO29OiXAoILvoMYqFw01XQ0auAm6sqXvYJaNLD PQ3f112sf6zlYt5u4ohkoHa8Mt3O0wGDWhR7UuWrExDHscwmti6ux8ctO2OReVhply36 L2kHVkjPOd/HtYePiGWE5sh1xoqV2DTjMI8f5DYGsVsYbYsCuunVY/u92/bKzAsm10vp k5pwzQFx8FBI9C46PCngmTJv0IRK3ZtdUMyCNzJaO5sODm9Z17XvxI/1U9nTjnSERMvu vTPZCMYrZfdV7lk+E0wlTVLB3L5qeyO0JXglV8PmQgeFh9rusadtGhFpzEFNveCVsm6s bfOQ== X-Gm-Message-State: ALyK8tJEJ2X9J6uSrh+ttQN/syugrT4UVx26DvP4q8KTx9BabqgwGa5t/67KpAb/h+I+le5PyeYU9Nkcimyraw== X-Received: by 10.13.239.68 with SMTP id y65mr18957773ywe.123.1466684515216; Thu, 23 Jun 2016 05:21:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.97.137 with HTTP; Thu, 23 Jun 2016 05:21:52 -0700 (PDT) From: Prabhu Joseph Date: Thu, 23 Jun 2016 17:51:52 +0530 Message-ID: Subject: Spark Thrift Server Concurrency To: Spark dev list , user Content-Type: multipart/alternative; boundary=001a114f865086f2f60535f11966 archived-at: Thu, 23 Jun 2016 12:22:10 -0000 --001a114f865086f2f60535f11966 Content-Type: text/plain; charset=UTF-8 Hi All, On submitting 20 parallel same SQL query to Spark Thrift Server, the query execution time for some queries are less than a second and some are more than 2seconds. The Spark Thrift Server logs shows all 20 queries are submitted at same time 16/06/23 12:12:01 but the result schema are at different times. 16/06/23 12:12:01 INFO SparkExecuteStatementOperation: Running query 'select distinct val2 from philips1 where key>=1000 and key<=1500 16/06/23 12:12:*02* INFO SparkExecuteStatementOperation: Result Schema: ArrayBuffer(val2#2110) 16/06/23 12:12:*03* INFO SparkExecuteStatementOperation: Result Schema: ArrayBuffer(val2#2182) 16/06/23 12:12:*04* INFO SparkExecuteStatementOperation: Result Schema: ArrayBuffer(val2#2344) 16/06/23 12:12:*05* INFO SparkExecuteStatementOperation: Result Schema: ArrayBuffer(val2#2362) There are sufficient executors running on YARN. The concurrency is affected by Single Driver. How to improve the concurrency and what are the best practices. Thanks, Prabhu Joseph --001a114f865086f2f60535f11966 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

=C2=A0=C2=A0 On s= ubmitting 20 parallel same SQL query to Spark Thrift Server, the query exec= ution time for some queries are less than a second and some are more than 2= seconds. The Spark Thrift Server logs shows all 20 queries are submitted at= same time 16/06/23 12:12:01 but the result schema are at different times.<= br>
16/06/23 12:12:01 INFO SparkExecuteStatementOperation: Running query= 'select distinct val2 from philips1 where key>=3D1000 and key<= =3D1500

16/06/23 12:12:02 INFO SparkExecuteStatementOperation= : Result Schema: ArrayBuffer(val2#2110)
16/06/23 12:12:03 INFO Sp= arkExecuteStatementOperation: Result Schema: ArrayBuffer(val2#2182)
16/0= 6/23 12:12:04 INFO SparkExecuteStatementOperation: Result Schema: Ar= rayBuffer(val2#2344)
16/06/23 12:12:05 INFO SparkExecuteStatement= Operation: Result Schema: ArrayBuffer(val2#2362)

There are suf= ficient executors running on YARN. The concurrency is affected by Single Dr= iver. How to improve the concurrency and what are the best practices.
Thanks,
Prabhu Joseph
--001a114f865086f2f60535f11966--