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 C550F200AF5 for ; Thu, 2 Jun 2016 21:09:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C41DD160A56; Thu, 2 Jun 2016 19:09:00 +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 44ABE160A3E for ; Thu, 2 Jun 2016 21:09:00 +0200 (CEST) Received: (qmail 93662 invoked by uid 500); 2 Jun 2016 19:08:59 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 93644 invoked by uid 500); 2 Jun 2016 19:08:59 -0000 Delivered-To: apmail-incubator-giraph-dev@incubator.apache.org Received: (qmail 93640 invoked by uid 99); 2 Jun 2016 19:08:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 19:08:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 40E482C044E for ; Thu, 2 Jun 2016 19:08:59 +0000 (UTC) Date: Thu, 2 Jun 2016 19:08:59 +0000 (UTC) From: "Sergey Edunov (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (GIRAPH-1068) Make Zookeeper accept 0 as a port number and let it choose free available port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Jun 2016 19:09:01 -0000 Sergey Edunov created GIRAPH-1068: ------------------------------------- Summary: Make Zookeeper accept 0 as a port number and let it choose free available port Key: GIRAPH-1068 URL: https://issues.apache.org/jira/browse/GIRAPH-1068 Project: Giraph Issue Type: Task Reporter: Sergey Edunov Assignee: Sergey Edunov We have a few use cases where having zookeeper bound to specific port is very inconvenient. 1) Unit tests that run in parallel. 2) Shared clusters where multiple giraph instances can run on the same machines. In theory we don't need to know what port zookeeper will run on. In most cases we're fine with any port available. Picking any available port is currently supported by the server socket, but is not supported in the code that parses zookeper configs (this code lives in zookeper). We don't have to parse configs though, as we have a way to run zookeper in process. And in that case we can have a full control on how zookeeper is initialized. For this task I want to allow 0 as a port number for zookeeper. Which will allow us to run zookeeper on any available port. And I will also remove "out of process" zookeeper, as it clearly provides no benefits to us. Note: it will still be possible to run external zookeper, if you have it running somewhere as a service. -- This message was sent by Atlassian JIRA (v6.3.4#6332)