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 0A03D2009F3 for ; Sat, 21 May 2016 01:57:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 08759160A2A; Fri, 20 May 2016 23:57:24 +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 2A2D7160A25 for ; Sat, 21 May 2016 01:57:23 +0200 (CEST) Received: (qmail 78635 invoked by uid 500); 20 May 2016 23:57:22 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 78622 invoked by uid 99); 20 May 2016 23:57:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 23:57:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 93955C0A65 for ; Fri, 20 May 2016 23:57:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id eNNxzD2XZ4P7 for ; Fri, 20 May 2016 23:57:19 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4041D5F295 for ; Fri, 20 May 2016 23:57:18 +0000 (UTC) Received: by mail-io0-f179.google.com with SMTP id t40so69616437ioi.0 for ; Fri, 20 May 2016 16:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u3NFP8W0D9w5QyXF8O25fcXInyWGLwlBUKtG79hPDxI=; b=w88bFJKD8HcZyDHcO2Xd578g6Ygava/SPICazAAJdZL2du5SkVqjgaTnM8brD/r6yU qLDb1u594m0Te+TQ3tc7E7fUXkxa3iC86uRC0q4rNtDBdar9sXiNhluBkwIo+YLajjbr VQ4mkU9D/RBOd8DFasHgSRbDZWjHcJ7stl+L0eCGrIKtkmFCdG8x8pBwovccT5tLPdL7 EL3AV/ks1+1fDnd7tNyk3DVBPiDJwVvvO1of/eHK8lz1QQkmYemyIre7hjLkNiRhZxjr MyGFhIrcCDhr5q+DeHlHl9dRm8Bel0Is1UdIChpzYUHsPTCr44dDLFBmBIcY24+yRGro yhpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u3NFP8W0D9w5QyXF8O25fcXInyWGLwlBUKtG79hPDxI=; b=m4uhST6JdX2TCfkhDf5st6xNv7TQm6yH/702J+TIabS49+7bv3Ee5lg8aWFsXJtFcm KX/wfDIxaade/smnmOBraHgsUPbdJcXS5xYZz0hOLQHD2C6RWiAsFV2psPZnqh3KkbbP 6y1bNiYogDYNzwrsXmWUWuQNvQi9Wyj4NTdd0ReAALVlYsPzYmv+RSNzma4DDFVXiFvL r7hcrQy9lLLBq8DTncn3dLtCFCueaZQ6OLOyZE6qDvzrtMe6zBKBJIHT3WvXdm6Qj0qr v5KKW0zYeDujGhmtoHfkRWbsvo7/OLyzFcpSFdXrSMZhD2nS5lJQy3ugujTk70/shwu3 RjPQ== X-Gm-Message-State: AOPr4FUtaALjqZ4CjMEIVCD+eYY90PUbmhrx+N0ALnZXwWa1ZJlw0/bAzoVKbKlEp185VNgCLhAm+1XmLhD8rA== X-Received: by 10.107.165.12 with SMTP id o12mr5721925ioe.56.1463788637219; Fri, 20 May 2016 16:57:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.40.5 with HTTP; Fri, 20 May 2016 16:56:57 -0700 (PDT) In-Reply-To: References: From: Hanifi GUNES Date: Fri, 20 May 2016 16:56:57 -0700 Message-ID: Subject: Re: Connection and Memory management with Apache Drill To: dev Cc: nitin.a.sareen@accenture.com, maneesh.kothari@accenture.com, h.p.kumar@accenture.com Content-Type: multipart/alternative; boundary=001a1141f340bf725905334ed928 archived-at: Fri, 20 May 2016 23:57:24 -0000 --001a1141f340bf725905334ed928 Content-Type: text/plain; charset=UTF-8 There is no magic formula for (1). The answer entirely depends on what sort of data you are working with, what sort of queries you are running and what sort of SLAs you are willing to accept. Regardless, you can configure memory requirements of Drill as to your wish modifying bootstrap configuration. However, it is important to understand that Drill treats all compute resources the same - at least for the time being, which means a homogenous cluster setup is preferable. (2) is relatively easy. A user connection is kept alive until query completes. There are few exceptions to this but generally speaking a connection is closed upon query reaches to a terminal state. (3) this sounds more of a 3rd party question than Drill one. Drill offers a JDBC interface that you might be interested in exploring. Perhaps you can let community know whether we are spring-jdbc compatible or not. -Hanifi 2016-05-20 4:20 GMT-07:00 Khurram Faraaz : > Hello Jasbir, > > Can you please elaborate on (1) > *>> 1. Memory and CPU requirements of Apache Drill.* > > I assume you already have Drill installed, since you mention that you are > using Drill. > Did you want to know the different memory options that Drill provides ? > Here is a list from sys.options table. > > 0: jdbc:drill:schema=dfs.tmp> select * from sys.options where name like > '%mem%'; > > +-----------------------------------------------+----------+---------+----------+-------------+-------------+-----------+------------+ > | name | kind | type | > status | num_val | string_val | bool_val | float_val | > > +-----------------------------------------------+----------+---------+----------+-------------+-------------+-----------+------------+ > | planner.memory.average_field_width | LONG | SYSTEM | > DEFAULT | 8 | null | null | null | > | planner.memory.enable_memory_estimation | BOOLEAN | SYSTEM | > DEFAULT | null | null | false | null | > | planner.memory.hash_agg_table_factor | DOUBLE | SYSTEM | > DEFAULT | null | null | null | 1.1 | > | planner.memory.hash_join_table_factor | DOUBLE | SYSTEM | > DEFAULT | null | null | null | 1.1 | > | planner.memory.max_query_memory_per_node | LONG | SYSTEM | > DEFAULT | 2147483648 | null | null | null | > | planner.memory.non_blocking_operators_memory | LONG | SYSTEM | > DEFAULT | 64 | null | null | null | > | planner.memory_limit | LONG | SYSTEM | > DEFAULT | 268435456 | null | null | null | > > +-----------------------------------------------+----------+---------+----------+-------------+-------------+-----------+------------+ > 7 rows selected (0.367 seconds) > > You can set/unset change these config parameters using ALTER SYSTEM SET or > the ALTER SESSION SET commands if you want to make those changes at the > SYSTEM/SESSION levels appropriately. > > Thanks, > Khurram > > On Fri, May 20, 2016 at 2:58 PM, wrote: > > > Can you please let me know the details. It's impacting our task. > > > > Regards, > > Jasbir Singh > > > > From: Sing, Jasbir > > Sent: Monday, May 16, 2016 6:19 PM > > To: dev@drill.apache.org > > Cc: Sareen, Nitin A. ; Kothari, Maneesh < > > maneesh.kothari@accenture.com>; Kumar, H. P. > > Subject: Connection and Memory management with Apache Drill > > > > Hi, > > > > We are using Apache Drill to read parquet files. We are facing few issues > > and need your guidance - > > > > Problems - > > > > 1. Memory and CPU requirements of Apache Drill. > > > > 2. How Drill manages connections with queries fired and when it > gets > > closed? > > > > 3. Does Apache Drill provides compatibility with spring-jdbc ? If > > Yes, how to use it and if Not, how to make connection pool of 50 > > connections. > > > > Help in this regards with be appreciated. > > > > Regards, > > Jasbir Singh > > > > > > > > ________________________________ > > > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise confidential information. If you > have > > received it in error, please notify the sender immediately and delete the > > original. Any other use of the e-mail by you is prohibited. Where allowed > > by local law, electronic communications with Accenture and its > affiliates, > > including e-mail and instant messaging (including content), may be > scanned > > by our systems for the purposes of information security and assessment of > > internal compliance with Accenture policy. > > > > > ______________________________________________________________________________________ > > > > www.accenture.com > > > --001a1141f340bf725905334ed928--