accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [49/61] [abbrv] [partial] accumulo git commit: ACCUMULO-722 put trunk in my sandbox
Date Thu, 03 Mar 2016 22:00:14 GMT
http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/assemble/pom.xml
----------------------------------------------------------------------
diff --git a/1.5/assemble/pom.xml b/1.5/assemble/pom.xml
new file mode 100644
index 0000000..ea0286e
--- /dev/null
+++ b/1.5/assemble/pom.xml
@@ -0,0 +1,437 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	You under the Apache License, Version 2.0 (the "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<parent>
+		<groupId>org.apache.accumulo</groupId>
+		<artifactId>accumulo</artifactId>
+		<version>1.5.0-SNAPSHOT</version>
+	</parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>accumulo-assemble</artifactId>
+  <name>accumulo-assemble</name>
+
+  <packaging>pom</packaging>
+
+  <!-- NOTE: These dependency declarations are only required to sort this project to the end of the line in the multimodule build. Since we only include the child1 
+    module in our assembly, we only need to ensure this distribution project builds AFTER that one... -->
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.accumulo</groupId>
+      <artifactId>accumulo-core</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.accumulo</groupId>
+      <artifactId>accumulo-server</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.accumulo</groupId>
+      <artifactId>accumulo-start</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.accumulo</groupId>
+      <artifactId>examples-simple</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.accumulo</groupId>
+      <artifactId>cloudtrace</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>config webpage</id>
+            <phase>package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <configuration>
+              <executable>bash</executable>
+              <arguments>
+                <argument>docgen.sh</argument>
+              </arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+  <properties>
+    <so>**/*.so</so>
+    <jnilib>**/*.jnilib</jnilib>
+    <accumulo-top>..</accumulo-top>
+  </properties>
+
+  <profiles>
+    <profile>
+      <id>assemble</id>
+      <build>
+      <plugins>
+        <plugin>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <configuration>
+            <finalName>${project.parent.artifactId}-${project.version}</finalName>
+            <descriptors>
+              <descriptor>dist.xml</descriptor>
+            </descriptors>
+            <tarLongFileMode>gnu</tarLongFileMode>
+          </configuration>
+          <executions>
+            <execution>
+              <id>distro-assembly</id>
+              <phase>package</phase>
+              <goals>
+                <goal>single</goal>
+              </goals>
+            </execution>
+          </executions>
+      </plugin>
+      </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>dist</id>
+      <properties>
+        <so></so>
+        <jnilib></jnilib>
+      </properties>
+    </profile>
+    <profile>
+      <id>rpm</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>rpm-maven-plugin</artifactId>
+            <inherited>false</inherited>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>rpm</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <name>accumulo</name>
+              <projversion>${project.version}</projversion>
+              <summary>Apache Accumulo BigTable clone</summary>
+              <description>
+                Apache Accumulo is a large distributed structured store based on
+                Google's BigTable design.
+              </description>
+              <copyright>2011 The Apache Software Foundation.</copyright>
+              <url>http://accumulo.apache.org</url>
+              <needarch>true</needarch>
+              <group>Utilities</group>
+              <requires>
+                <require>jdk</require>
+                <require>hadoop</require>
+                <require>zookeeper</require>
+              </requires>
+              <prefix>/opt/accumulo</prefix>
+              <defaultDirmode>755</defaultDirmode>
+              <defaultFilemode>644</defaultFilemode>
+              <defaultUsername>root</defaultUsername>
+              <defaultGroupname>root</defaultGroupname>
+              <mappings>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}</directory>
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/README</location>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/docs</directory>
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/docs</location>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/test</directory>
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/test</location>
+                      <excludes>
+                        <exclude>${accumulo-top}/**/walkers.txt</exclude>
+                        <exclude>${accumulo-top}/**/ingesters.txt</exclude>
+                        <exclude>${accumulo-top}/**/continuous-env.sh</exclude>
+                        <exclude>${accumulo-top}/**/*.pyc</exclude>
+                      </excludes>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/bin</directory>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/bin</directory>
+                  <directoryIncluded>false</directoryIncluded>
+                  <filemode>755</filemode>
+                  <username>root</username>
+                  <groupname>root</groupname>
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/bin</location>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/conf</directory>
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/conf</location>
+                      <excludes>
+                        <exclude>${accumulo-top}/**/accumulo-site.xml</exclude>
+                        <exclude>${accumulo-top}/**/accumulo-env.sh</exclude>
+                        <exclude>${accumulo-top}/**/accumulo-metrics.xml</exclude>
+                        <exclude>${accumulo-top}/**/test-*</exclude>
+                        <exclude>${accumulo-top}/**/slaves</exclude>
+                        <exclude>${accumulo-top}/**/masters</exclude>
+                        <exclude>${accumulo-top}/**/tracers</exclude>
+                        <exclude>${accumulo-top}/**/gc</exclude>
+                        <exclude>${accumulo-top}/**/monitor</exclude>
+                      </excludes>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/opt/accumulo/accumulo-${project.version}/lib</directory>
+                  <dependency />
+                  <sources>
+                    <source>
+                      <location>${accumulo-top}/lib</location>
+                    </source>
+                  </sources>
+                </mapping>
+              </mappings>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>deb</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>jdeb</artifactId>
+            <groupId>org.vafer</groupId>
+            <version>0.10</version>
+            <inherited>false</inherited>
+            <executions>
+              <execution>
+                <id>accumulo</id>
+                <phase>install</phase>
+                <goals>
+                  <goal>jdeb</goal>
+                </goals>
+                <configuration>
+                  <deb>${project.build.directory}/${project.artifactId}_${project.version}.deb</deb>
+                  <attach>false</attach>
+                  <controlDir>packages/deb/accumulo</controlDir>
+                  <installDir>/usr/lib/accumulo</installDir>
+                  <dataSet>
+                    <data>
+                      <src>${accumulo-top}/lib</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/lib</prefix>
+                      </mapper>
+                      <excludes>**/.svn/**</excludes>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/NOTICE</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                      <prefix>/usr/lib/accumulo</prefix>
+                      </mapper>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/NOTICE</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                      <prefix>/usr/lib/accumulo</prefix>
+                      </mapper>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/CHANGES</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                      <prefix>/usr/lib/accumulo</prefix>
+                      </mapper>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/README</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                      <prefix>/usr/lib/accumulo</prefix>
+                      </mapper>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/docs</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/docs</prefix>
+                      </mapper>
+                      <excludes>**/.svn/**</excludes>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/bin</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/bin</prefix>
+                        <filemode>755</filemode>
+                      </mapper>
+                      <excludes>**/.svn/**</excludes>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/conf</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/conf</prefix>
+                      </mapper>
+                      <excludes>**/.svn/**,**/accumulo-site.xml,**/accumulo-env.sh,**/accumulo-metrics.xml,**/test-*,**/slaves,**/masters,**/tracers,**/gc,**/monitor</excludes>
+                    </data>
+                  </dataSet>
+                </configuration>
+              </execution>
+              <execution>
+                <id>accumulo-native</id>
+                <phase>install</phase>
+                <goals>
+                  <goal>jdeb</goal>
+                </goals>
+                <configuration>
+                  <attach>false</attach>
+                  <controlDir>packages/deb/accumulo-native</controlDir>
+                  <installDir>/usr/lib/accumulo</installDir>
+                  <deb>${project.build.directory}/${project.artifactId}-native_${project.version}-${os.arch}.deb</deb>
+                  <dataSet>
+                    <data>
+                      <src>${accumulo-top}/server/src/main/c++</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/server/src/main/c++</prefix>
+                      </mapper>
+                      <excludes>**/.svn/**</excludes>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/server/src/main/java/org/apache/accumulo/server/tabletserver/MLock.java</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/server/src/main/java/org/apache/accumulo/server/tabletserver/MLock.java</prefix>
+                      </mapper>
+                    </data>
+                    <data>
+                      <src>${accumulo-top}/server/src/main/java/org/apache/accumulo/server/tabletserver/NativeMap.java</src>
+                      <type>file</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/server/src/main/java/org/apache/accumulo/server/tabletserver/NativeMap.java</prefix>
+                      </mapper>
+                    </data>
+                  </dataSet>
+                </configuration>
+              </execution>
+              <execution>
+                <id>accumulo-test</id>
+                <phase>install</phase>
+                <goals>
+                  <goal>jdeb</goal>
+                </goals>
+                <configuration>
+                  <attach>false</attach>
+                  <controlDir>packages/deb/accumulo-test</controlDir>
+                  <installDir>/usr/lib/accumulo</installDir>
+                  <deb>${project.build.directory}/${project.artifactId}-test_${project.version}-${os.arch}.deb</deb>
+                  <dataSet>
+                    <data>
+                      <src>${accumulo-top}/test</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/lib/accumulo/test</prefix>
+                      </mapper>
+                      <excludes>**/.svn/**,**/*.pyc</excludes>
+                    </data>
+                  </dataSet>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>docs</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>exec-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>developer-manual</id>
+                <phase>prepare-package</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+                <configuration>
+                  <executable>bash</executable>
+                  <arguments>
+                    <argument>../docs/src/developer_manual/build.sh</argument>
+                  </arguments>
+                </configuration>
+              </execution>
+              <execution>
+                <id>user-manual</id>
+                <phase>prepare-package</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+                <configuration>
+                  <executable>bash</executable>
+                  <arguments>
+                    <argument>../docs/src/user_manual/build.sh</argument>
+                  </arguments>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/LogForwarder.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/LogForwarder.sh b/1.5/bin/LogForwarder.sh
new file mode 100755
index 0000000..656937c
--- /dev/null
+++ b/1.5/bin/LogForwarder.sh
@@ -0,0 +1,38 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# This script executes a program that will forward some or all of the logs to a running instance of Chainsaw v2.
+# To use this script, start Chainsaw on a host and create a new XMLSocketReceiver. This script
+# accepts the following command line parameters
+#
+#	host [required] - host running Chainsaw. Must be accessible via the network from this server
+#   port [required] - port that XMLSocketReceiver is listening on.
+#   filter [optional] - filter for log file names, * and ? are valid wildcards
+#   start [optional] - filter log messages beginning at this time (format is yyyyMMddHHmmss)
+#   end [optional] - filter log messages ending at this time (default is now, format is yyyyMMddHHmmss)
+#   level [optional] - filter log messages with this level and higher
+#   regex [optional] - filter log messages that match this regex (follows java.util.regex.Pattern syntax)
+#
+#
+# Example:
+#
+#	LogForwarder.sh -h 127.0.0.1 -p 4448 -f tserver* -s 2010010100001 -e 20100101235959 -l INFO -m .*scan.*
+#
+. accumulo-config.sh
+
+java -cp $ACCUMULO_HOME/lib org.apache.accumulo.server.util.SendLogToChainsaw -d $ACCUMULO_LOG_DIR "$@"

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/accumulo
----------------------------------------------------------------------
diff --git a/1.5/bin/accumulo b/1.5/bin/accumulo
new file mode 100755
index 0000000..e1d269c
--- /dev/null
+++ b/1.5/bin/accumulo
@@ -0,0 +1,110 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+START_JAR=$ACCUMULO_HOME/lib/accumulo-start-$ACCUMULO_VERSION.jar
+COMMONS_JCI_JARS=$ACCUMULO_HOME/lib/commons-jci-core-1.0.jar:$ACCUMULO_HOME/lib/commons-jci-fam-1.0.jar:$ACCUMULO_HOME/lib/log4j-1.2.16.jar:$ACCUMULO_HOME/lib/commons-logging-1.0.4.jar:$ACCUMULO_HOME/lib/commons-logging-api-1.0.4.jar
+START_CLASSES_DIR=$ACCUMULO_HOME/src/start/target/classes
+
+locationByProgram() 
+{
+   # find the program
+   RESULT=`which $1`
+   # strip the program name from the path
+   RESULT=`dirname ${RESULT}`
+   # strip /bin from the path
+   RESULT=`dirname ${RESULT}`
+   echo ${RESULT}
+}
+
+test -n "$JAVA_HOME"      || export JAVA_HOME=`locationByProgram java`
+test -n "$HADOOP_HOME"    || export HADOOP_HOME=`locationByProgram hadoop`
+test -n "$ZOOKEEPER_HOME" || export ZOOKEEPER_HOME=`locationByProgram zkCli.sh`
+
+
+DEFAULT_GENERAL_JAVA_OPTS=""
+BIG=6g
+MED=3g
+SMALL=512m
+if ! "$JAVA_HOME/bin/java" -Xms10g -Xmx10g >/dev/null 2>&1 ; then
+   BIG=3g
+   MED=1g
+   SMALL=256m
+fi
+
+test -n "$ACCUMULO_TSERVER_OPTS" || export ACCUMULO_TSERVER_OPTS="-Xmx$BIG -Xms$BIG "
+test -n "$ACCUMULO_MASTER_OPTS"  || export ACCUMULO_MASTER_OPTS="-Xmx$MED -Xms$MED "
+test -n "$ACCUMULO_GC_OPTS"      || export ACCUMULO_GC_OPTS="-Xmx$SMALL -Xms$SMALL "
+test -n "$ACCUMULO_MONITOR_OPTS" || export ACCUMULO_MONITOR_OPTS="-Xmx$MED -Xms$SMALL "
+test -n "$ACCUMULO_LOGGER_OPTS"  || export ACCUMULO_LOGGER_OPTS="-Xmx$MED -Xms$SMALL "
+test -n "$ACCUMULO_GENERAL_OPTS" || export ACCUMULO_GENERAL_OPTS="$DEFAULT_GENERAL_JAVA_OPTS"
+test -n "$ACCUMULO_OTHER_OPTS"   || export ACCUMULO_OTHER_OPTS="-Xmx$MED -Xms$SMALL "
+
+# ACCUMULO_XTRAJARS is where all of the commandline -add items go into for reading by accumulo.
+if [ "$1" = "-add" ] ; then
+	export ACCUMULO_XTRAJARS=$2
+	shift 2
+else
+	export ACCUMULO_XTRAJARS=""
+fi
+
+if [ "$1" = "master" ] ; then
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_MASTER_OPTS}"
+elif [ "$1" = "gc" ] ; then
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_GC_OPTS}"
+elif [ "$1" = "tserver" ] ; then
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_TSERVER_OPTS}"
+elif [ "$1" = "monitor" ] ; then
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_MONITOR_OPTS}"
+elif [ "$1" = "logger" ] ; then
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_LOGGER_OPTS}"
+else
+	export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} ${ACCUMULO_OTHER_OPTS}"
+fi
+
+XML_FILES=${ACCUMULO_HOME}/conf
+CLASSPATH=${XML_FILES}:${START_JAR}:${COMMONS_JCI_JARS}
+
+if [ -z $JAVA_HOME -o ! -d $JAVA_HOME ]; then
+    echo "JAVA_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+if [ -z $HADOOP_HOME -o ! -d $HADOOP_HOME ]; then
+    echo "HADOOP_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+if [ -z $ZOOKEEPER_HOME -o ! -d $ZOOKEEPER_HOME ]; then
+    echo "ZOOKEEPER_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+
+#Export the variables just in case they are not exported
+#This makes them available to java
+export JAVA_HOME=$JAVA_HOME
+export HADOOP_HOME=$HADOOP_HOME
+export ZOOKEEPER_HOME=$ZOOKEEPER_HOME
+
+JAVA=$JAVA_HOME/bin/java
+PLATFORM="`$JAVA -cp $CLASSPATH org.apache.accumulo.start.Platform`"
+
+# app isn't used anywhere, but it makes the process easier to spot when ps/top/snmp truncate the command line
+exec $JAVA "-Dapp=$1" -classpath $CLASSPATH $ACCUMULO_OPTS -XX:OnOutOfMemoryError="kill -9 %p" -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djava.library.path="$HADOOP_HOME/lib/native/$PLATFORM" -Dorg.apache.accumulo.core.home.dir="$ACCUMULO_HOME" -Dhadoop.home.dir="$HADOOP_HOME" -Dzookeeper.home.dir="$ZOOKEEPER_HOME" org.apache.accumulo.start.Main "$@"

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/check-slaves
----------------------------------------------------------------------
diff --git a/1.5/bin/check-slaves b/1.5/bin/check-slaves
new file mode 100755
index 0000000..2af7f42
--- /dev/null
+++ b/1.5/bin/check-slaves
@@ -0,0 +1,199 @@
+#! /usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This script will check the configuration and uniformity of all the nodes in a cluster.
+# Checks
+#   each node is reachable via ssh
+#   login identity is the same
+#   the physical memory is the same
+#   the mounts are the same on each machine
+#   a set of writable locations (typically different disks) are in fact writable
+# 
+# In order to check for writable partitions, you must configure the WRITABLE variable below.
+#
+
+import subprocess
+import time
+import select
+import os
+import sys
+import fcntl
+import signal
+if not sys.platform.startswith('linux'):
+   sys.stderr.write('This script only works on linux, sorry.\n')
+   sys.exit(1)
+
+TIMEOUT = 5
+WRITABLE = []
+#WRITABLE = ['/srv/hdfs1', '/srv/hdfs2', '/srv/hdfs3']
+
+def ssh(slave, *args):
+    'execute a command on a remote slave and return the Popen handle'
+    handle = subprocess.Popen( ('ssh', '-o', 'StrictHostKeyChecking=no', '-q', '-A', '-n', slave) + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    handle.slave = slave
+    handle.finished = False
+    handle.out = ''
+    return handle
+
+def wait(handles, seconds):
+    'wait for lots of handles simultaneously, and kill anything that doesn\'t return in seconds time\n'
+    'Note that stdout will be stored on the handle as the "out" field and "finished" will be set to True'
+    handles = handles[:]
+    stop = time.time() + seconds
+    for h in handles:
+       fcntl.fcntl(h.stdout, fcntl.F_SETFL, os.O_NONBLOCK)
+    while handles and time.time() < stop:
+       wait = min(0, stop - time.time())
+       handleMap = dict( [(h.stdout, h) for h in handles] )
+       rd, wr, err = select.select(handleMap.keys(), [], [], wait)
+       for r in rd:
+           handle = handleMap[r]
+           while 1:
+               more = handle.stdout.read(1024)
+               if more == '':
+                   handles.remove(handle)
+                   handle.poll()
+                   handle.wait()
+                   handle.finished = True
+               handle.out += more
+               if len(more) < 1024:
+                   break
+    for handle in handles:
+       os.kill(handle.pid, signal.SIGKILL)
+       handle.poll()
+
+def runAll(slaves, *cmd):
+    'Run the given command on all the slaves, returns Popen handles'
+    handles = []
+    for slave in slaves:
+        handles.append(ssh(slave, *cmd))
+    wait(handles, TIMEOUT)
+    return handles
+
+def checkIdentity(slaves):
+    'Ensure the login identity is consistent across the slaves'
+    handles = runAll(slaves, 'id', '-u', '-n')
+    bad = set()
+    myIdentity = os.popen('id -u -n').read().strip()
+    for h in handles:
+        if not h.finished or h.returncode != 0:
+            print '#', 'cannot look at identity on', h.slave
+            bad.add(h.slave)
+        else:
+            identity = h.out.strip()
+            if identity != myIdentity:
+                print '#', h.slave, 'inconsistent identity', identity
+                bad.add(h.slave)
+    return bad
+
+def checkMemory(slaves):
+    'Run free on all slaves and look for weird results'
+    handles = runAll(slaves, 'free')
+    bad = set()
+    mem = {}
+    swap = {}
+    for h in handles:
+        if not h.finished or h.returncode != 0:
+            print '#', 'cannot look at memory on', h.slave
+            bad.add(h.slave)
+        else:
+            if h.out.find('Swap:') < 0:
+               print '#',h.slave,'has no swap'
+               bad.add(h.slave)
+               continue
+            lines = h.out.split('\n')
+            for line in lines:
+               if line.startswith('Mem:'):
+                  mem.setdefault(line.split()[1],set()).add(h.slave)
+               if line.startswith('Swap:'):
+                  swap.setdefault(line.split()[1],set()).add(h.slave)
+    # order memory sizes by most common
+    mems = sorted([(len(v), k, v) for k, v in mem.items()], reverse=True)
+    mostCommon = float(mems[0][1])
+    for _, size, slaves in mems[1:]:
+        fract = abs(mostCommon - float(size)) / mostCommon
+        if fract > 0.05:
+            print '#',', '.join(slaves), ': unusual memory size', size
+            bad.update(slaves)
+    swaps = sorted([(len(v), k, v) for k, v in swap.items()], reverse=True)
+    mostCommon = float(mems[0][1])
+    for _, size, slaves in swaps[1:]:
+        fract = abs(mostCommon - float(size) / mostCommon)
+        if fract > 0.05:
+            print '#',', '.join(slaves), ': unusual swap size', size
+            bad.update(slaves)
+    return bad
+
+def checkWritable(slaves):
+    'Touch all the directories that should be writable by this user return any nodes that fail'
+    if not WRITABLE:
+       print '# WRITABLE value not configured, not checking partitions'
+       return []
+    handles = runAll(slaves, 'touch', *WRITABLE)
+    bad = set()
+    for h in handles:
+        if not h.finished or h.returncode != 0:
+           bad.add(h.slave)
+           print '#', h.slave, 'some drives are not writable'
+    return bad
+
+def checkMounts(slaves):
+    'Check the file systems that are mounted and report any that are unusual'
+    handles = runAll(slaves, 'mount')
+    mounts = {}
+    finished = set()
+    bad = set()
+    for handle in handles:
+        if handle.finished and handle.returncode == 0:
+            for line in handle.out.split('\n'):
+                words = line.split()
+                if len(words) < 5: continue
+                if words[4] == 'nfs': continue
+                if words[0].find(':/') >= 0: continue
+                mount = words[2]
+                mounts.setdefault(mount, set()).add(handle.slave)
+            finished.add(handle.slave)
+        else:
+            bad.add(handle.slave)
+            print '#', handle.slave, 'did not finish'
+    for m in sorted(mounts.keys()):
+        diff = finished - mounts[m]
+        if diff:
+            bad.update(diff)
+            print '#', m, 'not mounted on', ', '.join(diff)
+    return bad
+
+def main(argv):
+    if len(argv) < 1:
+        sys.stderr.write('Usage: check_slaves slaves\n')
+        sys.exit(1)
+    sys.stdin.close()
+    slaves = set()
+    for slave in open(argv[0]):
+        hashPos = slave.find('#')
+        if hashPos >= 0:
+           slave = slave[:hashPos]
+        slave = slave.strip()
+        if not slave: continue
+        slaves.add(slave)
+    bad = set()
+    for test in checkIdentity, checkMemory, checkMounts, checkWritable:
+        bad.update(test(slaves - bad))
+    for slave in sorted(slaves - bad):
+        print slave
+
+main(sys.argv[1:])

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/config.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/config.sh b/1.5/bin/config.sh
new file mode 100755
index 0000000..3dbbea4
--- /dev/null
+++ b/1.5/bin/config.sh
@@ -0,0 +1,111 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+this="$0"
+while [ -h "$this" ]; do
+    ls=`ls -ld "$this"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '.*/.*' > /dev/null; then
+        this="$link"
+    else
+        this=`dirname "$this"`/"$link"
+    fi
+done
+bin=`dirname "$this"`
+script=`basename "$this"`
+bin=`cd "$bin"; pwd`
+this="$bin/$script"
+
+ACCUMULO_HOME=`dirname "$this"`/..
+export ACCUMULO_HOME=`cd $ACCUMULO_HOME; pwd`
+
+if [ -f $ACCUMULO_HOME/conf/accumulo-env.sh ] ; then
+. $ACCUMULO_HOME/conf/accumulo-env.sh
+fi
+
+if [ -z ${ACCUMULO_LOG_DIR} ]; then
+        ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
+fi
+
+mkdir -p $ACCUMULO_LOG_DIR 2>/dev/null
+
+export ACCUMULO_LOG_DIR
+
+if [ -z ${ACCUMULO_VERSION} ]; then
+        ACCUMULO_VERSION=1.5.0-SNAPSHOT
+fi
+
+if [ -z "$HADOOP_HOME" ]
+then
+   HADOOP_HOME="`which hadoop`"
+   if [ -z "$HADOOP_HOME" ]
+   then
+      echo "You must set HADOOP_HOME"
+      exit 1
+   fi
+   HADOOP_HOME=`dirname $HADOOP_HOME`
+   HADOOP_HOME=`dirname $HADOOP_HOME`
+fi
+if [ ! -d "$HADOOP_HOME" ]
+then
+    echo "$HADOOP_HOME is not a directory"
+    exit 1
+fi
+export HADOOP_HOME
+
+if [ ! -f "$ACCUMULO_HOME/conf/masters" -o ! -f "$ACCUMULO_HOME/conf/slaves" ]
+then
+    if [ ! -f "$ACCUMULO_HOME/conf/masters" -a ! -f "$ACCUMULO_HOME/conf/slaves" ]
+    then
+        echo "STANDALONE: Missing both conf/masters and conf/slaves files"
+        echo "STANDALONE: Assuming single-node (localhost only) instance"
+        echo "STANDALONE: echo "`hostname`" > $ACCUMULO_HOME/conf/masters"
+        echo `hostname` > "$ACCUMULO_HOME/conf/masters"
+        echo "STANDALONE: echo "`hostname`" > $ACCUMULO_HOME/conf/slaves"
+        echo `hostname` > "$ACCUMULO_HOME/conf/slaves"
+        fgrep -s logger.dir.walog "$ACCUMULO_HOME/conf/accumulo-site.xml" > /dev/null
+        WALOG_CONFIGURED=$?
+        if [ $WALOG_CONFIGURED -ne 0 -a ! -e "$ACCUMULO_HOME/walogs" ]
+        then
+          echo "STANDALONE: Creating default local write-ahead log directory"
+          mkdir "$ACCUMULO_HOME/walogs"
+          echo "STANDALONE: mkdir \"$ACCUMULO_HOME/walogs\""
+        fi
+        if [ ! -e "$ACCUMULO_HOME/conf/accumulo-metrics.xml" ]
+        then
+          echo "STANDALONE: Creating default metrics configuration"
+          cp "$ACCUMULO_HOME/conf/accumulo-metrics.xml.example" "$ACCUMULO_HOME/conf/accumulo-metrics.xml"
+        fi
+    else
+        echo "You are missing either $ACCUMULO_HOME/conf/masters or $ACCUMULO_HOME/conf/slaves"
+        echo "Please configure them both for a multi-node instance, or delete them both for a single-node (localhost only) instance"
+        exit 1
+    fi
+fi
+MASTER1=`grep -v '^#' "$ACCUMULO_HOME/conf/masters" | head -1`
+GC=$MASTER1
+MONITOR=$MASTER1
+if [ -f "$ACCUMULO_HOME/conf/gc" ]; then
+    GC=`grep -v '^#' "$ACCUMULO_HOME/conf/gc" | head -1`
+fi
+if [ -f "$ACCUMULO_HOME/conf/monitor" ]; then
+    MONITOR=`grep -v '^#' "$ACCUMULO_HOME/conf/monitor" | head -1`
+fi
+if [ ! -f "$ACCUMULO_HOME/conf/tracers" ]; then
+    echo "$MASTER1" > "$ACCUMULO_HOME/conf/tracers"
+fi
+SSH='ssh -qnf -o ConnectTimeout=2'

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/etc_initd_accumulo
----------------------------------------------------------------------
diff --git a/1.5/bin/etc_initd_accumulo b/1.5/bin/etc_initd_accumulo
new file mode 100755
index 0000000..ac0dfe0
--- /dev/null
+++ b/1.5/bin/etc_initd_accumulo
@@ -0,0 +1,56 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# accumulo            This shell script takes care of stopping and starting 
+#                     accumulo on a single server
+# chkconfig: - 60 20
+# description: Apache Accumulo: an implementation of Google's BigTable
+# probe: false
+
+. /etc/rc.d/init.d/functions
+
+# let's assume this file is symlinked in from accumulo distro bin directory
+# otherwise reset the ACCUMULO_HOME setting
+pwd=`pwd -P`
+ACCUMULO_HOME=`cd $pwd/.. ; pwd -P`
+
+RETVAL=0
+case "$1" in
+   start)
+        $ACCUMULO_HOME/bin/start-here.sh
+        RETVAL=$?
+   ;;
+   stop)
+        $ACCUMULO_HOME/bin/stop-here.sh
+        RETVAL=$?
+   ;;
+   status)
+        COUNT=`pgrep -f "$ACCUMULO_HOME.*org.apache.accumulo.start" | wc -l`
+        echo "There are $COUNT accumulo processes on this machine"
+   ;;
+   restart)
+        $0 stop
+        $0 start
+   ;;
+   *)
+      echo "Usage: $0 {start|stop|status|restart}"
+      exit 1
+   ;;
+esac
+
+exit 0

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/generate_monitor_certificate.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/generate_monitor_certificate.sh b/1.5/bin/generate_monitor_certificate.sh
new file mode 100755
index 0000000..3d9a63f
--- /dev/null
+++ b/1.5/bin/generate_monitor_certificate.sh
@@ -0,0 +1,77 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+ALIAS="default"
+KEYPASS=`cat /dev/random | head -c33 | uuencode -m foo | head -2 | tail +2`
+STOREPASS=`cat /dev/random | head -c33 | uuencode -m foo | head -2 | tail +2`
+KEYSTOREPATH="$ACCUMULO_HOME/conf/keystore.jks"
+TRUSTSTOREPATH="$ACCUMULO_HOME/conf/cacerts.jks"
+CERTPATH="$ACCUMULO_HOME/conf/server.cer"
+
+if [ -e $KEYSTOREPATH ] ; then
+  rm -i $KEYSTOREPATH
+  if [ -e $KEYSTOREPATH ] ; then
+    echo "keystore already exists, exiting"
+    exit 1
+  fi
+fi
+
+if [ -e $TRUSTSTOREPATH ] ; then
+  rm -i $TRUSTSTOREPATH
+  if [ -e $TRUSTSTOREPATH ] ; then
+    echo "truststore already exists, exiting"
+    exit 2
+  fi
+fi
+
+if [ -e $CERTPATH ] ; then
+  rm -i $CERTPATH
+  if [ -e $CERTPATH ] ; then
+    echo "cert already exists, exiting"
+    exit 3
+  fi
+fi
+
+keytool -genkey -alias $ALIAS -keyalg RSA -keypass $KEYPASS -storepass $STOREPASS -keystore $KEYSTOREPATH
+keytool -export -alias $ALIAS -storepass $STOREPASS -file $CERTPATH -keystore $KEYSTOREPATH
+echo "yes" | keytool -import -v -trustcacerts -alias $ALIAS -file $CERTPATH -keystore $TRUSTSTOREPATH -keypass $KEYPASS -storepass $STOREPASS
+
+echo
+echo "keystore and truststore generated.  now add the following to accumulo-site.xml:"
+echo
+echo "    <property>"
+echo "      <name>monitor.ssl.keyStore</name>"
+echo "      <value>$KEYSTOREPATH</value>"
+echo "    </property>"
+echo "    <property>"
+echo "      <name>monitor.ssl.keyStorePassword</name>"
+echo "      <value>$KEYPASS</value>"
+echo "    </property>"
+echo "    <property>"
+echo "      <name>monitor.ssl.trustStore</name>"
+echo "      <value>$TRUSTSTOREPATH</value>"
+echo "    </property>"
+echo "    <property>"
+echo "      <name>monitor.ssl.trustStorePassword</name>"
+echo "      <value>$STOREPASS</value>"
+echo "    </property>"
+echo

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/start-all.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/start-all.sh b/1.5/bin/start-all.sh
new file mode 100755
index 0000000..2a4d4f9
--- /dev/null
+++ b/1.5/bin/start-all.sh
@@ -0,0 +1,63 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+unset DISPLAY
+
+if [ ! -f $ACCUMULO_HOME/conf/accumulo-env.sh ] ; then
+  echo "${ACCUMULO_HOME}/conf/accumulo-env.sh does not exist. Please make sure you configure Accumulo before you run anything"
+  echo "We provide examples you can copy in ${ACCUMULO_HOME}/conf/examples/ which are set up for your memory footprint"
+  exit 1
+fi
+
+
+if [ -z $ZOOKEEPER_HOME ] ; then
+    echo "ZOOKEEPER_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+
+ZOOKEEPER_VERSION=`(cd $ZOOKEEPER_HOME; ls zookeeper-[0-9]*.jar | head -1)`
+ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION/zookeeper-/}
+ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION/.jar/}
+
+if [ "$ZOOKEEPER_VERSION" '<' "3.3.0" ] ; then 
+	echo "WARN : Using Zookeeper $ZOOKEEPER_VERSION.  Use version 3.3.0 or greater to avoid zookeeper deadlock bug.";
+fi
+
+${bin}/start-server.sh $MONITOR monitor 
+
+if [ "$1" != "--notSlaves" ] ; then
+	${bin}/tup.sh
+fi
+
+${bin}/accumulo org.apache.accumulo.server.master.state.SetGoalState NORMAL
+for master in `grep -v '^#' "$ACCUMULO_HOME/conf/masters"`
+do
+    ${bin}/start-server.sh $master master
+done
+
+${bin}/start-server.sh $GC gc "garbage collector"
+
+
+for tracer in `grep -v '^#' "$ACCUMULO_HOME/conf/tracers"`
+do
+   ${bin}/start-server.sh $tracer tracer
+done

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/start-here.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/start-here.sh b/1.5/bin/start-here.sh
new file mode 100755
index 0000000..b3d494e
--- /dev/null
+++ b/1.5/bin/start-here.sh
@@ -0,0 +1,73 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# This script starts all the accumulo services on this host
+#
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+HOSTS="`hostname -a` `hostname` localhost"
+for host in $HOSTS
+do
+    if grep -q "^${host}\$" $ACCUMULO_HOME/conf/slaves
+    then
+       ${bin}/start-server.sh $host logger
+       ${bin}/start-server.sh $host tserver "tablet server"
+       break
+    fi
+done
+
+for host in $HOSTS
+do
+    if grep -q "^${host}\$" $ACCUMULO_HOME/conf/masters
+    then
+       ${bin}/accumulo org.apache.accumulo.server.master.state.SetGoalState NORMAL
+       ${bin}/start-server.sh $host master
+       break
+    fi
+done
+
+for host in $HOSTS
+do
+    if [ ${host} = ${GC} ]
+    then
+	${bin}/start-server.sh $GC gc "garbage collector"
+	break
+    fi
+done
+
+for host in $HOSTS
+do
+    if [ ${host} = ${MONITOR} ]
+    then
+	${bin}/start-server.sh $MONITOR monitor 
+	break
+    fi
+done
+
+for host in $HOSTS
+do
+    if grep -q "^${host}\$" $ACCUMULO_HOME/conf/tracers
+    then
+	${bin}/start-server.sh $host tracer 
+	break
+    fi
+done

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/start-server.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/start-server.sh b/1.5/bin/start-server.sh
new file mode 100755
index 0000000..6299108
--- /dev/null
+++ b/1.5/bin/start-server.sh
@@ -0,0 +1,65 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+HOST=$1
+host $1 >/dev/null 2>/dev/null
+if [ $? -ne 0 ]
+then
+  LOGHOST=$1
+else
+  LOGHOST="`host $1 | head -1 | cut -d' ' -f1`"
+fi
+SERVICE="$2"
+LONGNAME="$3"
+if [ -z "$LONGNAME" ] 
+then
+   LONGNAME="$2"
+fi
+SLAVES=`wc -l < ${ACCUMULO_HOME}/conf/slaves`
+
+if [ $HOST == localhost -o $HOST == "`hostname`" ] 
+then
+  PID=`ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE" | grep -v grep | awk {'print $2'} | head -1`
+else
+  PID=`$SSH $HOST ps -ef | egrep ${ACCUMULO_HOME}/.*/accumulo.*.jar | grep "Main $SERVICE" | grep -v grep | awk {'print $2'} | head -1`
+fi
+
+if [ -z $PID ]; then
+    echo "Starting $LONGNAME on $HOST"
+    if [ $HOST == localhost  -o $HOST == "`hostname`" ] 
+    then
+       ${bin}/accumulo ${SERVICE} --address $1 >${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.out 2>${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.err & 
+       MAX_FILES_OPEN=`bash -c 'ulimit -n'`
+    else
+       $SSH $HOST "bash -c 'exec nohup ${bin}/accumulo ${SERVICE} --address $1 >${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.out 2>${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.err' &"
+       MAX_FILES_OPEN=`$SSH $HOST "bash -c 'ulimit -n'"` 
+    fi
+
+    if [ -n "$MAX_FILES_OPEN" ] && [ -n "$SLAVES" ] ; then
+       if [ "$SLAVES" -gt 10 ] && [ "$MAX_FILES_OPEN" -lt 65536 ]; then
+          echo "WARN : Max files open on $HOST is $MAX_FILES_OPEN, recommend 65536"
+       fi
+    fi
+else
+    echo "$HOST : $LONGNAME already running (${PID})"
+fi

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/stop-all.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/stop-all.sh b/1.5/bin/stop-all.sh
new file mode 100755
index 0000000..1a34093
--- /dev/null
+++ b/1.5/bin/stop-all.sh
@@ -0,0 +1,61 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+${bin}/accumulo admin stopAll "$@"
+
+if [ $? -ne 0 ]; then
+echo 'Invalid password or unable to connect to the master'
+echo 'Press Ctrl-C to cancel now, or force shutdown in 15 seconds'
+sleep 10
+else
+echo 'Accumulo shut down cleanly'
+fi
+
+echo 'Utilities and unresponsive servers will be shut down in 5 seconds'
+sleep 5
+
+#look for master and gc processes not killed by 'admin stopAll'
+for signal in TERM KILL
+do
+   for master in `grep -v '^#' "$ACCUMULO_HOME/conf/masters"`
+   do
+      ${bin}/stop-server.sh $master "$ACCUMULO_HOME/.*/accumulo-start.*.jar" master $signal
+   done
+
+   ${bin}/stop-server.sh $GC "$ACCUMULO_HOME/.*/accumulo-start.*.jar" gc $signal
+
+   ${bin}/stop-server.sh $MONITOR "$ACCUMULO_HOME/.*/accumulo-start.*.jar" monitor $signal
+
+   for tracer in `grep -v '^#' "$ACCUMULO_HOME/conf/tracers"`
+   do
+      ${bin}/stop-server.sh $tracer "$ACCUMULO_HOME/.*/accumulo-start.*.jar" tracer $signal
+   done
+done
+
+
+# stop tserver still running
+${bin}/tdown.sh
+
+echo 'Cleaning all server entries in zookeeper'
+$ACCUMULO_HOME/bin/accumulo org.apache.accumulo.server.util.ZooZap -master -tservers -tracers
+

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/stop-here.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/stop-here.sh b/1.5/bin/stop-here.sh
new file mode 100755
index 0000000..9532e22
--- /dev/null
+++ b/1.5/bin/stop-here.sh
@@ -0,0 +1,52 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# This script safely stops all the accumulo services on this host
+#
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+ACCUMULO="$ACCUMULO_HOME/.*/accumulo-start.*.jar"
+
+if grep -q localhost $ACCUMULO_HOME/conf/slaves
+then
+    $bin/accumulo admin stop localhost
+else
+    for host in `hostname -a`
+    do
+       if grep -q $host $ACCUMULO_HOME/conf/slaves
+       then
+          $bin/accumulo admin stop $host
+       fi
+    done
+fi
+
+for signal in TERM KILL
+do
+    for svc in tserver gc master monitor logger tracer
+    do
+	PID=`ps -ef | egrep ${ACCUMULO} | grep "Main $svc" | grep -v grep | grep -v stop-here.sh | awk {'print \$2'} | head -1`
+	if [ ! -z $PID ]; then
+	    echo "stopping $svc on `hostname -a | head -1` with signal $signal"
+	    kill -s ${signal} ${PID}
+	fi
+    done
+done

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/stop-server.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/stop-server.sh b/1.5/bin/stop-server.sh
new file mode 100755
index 0000000..921cc6a
--- /dev/null
+++ b/1.5/bin/stop-server.sh
@@ -0,0 +1,34 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+
+# only stop if there's not one already running
+if [ "$1" = "`hostname`" ]; then
+	PID=`ps -ef | grep "$ACCUMULO_HOME" | egrep ${2} | grep "Main ${3}" | grep -v grep | grep -v ssh | grep -v stop-server.sh | awk {'print \$2'} | head -1`
+else
+	PID=`ssh -q -o 'ConnectTimeout 8' $1 "ps -ef | grep \"$ACCUMULO_HOME\" |  egrep '${2}' | grep 'Main ${3}' | grep -v grep | grep -v ssh | grep -v stop-server.sh" | awk {'print $2'} | head -1`
+fi
+if [ ! -z $PID ]; then
+        echo "stopping ${3} on $1";
+        ssh -q -o 'ConnectTimeout 8' $1 "kill -s ${4} ${PID} 2>/dev/null"
+fi;

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/tdown.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/tdown.sh b/1.5/bin/tdown.sh
new file mode 100755
index 0000000..7c2c3a9
--- /dev/null
+++ b/1.5/bin/tdown.sh
@@ -0,0 +1,43 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+HADOOP_CMD=$HADOOP_LOCATION/bin/hadoop
+
+SLAVES=$ACCUMULO_HOME/conf/slaves
+
+echo 'stopping unresponsive tablet servers (if any) ...'
+for server in `cat $SLAVES | grep -v '^#' `; do
+        # only start if there's not one already running
+        $ACCUMULO_HOME/bin/stop-server.sh $server "$ACCUMULO_HOME/.*/accumulo-start.*.jar" tserver TERM & 
+done
+
+sleep 10
+
+echo 'stopping unresponsive tablet servers hard (if any) ...'
+for server in `cat $SLAVES | grep -v '^#' `; do
+        # only start if there's not one already running
+        $ACCUMULO_HOME/bin/stop-server.sh $server "$ACCUMULO_HOME/.*/accumulo-start.*.jar" tserver KILL & 
+done
+
+echo 'Cleaning tablet server entries from zookeeper'
+$ACCUMULO_HOME/bin/accumulo org.apache.accumulo.server.util.ZooZap -tservers

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/tool.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/tool.sh b/1.5/bin/tool.sh
new file mode 100755
index 0000000..b537294
--- /dev/null
+++ b/1.5/bin/tool.sh
@@ -0,0 +1,109 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+. "$bin"/config.sh
+
+if [ -z $HADOOP_HOME ] ; then
+    echo "HADOOP_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+if [ -z $ZOOKEEPER_HOME ] ; then
+    echo "ZOOKEEPER_HOME is not set.  Please make sure it's set globally or in conf/accumulo-env.sh"
+    exit 1
+fi
+
+LIB=$ACCUMULO_HOME/lib
+
+ZOOKEEPER_CMD='ls -1 $ZOOKEEPER_HOME/zookeeper-[0-9]*[^csn].jar '
+CORE_CMD='ls -1 $LIB/accumulo-core-*[^cs].jar'
+FATE_CMD='ls -1 $LIB/accumulo-fate-*[^cs].jar'
+THRIFT_CMD='ls -1 $LIB/libthrift-*[^cs].jar'
+CLOUDTRACE_CMD='ls -1 $LIB/cloudtrace-*[^cs].jar'
+
+if [ `eval $ZOOKEEPER_CMD | wc -l` != "1" ] ; then
+    echo "Not exactly one zookeeper jar in $ZOOKEEPER_HOME"
+    exit 1
+fi
+
+if [ `eval $CORE_CMD | wc -l` != "1" ] ; then
+    echo "Not exactly one accumulo-core jar in $LIB"
+    exit 1
+fi
+
+if [ `eval $FATE_CMD | wc -l` != "1" ] ; then
+    echo "Not exactly one accumulo-fate jar in $LIB"
+    exit 1
+fi
+
+if [ `eval $THRIFT_CMD | wc -l` != "1" ] ; then
+    echo "Not exactly one thrift jar in $LIB"
+    exit 1
+fi
+
+if [ `eval $CLOUDTRACE_CMD | wc -l` != "1" ] ; then
+    echo "Not exactly one cloudtrace jar in $LIB"
+    exit 1
+fi
+
+ZOOKEEPER_LIB=`eval $ZOOKEEPER_CMD`
+CORE_LIB=`eval $CORE_CMD`
+FATE_LIB=`eval $FATE_CMD`
+THRIFT_LIB=`eval $THRIFT_CMD`
+CLOUDTRACE_LIB=`eval $CLOUDTRACE_CMD`
+
+USERJARS=" "
+for arg in "$@"; do
+  if [ "$arg" != "-libjars" -a -z "$TOOLJAR" ]; then
+    TOOLJAR="$arg"
+    shift
+  elif [ "$arg" != "-libjars" -a -z "$CLASSNAME" ]; then
+    CLASSNAME="$arg"
+    shift
+  elif [ -z "$USERJARS" ]; then
+    USERJARS=`echo "$arg" | tr "," " "`
+    shift
+  elif [ "$arg" = "-libjars" ]; then
+    USERJARS=""
+    shift
+  else
+    break
+  fi
+done
+
+LIB_JARS="$THRIFT_LIB,$CORE_LIB,$FATE_LIB,$ZOOKEEPER_LIB,$CLOUDTRACE_LIB"
+H_JARS="$THRIFT_LIB:$CORE_LIB:$FATE_LIB:$ZOOKEEPER_LIB:$CLOUDTRACE_LIB:"
+
+COMMONS_LIBS=`ls -1 $LIB/commons-*.jar`
+for jar in $USERJARS $COMMONS_LIBS; do
+  LIB_JARS="$LIB_JARS,$jar"
+  H_JARS="$H_JARS$jar:"
+done
+export HADOOP_CLASSPATH=$H_JARS$HADOOP_CLASSPATH
+
+if [ -z "$CLASSNAME" -o -z "$TOOLJAR" ]; then
+  echo "Usage: tool.sh path/to/myTool.jar my.tool.class.Name [-libjars my1.jar,my2.jar]" 1>&2
+  exit 1
+fi
+
+#echo USERJARS=$USERJARS
+#echo CLASSNAME=$CLASSNAME
+#echo HADOOP_CLASSPATH=$HADOOP_CLASSPATH
+#echo exec "$HADOOP_HOME/bin/hadoop" jar "$TOOLJAR" $CLASSNAME -libjars \"$LIB_JARS\" $ARGS
+exec "$HADOOP_HOME/bin/hadoop" jar "$TOOLJAR" $CLASSNAME -libjars \"$LIB_JARS\" "$@"

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/bin/tup.sh
----------------------------------------------------------------------
diff --git a/1.5/bin/tup.sh b/1.5/bin/tup.sh
new file mode 100755
index 0000000..17054f1
--- /dev/null
+++ b/1.5/bin/tup.sh
@@ -0,0 +1,42 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+bin=`dirname "$0"`
+bin=`cd "$bin"; pwd`
+
+. "$bin"/config.sh
+
+SLAVES=$ACCUMULO_HOME/conf/slaves
+
+echo -n "Starting tablet servers ..."
+
+count=1
+for server in `grep -v '^#' "$SLAVES"`
+do 
+    echo -n "."
+    ${bin}/start-server.sh $server tserver "tablet server" &
+    count=`expr $count + 1`
+    if [ `expr $count % 72` -eq 0 ] ;
+    then
+       echo
+       wait
+    fi
+done
+
+echo " done"
+

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/accumulo.policy.example
----------------------------------------------------------------------
diff --git a/1.5/conf/accumulo.policy.example b/1.5/conf/accumulo.policy.example
new file mode 100644
index 0000000..2964f06
--- /dev/null
+++ b/1.5/conf/accumulo.policy.example
@@ -0,0 +1,143 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+grant codeBase "file:${java.home}/lib/ext/*" {
+  permission java.security.AllPermission;
+};
+
+// These should all be empty in a fielded system
+grant codeBase "file:${org.apache.accumulo.core.home.dir}/src/server/target/classes/" {
+  permission java.security.AllPermission;
+};
+grant codeBase "file:${org.apache.accumulo.core.home.dir}/src/core/target/classes/" {
+  permission java.security.AllPermission;
+};
+grant codeBase "file:${org.apache.accumulo.core.home.dir}/src/start/target/classes/" {
+  permission java.security.AllPermission;
+};
+grant codeBase "file:${org.apache.accumulo.core.home.dir}/src/examples/target/classes/" {
+  permission java.security.AllPermission;
+};
+
+grant codebase "file:${hadoop.home.dir}/*" {
+  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+  permission java.lang.RuntimePermission "shutdownHooks"; // hadoop libs use executables to discover usernames, groups, etc.
+  permission java.lang.RuntimePermission "loadLibrary.*";
+  permission java.io.FilePermission "<<ALL FILES>>", "read, execute";
+  permission java.io.FilePermission "/tmp", "write, delete";
+  permission java.io.FilePermission "/tmp/-", "write, delete";
+  permission java.io.FilePermission "/", "write";
+  permission java.net.SocketPermission "*", "connect, resolve";
+  permission java.util.PropertyPermission "java.library.path", "read";
+  permission java.util.PropertyPermission "user.dir", "read";
+  permission java.util.PropertyPermission "org.apache.commons.logging.*", "read";
+  permission java.util.PropertyPermission "entityExpansionLimit", "read";
+  permission java.util.PropertyPermission "maxOccurLimit", "read";
+  permission java.util.PropertyPermission "os.name", "read";
+};
+
+grant codebase "file:${hadoop.home.dir}/lib/*" {
+  // monitor's jetty web service
+  permission java.security.SecurityPermission "configurationPermission";
+  permission java.security.SecurityPermission "tablesPermission";
+  permission java.security.SecurityPermission "zookeeperWriterPermission";
+  permission java.security.SecurityPermission "tableManagerPermission";
+  permission java.security.SecurityPermission "transportPoolPermission";
+  permission java.security.SecurityPermission "systemCredentialsPermission";
+  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+  // need to accept web requests, and talk to job tracker, name node, etc.
+  permission java.net.SocketPermission "*", "accept, listen, resolve, connect, resolve";
+  permission java.lang.RuntimePermission "getenv.*";
+  permission java.lang.RuntimePermission "loadLibrary.*";
+  permission java.util.PropertyPermission "org.mortbay.*", "read";
+  permission java.util.PropertyPermission "VERBOSE", "read";
+  permission java.util.PropertyPermission "IGNORED", "read";
+  permission java.util.PropertyPermission "ISO_8859_1", "read";
+  permission java.util.PropertyPermission "org.apache.commons.logging.*", "read";
+  permission java.util.PropertyPermission "accumulo.*", "read";
+  permission java.util.PropertyPermission "org.jfree.*", "read";
+  permission java.util.PropertyPermission "elementAttributeLimit", "read";
+  permission java.util.PropertyPermission "entityExpansionLimit", "read";
+  permission java.util.PropertyPermission "maxOccurLimit", "read";
+  // some resources come out of accumulo jars
+  permission java.lang.RuntimePermission "getClassLoader";
+  permission java.io.FilePermission "${org.apache.accumulo.core.home.dir}/lib/*", "read";
+  permission java.io.FilePermission "${org.apache.accumulo.core.home.dir}/src/-", "read";
+  permission java.io.FilePermission "${hadoop.home.dir}/lib/*", "read";
+  // images are cached in /tmp
+  permission java.io.FilePermission "/tmp/*", "read, write";
+  permission java.io.FilePermission "/", "write";
+};
+
+grant codebase "file:${zookeeper.home.dir}/*" {
+  permission java.net.SocketPermission "*", "connect, resolve";
+  permission java.util.PropertyPermission "user.*", "read";
+  permission java.util.PropertyPermission "java.*", "read";
+  permission java.util.PropertyPermission "zookeeper.*", "read";
+  permission java.util.PropertyPermission "jute.*", "read";
+  permission java.util.PropertyPermission "os.*", "read";
+  // accumulo properties read in callbacks
+  permission java.util.PropertyPermission "accumulo.*", "read";
+  permission java.security.SecurityPermission "configurationPermission";
+  permission java.security.SecurityPermission "tablesPermission";
+  permission java.security.SecurityPermission "zookeeperWriterPermission";
+  permission java.security.SecurityPermission "tableManagerPermission";
+  permission java.security.SecurityPermission "transportPoolPermission";
+  permission java.security.SecurityPermission "systemCredentialsPermission";
+  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+  permission java.lang.RuntimePermission "exitVM";
+};
+
+grant codebase "file:${org.apache.accumulo.core.home.dir}/lib/ext/*" {
+};
+
+grant codebase "file:${org.apache.accumulo.core.home.dir}/lib/*" {
+  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+  // logging, configuration and getting user id
+  permission java.io.FilePermission "<<ALL FILES>>", "read, write, execute, delete";
+  permission java.util.PropertyPermission "*", "read, write";
+  permission java.lang.RuntimePermission "getenv.*";
+  permission java.lang.RuntimePermission "getClassLoader";
+  permission java.lang.RuntimePermission "loadLibrary.*";
+  permission java.lang.RuntimePermission "accessDeclaredMembers";
+  permission java.lang.RuntimePermission "selectorProvider";
+  permission java.lang.RuntimePermission "accessClassInPackage.*";
+  permission java.lang.RuntimePermission "readFileDescriptor";
+  permission java.lang.RuntimePermission "writeFileDescriptor";
+  permission java.lang.RuntimePermission "modifyThread";
+  permission java.lang.RuntimePermission "modifyThreadGroup";
+  permission java.lang.RuntimePermission "createClassLoader";
+  permission java.lang.RuntimePermission "setContextClassLoader";
+  permission java.lang.RuntimePermission "exitVM";
+  permission java.lang.RuntimePermission "shutdownHooks";
+  permission java.security.SecurityPermission "getPolicy";
+  permission java.security.SecurityPermission "getProperty.*";
+  permission java.security.SecurityPermission "putProviderProperty.*";
+  permission java.security.SecurityPermission "setSystemScope";
+  permission java.security.SecurityPermission "configurationPermission";
+  permission java.security.SecurityPermission "tablesPermission";
+  permission java.security.SecurityPermission "zookeeperWriterPermission";
+  permission java.security.SecurityPermission "tableManagerPermission";
+  permission java.security.SecurityPermission "transportPoolPermission";
+  permission java.security.SecurityPermission "systemCredentialsPermission";
+  permission java.util.logging.LoggingPermission "control";
+  permission java.net.NetPermission "getProxySelector";
+  permission javax.management.MBeanServerPermission "createMBeanServer";
+  permission javax.management.MBeanTrustPermission "register";
+  permission javax.management.MBeanPermission "*", "registerMBean";
+  permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
+};

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/accumulo-env.sh
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/accumulo-env.sh b/1.5/conf/examples/1GB/native-standalone/accumulo-env.sh
new file mode 100644
index 0000000..231006d
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/accumulo-env.sh
@@ -0,0 +1,46 @@
+#! /usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+###
+### Configure these environment variables to point to your local installations.
+###
+### The functional tests require conditional values, so keep this style:
+###
+### test -z "$JAVA_HOME" && export JAVA_HOME=/usr/local/lib/jdk-1.6.0
+###
+###
+### Note that the -Xmx -Xms settings below require substantial free memory: 
+### you may want to use smaller values, especially when running everything
+### on a single machine.
+###
+
+test -z "$JAVA_HOME"             && export JAVA_HOME=/path/to/java
+test -z "$HADOOP_HOME"           && export HADOOP_HOME=/path/to/hadoop
+test -z "$ZOOKEEPER_HOME"        && export ZOOKEEPER_HOME=/path/to/zookeeper
+test -z "$ACCUMULO_LOG_DIR"      && export ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
+if [ -f ${ACCUMULO_HOME}/conf/accumulo.policy ]
+then
+   POLICY="-Djava.security.manager -Djava.security.policy=${ACCUMULO_HOME}/conf/accumulo.policy"
+fi
+test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY} -Xmx128m -Xms128m -Xss160k"
+test -z "$ACCUMULO_MASTER_OPTS"  && export ACCUMULO_MASTER_OPTS="${POLICY} -Xmx128m -Xms128m"
+test -z "$ACCUMULO_MONITOR_OPTS" && export ACCUMULO_MONITOR_OPTS="${POLICY} -Xmx64m -Xms64m" 
+test -z "$ACCUMULO_GC_OPTS"      && export ACCUMULO_GC_OPTS="-Xmx64m -Xms64m"
+test -z "$ACCUMULO_LOGGER_OPTS"  && export ACCUMULO_LOGGER_OPTS="-Xmx384m -Xms256m"
+test -z "$ACCUMULO_GENERAL_OPTS" && export ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75"
+test -z "$ACCUMULO_OTHER_OPTS"   && export ACCUMULO_OTHER_OPTS="-Xmx128m -Xms64m"
+export ACCUMULO_LOG_HOST=`(grep -v '^#' $ACCUMULO_HOME/conf/masters ; echo localhost ) 2>/dev/null | head -1`

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/accumulo-metrics.xml
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/accumulo-metrics.xml b/1.5/conf/examples/1GB/native-standalone/accumulo-metrics.xml
new file mode 100644
index 0000000..60f9f8d
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/accumulo-metrics.xml
@@ -0,0 +1,60 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--
+  This file follows the conventions for XMLConfiguration files specified in the Apache Commons Configuration 1.5 Library. Changes to this file will be noticed
+  at runtime (see the FileChangedReloadingStrategy class in Commons Configuration).
+-->
+<config>
+<!--
+   Metrics log directory
+-->
+  <logging>
+    <dir>${ACCUMULO_HOME}/metrics</dir>
+  </logging>
+<!--
+ Enable/Disable metrics accumulation on the different servers and their components
+ NOTE: Turning on logging can be expensive because it will use several more file handles and will create a lot of short lived objects.
+-->
+  <master>
+    <enabled type="boolean">false</enabled>
+    <logging type="boolean">false</logging>
+  </master>
+  <logger>
+    <enabled type="boolean">false</enabled>
+    <logging type="boolean">false</logging>
+  </logger>
+  <tserver>
+    <enabled type="boolean">false</enabled>
+    <logging type="boolean">false</logging>
+    <update>
+      <enabled type="boolean">false</enabled>
+      <logging type="boolean">false</logging>
+    </update>
+    <scan>
+      <enabled type="boolean">false</enabled>
+      <logging type="boolean">false</logging>
+    </scan>
+    <minc>
+      <enabled type="boolean">false</enabled>
+      <logging type="boolean">false</logging>
+    </minc>
+  </tserver>
+  <thrift>
+    <enabled type="boolean">false</enabled>
+    <logging type="boolean">false</logging>
+  </thrift>
+</config>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/accumulo-site.xml
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/accumulo-site.xml b/1.5/conf/examples/1GB/native-standalone/accumulo-site.xml
new file mode 100644
index 0000000..fef8328
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/accumulo-site.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+
+<configuration>
+	<!--
+  Put your site-specific accumulo configurations here.
+
+  The available configuration values along with their defaults
+  are documented in docs/config.html
+
+  Unless you are simply testing at your workstation, you will most 
+  definitely need to change the three entries below.
+	-->
+
+    <property>
+      <name>instance.zookeeper.host</name>
+      <value>localhost:2181</value>
+      <description>comma separated list of zookeeper servers</description>
+    </property>
+
+    <property>
+      <name>logger.dir.walog</name>
+      <value>walogs</value>
+      <description>The directory used to store write-ahead logs on the local filesystem. It is possible to specify a comma-separated list of directories.</description>
+    </property>
+    
+    <property>
+      <name>instance.secret</name>
+      <value>DEFAULT</value>
+      <description>A secret unique to a given instance that all servers must know in order to communicate with one another. 
+                   Change it before initialization. To change it later use ./bin/accumulo org.apache.accumulo.server.util.ChangeSecret [oldpasswd] [newpasswd], 
+                   and then update this file.
+      </description>
+    </property>
+
+    <property>
+      <name>tserver.memory.maps.max</name>
+      <value>256M</value>
+    </property>
+    
+    <property>
+      <name>tserver.cache.data.size</name>
+      <value>15M</value>
+    </property>
+    
+    <property>
+      <name>tserver.cache.index.size</name>
+      <value>40M</value>
+    </property>
+    
+    <property>
+      <name>trace.password</name>
+      <!-- 
+        change this to the root user's password, and/or change the user below 
+       -->
+      <value>secret</value>
+    </property>
+    
+    <property>
+      <name>trace.user</name>
+      <value>root</value>
+    </property>
+
+    <property>
+      <name>tserver.sort.buffer.size</name>
+      <value>50M</value>
+    </property>
+    
+    <property>
+      <name>tserver.walog.max.size</name>
+      <value>256M</value>
+    </property>
+
+    <property>
+      <name>tserver.walog.max.size</name>
+      <value>100M</value>
+    </property>
+
+    <property>
+      <name>general.classpaths</name>
+      <value>
+    $ACCUMULO_HOME/server/target/classes/,
+    $ACCUMULO_HOME/core/target/classes/,
+    $ACCUMULO_HOME/start/target/classes/,
+    $ACCUMULO_HOME/examples/target/classes/,
+	$ACCUMULO_HOME/lib/[^.].$ACCUMULO_VERSION.jar,
+	$ACCUMULO_HOME/lib/[^.].*.jar,
+	$ZOOKEEPER_HOME/zookeeper[^.].*.jar,
+	$HADOOP_HOME/conf,
+	$HADOOP_HOME/[^.].*.jar,
+	$HADOOP_HOME/lib/[^.].*.jar,
+      </value>
+      <description>Classpaths that accumulo checks for updates and class files.
+      When using the Security Manager, please remove the ".../target/classes/" values.
+      </description>
+    </property>
+
+</configuration>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/gc
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/gc b/1.5/conf/examples/1GB/native-standalone/gc
new file mode 100644
index 0000000..2fbb50c
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/gc
@@ -0,0 +1 @@
+localhost

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/generic_logger.xml
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/generic_logger.xml b/1.5/conf/examples/1GB/native-standalone/generic_logger.xml
new file mode 100644
index 0000000..4ee1d61
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/generic_logger.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+  <!-- Write out everything at the DEBUG level to the debug log -->
+  <appender name="A2" class="org.apache.log4j.RollingFileAppender">
+     <param name="File"           value="${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.application}_${org.apache.accumulo.core.ip.localhost.hostname}.debug.log"/>
+     <param name="MaxFileSize"    value="1000MB"/>
+     <param name="MaxBackupIndex" value="10"/>
+     <param name="Threshold"      value="DEBUG"/>
+     <layout class="org.apache.log4j.PatternLayout">
+       <param name="ConversionPattern" value="%d{dd HH:mm:ss,SSS} [%-8c{2}] %-5p: %m%n"/>
+     </layout>	    
+  </appender>
+
+  <!--  Write out INFO and higher to the regular log -->
+  <appender name="A3" class="org.apache.log4j.RollingFileAppender">
+     <param name="File"           value="${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.application}_${org.apache.accumulo.core.ip.localhost.hostname}.log"/>
+     <param name="MaxFileSize"    value="1000MB"/>
+     <param name="MaxBackupIndex" value="10"/>
+     <param name="Threshold"      value="INFO"/>
+     <layout class="org.apache.log4j.PatternLayout">
+       <param name="ConversionPattern" value="%d{dd HH:mm:ss,SSS} [%-8c{2}] %-5p: %m%n"/>
+     </layout>	    
+  </appender>
+
+  <!-- Send all logging data to a centralized logger -->
+  <appender name="N1" class="org.apache.log4j.net.SocketAppender">
+     <param name="remoteHost"     value="${org.apache.accumulo.core.host.log}"/>
+     <param name="port"           value="4560"/>
+     <param name="application"    value="${org.apache.accumulo.core.application}:${org.apache.accumulo.core.ip.localhost.hostname}"/>
+     <param name="Threshold"      value="WARN"/>
+  </appender>
+
+  <!--  If the centralized logger is down, buffer the log events, but drop them if it stays down -->
+  <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
+     <appender-ref ref="N1" />
+  </appender>
+
+  <!-- Log accumulo events to the debug, normal and remote logs. -->
+  <logger name="org.apache.accumulo" additivity="false">
+     <level value="DEBUG"/>
+     <appender-ref ref="A2" />
+     <appender-ref ref="A3" />
+     <appender-ref ref="ASYNC" />
+  </logger>
+
+  <logger name="org.apache.accumulo.server.security.Auditor">
+     <level value="WARN"/> <!-- change to INFO for authorization events -->
+  </logger>
+
+  <logger name="org.apache.accumulo.core.file.rfile.bcfile">
+     <level value="INFO"/>
+  </logger>
+
+  <logger name="org.mortbay.log">
+     <level value="WARN"/>
+  </logger>
+
+  <logger name="com.yahoo.zookeeper">
+     <level value="ERROR"/>
+  </logger>
+
+  <!-- Log non-accumulo events to the debug and normal logs. -->
+  <root>
+     <level value="INFO"/>
+     <appender-ref ref="A2" />
+     <appender-ref ref="A3" />
+  </root>
+
+</log4j:configuration>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/log4j.properties
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/log4j.properties b/1.5/conf/examples/1GB/native-standalone/log4j.properties
new file mode 100644
index 0000000..32f0fc9
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/log4j.properties
@@ -0,0 +1,39 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# default logging properties:
+#  by default, log everything at INFO or higher to the console
+log4j.rootLogger=INFO,A1
+
+
+# hide Jetty junk
+log4j.logger.org.mortbay.log=WARN,A1
+
+# hide "Got brand-new compresssor" messages
+log4j.logger.org.apache.hadoop.io.compress=WARN,A1
+
+# hide junk from TestRandomDeletes
+log4j.logger.org.apache.accumulo.server.test.TestRandomDeletes=WARN,A1
+
+# hide almost everything from zookeeper
+log4j.logger.org.apache.zookeeper=ERROR,A1
+
+# hide AUDIT messages in the shell, alternatively you could send them to a different logger
+log4j.logger.org.apache.accumulo.core.util.shell.Shell.audit=WARN,A1
+
+# Send most things to the console
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+log4j.appender.A1.layout.ConversionPattern=%d{dd HH:mm:ss,SSS} [%-8c{2}] %-5p: %m%n
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/masters
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/masters b/1.5/conf/examples/1GB/native-standalone/masters
new file mode 100644
index 0000000..2fbb50c
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/masters
@@ -0,0 +1 @@
+localhost

http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/conf/examples/1GB/native-standalone/monitor
----------------------------------------------------------------------
diff --git a/1.5/conf/examples/1GB/native-standalone/monitor b/1.5/conf/examples/1GB/native-standalone/monitor
new file mode 100644
index 0000000..2fbb50c
--- /dev/null
+++ b/1.5/conf/examples/1GB/native-standalone/monitor
@@ -0,0 +1 @@
+localhost


Mime
View raw message