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 AFDAC200BFB for ; Wed, 11 Jan 2017 16:58:42 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AEE91160B4E; Wed, 11 Jan 2017 15:58:42 +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 2BAFE160B2E for ; Wed, 11 Jan 2017 16:58:42 +0100 (CET) Received: (qmail 16120 invoked by uid 500); 11 Jan 2017 15:58:41 -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 16106 invoked by uid 99); 11 Jan 2017 15:58:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 15:58:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C01FFDFA22; Wed, 11 Jan 2017 15:58:40 +0000 (UTC) From: zeroflag To: dev@hive.apache.org Reply-To: dev@hive.apache.org Message-ID: Subject: [GitHub] hive pull request #131: LLAP failed to start on a host with only 1 cpu Content-Type: text/plain Date: Wed, 11 Jan 2017 15:58:40 +0000 (UTC) archived-at: Wed, 11 Jan 2017 15:58:42 -0000 GitHub user zeroflag opened a pull request: https://github.com/apache/hive/pull/131 LLAP failed to start on a host with only 1 cpu LLAP failed to start on a host with only 1 cpu. The number of thread was calculating by dividing the number of cpus with 2. This resulted zero if the cpu count was 1 and caused an IllegalArgumentException upon startup. Fixed this by adding Math.max(1, cpus/2). You can merge this pull request into a Git repository by running: $ git pull https://github.com/zeroflag/hive master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/131.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #131 ---- commit b00463f5228b459c1bd6d0e6022142cd2fa84952 Author: Attila Magyar Date: 2017-01-11T15:46:54Z Thread pool is initialized with 0 nThreads that causes IllegalArgumenException while starting LLAP on a host with 1 cpu ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---