Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70249D85D for ; Thu, 3 Jan 2013 20:34:24 +0000 (UTC) Received: (qmail 53356 invoked by uid 500); 3 Jan 2013 20:34:24 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 53333 invoked by uid 500); 3 Jan 2013 20:34:24 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 53325 invoked by uid 99); 3 Jan 2013 20:34:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 20:34:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 20:34:23 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EC3AB23889DE; Thu, 3 Jan 2013 20:34:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1428577 - /accumulo/trunk/bin/bootstrap_hdfs.sh Date: Thu, 03 Jan 2013 20:34:03 -0000 To: commits@accumulo.apache.org From: kturner@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130103203403.EC3AB23889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kturner Date: Thu Jan 3 20:34:03 2013 New Revision: 1428577 URL: http://svn.apache.org/viewvc?rev=1428577&view=rev Log: ACCUMULO-865 adjusted replication in bootstrap script Modified: accumulo/trunk/bin/bootstrap_hdfs.sh Modified: accumulo/trunk/bin/bootstrap_hdfs.sh URL: http://svn.apache.org/viewvc/accumulo/trunk/bin/bootstrap_hdfs.sh?rev=1428577&r1=1428576&r2=1428577&view=diff ============================================================================== --- accumulo/trunk/bin/bootstrap_hdfs.sh (original) +++ accumulo/trunk/bin/bootstrap_hdfs.sh Thu Jan 3 20:34:03 2013 @@ -50,13 +50,21 @@ fi # Replicate to all slaves to avoid network contention on startup # NUM_SLAVES=`wc -l $ACCUMULO_HOME/conf/slaves | grep -P '^\d+(?= )' -o` -$HADOOP_HOME/bin/hadoop fs -setrep -R $NUM_SLAVES $SYSTEM_CONTEXT_HDFS_DIR > /dev/null + +#let each datanode service around 50 clients +let "REP=$NUM_SLAVES/50" + +if [ $REP -lt 3 ]; then + REP=3 +fi # # Copy all jars in lib to the system context directory # hadoop fs -moveFromLocal $ACCUMULO_HOME/lib/*.jar $SYSTEM_CONTEXT_HDFS_DIR > /dev/null +$HADOOP_HOME/bin/hadoop fs -setrep -R $REP $SYSTEM_CONTEXT_HDFS_DIR > /dev/null + # # We need two of the jars in lib, copy them back out and remove them from the system context dir #