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 7AFD3C9C2 for ; Wed, 3 Jul 2013 05:00:24 +0000 (UTC) Received: (qmail 57043 invoked by uid 500); 3 Jul 2013 05:00:24 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 56897 invoked by uid 500); 3 Jul 2013 05:00:23 -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 56867 invoked by uid 99); 3 Jul 2013 05:00:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 05:00:22 +0000 Date: Wed, 3 Jul 2013 05:00:22 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7840) Enhance the java it framework to start & stop a distributed hbase & hadoop cluster 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-7840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13698603#comment-13698603 ] stack commented on HBASE-7840: ------------------------------ What is this comment in ClusterManager.java? {code} + // Not in ClusterManager because it uses 'exec' {code} Bit odd this is all hardcoded into the script: {code} + cmd += "export HBASE_REGIONSERVER_OPTS='" + + jmx + + "-server -XX:ParallelGCThreads=4 -XX:+UseParNewGC -Xmn512m " + + "-XX:CMSInitiatingOccupancyFraction=80 -verbose:gc -XX:+PrintGCDetails " + + "-XX:PrintFLSStatistics=1 -XX:+PrintPromotionFailure " + + "-XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:" + + getHBaseHome() + "/logs/gc-" + service + ".log " + + "-Xms" + heapSize + "m -Xmx" + heapSize + "m -XX:ErrorFile=" + + getHBaseHome() + "/logs/gc-" + service + "-err.log" + + "'; "; {code} Woah!!! Rad: {code} + toExec += "sudo /sbin/iptables -A INPUT -i lo -j ACCEPT;"; + toExec += "sudo /sbin/iptables -A OUTPUT -o lo -j ACCEPT;"; + toExec += "sudo /sbin/iptables -A INPUT -p tcp -s 0/0 -d " + hostname + + " --sport 513:65535 --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT;"; + toExec += "sudo /sbin/iptables -A OUTPUT -p tcp -s " + hostname + + " -d 0/0 --sport 22 --dport 513:65535 -m state --state ESTABLISHED -j ACCEPT;"; + toExec += "sudo /sbin/iptables -P INPUT DROP;"; + toExec += "sudo /sbin/iptables -P OUTPUT DROP;"; + toExec += "sudo /sbin/iptables -P FORWARD DROP;"; {code} I skimmed the patch. These are some really great tests. Do they work? +1 on commit if they do (even if above freaks me out -- smile) > Enhance the java it framework to start & stop a distributed hbase & hadoop cluster > ----------------------------------------------------------------------------------- > > Key: HBASE-7840 > URL: https://issues.apache.org/jira/browse/HBASE-7840 > Project: HBase > Issue Type: New Feature > Components: test > Affects Versions: 0.95.2 > Reporter: Nicolas Liochon > Assignee: Nicolas Liochon > Priority: Minor > Fix For: 0.95.2 > > Attachments: 7840.v1.patch, 7840.v3.patch, 7840.v4.patch > > > Needs are to use a development version of HBase & HDFS 1 & 2. > Ideally, should be nicely backportable to 0.94 to allow comparisons and regression tests between versions. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira