Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE63D98BC for ; Mon, 14 Nov 2011 21:58:12 +0000 (UTC) Received: (qmail 85586 invoked by uid 500); 14 Nov 2011 21:58:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 85564 invoked by uid 500); 14 Nov 2011 21:58:12 -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 85556 invoked by uid 99); 14 Nov 2011 21:58:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 21:58:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Mon, 14 Nov 2011 21:58:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A2F6183E34 for ; Mon, 14 Nov 2011 21:57:51 +0000 (UTC) Date: Mon, 14 Nov 2011 21:57:51 +0000 (UTC) From: "Nicolas Spiegelberg (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <533947853.28302.1321307871669.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1061300220.39391.1320031832901.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4704) A JRuby script for identifying active master 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-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149974#comment-13149974 ] Nicolas Spiegelberg commented on HBASE-4704: -------------------------------------------- instead of creating a new file, we'd have less files by adding a 'jruby' shortcut to bin/hbase and invoke 'bin/hbase jruby' > A JRuby script for identifying active master > -------------------------------------------- > > Key: HBASE-4704 > URL: https://issues.apache.org/jira/browse/HBASE-4704 > Project: HBase > Issue Type: Improvement > Reporter: Mikhail Bautin > Assignee: Mikhail Bautin > Priority: Trivial > Fix For: 0.94.0 > > Attachments: D117.1.patch, HBASE-4704.D117.2.patch, HBASE-4704.D117.3.patch > > > This simple script reads the HBase master ZK node and outputs the hostname of the active master. This is needed so that operational scripts can decide where the primary master is running. I am also including a one-line hbase-jruby script so we can make our jruby scripts proper UNIX executables by including an "#!/usr/bin/env hbase-jruby" at the top. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira