Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 4680 invoked from network); 1 Apr 2011 17:01:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2011 17:01:44 -0000 Received: (qmail 16091 invoked by uid 500); 1 Apr 2011 17:01:44 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 15980 invoked by uid 500); 1 Apr 2011 17:01:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 15965 invoked by uid 99); 1 Apr 2011 17:01:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 17:01:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 17:01:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E4ADA8E446 for ; Fri, 1 Apr 2011 17:01:05 +0000 (UTC) Date: Fri, 1 Apr 2011 17:01:05 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <594612036.28969.1301677265933.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1074156835.1655.1300733226092.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3677) Generate a globally unique identifier for a cluster and store in /hbase/hbase.id 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/HBASE-3677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014744#comment-13014744 ] stack commented on HBASE-3677: ------------------------------ Posted review over on rb G. > Generate a globally unique identifier for a cluster and store in /hbase/hbase.id > -------------------------------------------------------------------------------- > > Key: HBASE-3677 > URL: https://issues.apache.org/jira/browse/HBASE-3677 > Project: HBase > Issue Type: Improvement > Components: master > Reporter: Gary Helmling > Assignee: Gary Helmling > Fix For: 0.92.0 > > > We don't currently have a way to uniquely identify an HBase cluster, apart for where it's stored in HDFS or configuration of the ZooKeeper quorum managing it. It would be generally useful to be able to identify a cluster via API. > The proposal here is pretty simple: > # When master initializes the filesystem, generate a globally unique ID and store in /hbase/hbase.id > # For existing clusters, generate hbase.id on master startup if it does not exist > # Include unique ID in ClusterStatus returned from master > For token authentication, this will be required to allow selecting the correct token to pass to a cluster when a single client is communicating to more than one HBase instance. > Chatting with J-D, replication stores it's own cluster id in place with each HLog edit, so requires as small as possible an identifier, but I think we could automate a mapping from unique cluster ID -> short ID if we had the unique ID available. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira