You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2014/04/02 00:40:45 UTC
[1/2] ACCUMULO-2606 Remove system-level packaging stuff
Repository: accumulo
Updated Branches:
refs/heads/1.6.0-SNAPSHOT 86cafd972 -> a1814fc0d
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/pom.xml
----------------------------------------------------------------------
diff --git a/init/pom.xml b/init/pom.xml
deleted file mode 100644
index 8ffe3f6..0000000
--- a/init/pom.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?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">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-project</artifactId>
- <version>1.6.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <artifactId>accumulo-init</artifactId>
- <packaging>pom</packaging>
- <name>Init</name>
- <description>Initialize and start a single-node accumulo instance.</description>
- <dependencies>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-start</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.thrift</groupId>
- <artifactId>libthrift</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.zookeeper</groupId>
- <artifactId>zookeeper</artifactId>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>java-sdk >= 1.6.0</require>
- <require>accumulo-core = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <configuration>true</configuration>
- <directory>%{_sysconfdir}/accumulo</directory>
- <filemode>700</filemode>
- <username>accumulo</username>
- <sources>
- <source>
- <location>src/main/packaging/etc/accumulo</location>
- <includes>
- <include>*/**</include>
- </includes>
- </source>
- </sources>
- </mapping>
- </mappings>
- <postinstallScriptlet>
- <script>su hdfs -c 'hadoop fs -test -e /accumulo || hadoop fs -mkdir /accumulo && hadoop fs -chown accumulo /accumulo'</script>
- </postinstallScriptlet>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/accumulo-env.sh
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/accumulo-env.sh b/init/src/main/packaging/etc/accumulo/accumulo-env.sh
deleted file mode 100755
index 0ac9374..0000000
--- a/init/src/main/packaging/etc/accumulo/accumulo-env.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /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.
-###
-if [ -z "$HADOOP_HOME" ]
-then
- test -z "$HADOOP_PREFIX" && export HADOOP_PREFIX=/usr/lib/hadoop
-else
- HADOOP_PREFIX="$HADOOP_HOME"
- unset HADOOP_HOME
-fi
-
-# hadoop-1.2:
-# test -z "$HADOOP_CONF_DIR" && export HADOOP_CONF_DIR="$HADOOP_PREFIX/conf"
-test -z "$HADOOP_CONF_DIR" && export HADOOP_CONF_DIR="/etc/hadoop/conf"
-
-test -z "$JAVA_HOME" && export JAVA_HOME=/usr/lib/jvm/jre
-test -z "$ZOOKEEPER_HOME" && export ZOOKEEPER_HOME=/usr/lib/zookeeper
-test -z "$ACCUMULO_LOG_DIR" && export ACCUMULO_LOG_DIR=/var/log/accumulo
-if [ -f ${ACCUMULO_CONF_DIR}/accumulo.policy ]
-then
- POLICY="-Djava.security.manager -Djava.security.policy=${ACCUMULO_CONF_DIR}/accumulo.policy"
-fi
-test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY} -Xmx1g -Xms1g -XX:NewSize=500m -XX:MaxNewSize=500m "
-test -z "$ACCUMULO_MASTER_OPTS" && export ACCUMULO_MASTER_OPTS="${POLICY} -Xmx1g -Xms1g"
-test -z "$ACCUMULO_MONITOR_OPTS" && export ACCUMULO_MONITOR_OPTS="${POLICY} -Xmx1g -Xms256m"
-test -z "$ACCUMULO_GC_OPTS" && export ACCUMULO_GC_OPTS="-Xmx256m -Xms256m"
-test -z "$ACCUMULO_GENERAL_OPTS" && export ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -Djava.net.preferIPv4Stack=true"
-test -z "$ACCUMULO_OTHER_OPTS" && export ACCUMULO_OTHER_OPTS="-Xmx1g -Xms256m"
-# what do when the JVM runs out of heap memory
-export ACCUMULO_KILL_CMD='kill -9 %p'
-
-### Optionally look for hadoop and accumulo native libraries for your
-### platform in additional directories. (Use DYLD_LIBRARY_PATH on Mac OS X.)
-### May not be necessary for Hadoop 2.x or using an RPM that installs to
-### the correct system library directory.
-# export LD_LIBRARY_PATH=${HADOOP_PREFIX}/lib/native/${PLATFORM}:${LD_LIBRARY_PATH}
-
-# Should the monitor bind to all network interfaces -- default: false
-# export ACCUMULO_MONITOR_BIND_ALL="true"
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/accumulo-site.xml
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/accumulo-site.xml b/init/src/main/packaging/etc/accumulo/accumulo-site.xml
deleted file mode 100644
index 12cb1b9..0000000
--- a/init/src/main/packaging/etc/accumulo/accumulo-site.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?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>instance.secret</name>
- <value>CHANGEME</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 --old [oldpasswd] --new [newpasswd],
- and then update this file.
- </description>
- </property>
-
- <property>
- <name>tserver.memory.maps.max</name>
- <value>1G</value>
- </property>
-
- <property>
- <name>tserver.cache.data.size</name>
- <value>128M</value>
- </property>
-
- <property>
- <name>tserver.cache.index.size</name>
- <value>128M</value>
- </property>
-
- <property>
- <name>trace.token.property.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>general.classpaths</name>
- <value>
- /usr/share/java/accumulo/.*.jar,
- /usr/share/accumulo/lib/.*.jar,
- /usr/lib/zookeeper.*.jar,
- /etc/hadoop/conf,
- /usr/lib/hadoop/.*.jar,
- /usr/lib/hadoop/lib/.*.jar,
- /usr/lib/hadoop-hdfs/.*.jar,
- /usr/lib/hadoop-mapreduce/.*.jar,
- /usr/lib/hadoop-yarn/.*.jar,
- </value>
- <description>Classpaths that accumulo checks for updates and class files.</description>
- </property>
-
- <property>
- <name>general.dynamic.classpaths</name>
- <value></value>
- </property>
-
-</configuration>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/auditLog.xml
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/auditLog.xml b/init/src/main/packaging/etc/accumulo/auditLog.xml
deleted file mode 100644
index 9b7987e..0000000
--- a/init/src/main/packaging/etc/accumulo/auditLog.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?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 Audit info to an Audit file -->
- <appender name="Audit" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.ip.localhost.hostname}.audit"/>
- <param name="MaxBackupIndex" value="10"/>
- <param name="DatePattern" value="'.'yyyy-MM-dd"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss,SSS/Z} [%c{2}] %-5p: %m%n"/>
- </layout>
- </appender>
- <logger name="Audit" additivity="false">
- <appender-ref ref="Audit" />
- <level value="OFF"/>
- </logger>
-
-
-
-
-
-</log4j:configuration>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/gc
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/gc b/init/src/main/packaging/etc/accumulo/gc
deleted file mode 100644
index 63fb8bb..0000000
--- a/init/src/main/packaging/etc/accumulo/gc
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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.
-
-localhost
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/generic_logger.xml
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/generic_logger.xml b/init/src/main/packaging/etc/accumulo/generic_logger.xml
deleted file mode 100644
index db79efe..0000000
--- a/init/src/main/packaging/etc/accumulo/generic_logger.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?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{ISO8601} [%-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{ISO8601} [%-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="${org.apache.accumulo.core.host.log.port}"/>
- <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.core.file.rfile.bcfile">
- <level value="INFO"/>
- </logger>
-
- <logger name="org.mortbay.log">
- <level value="WARN"/>
- </logger>
-
- <logger name="org.apache.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/a1814fc0/init/src/main/packaging/etc/accumulo/log4j.properties
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/log4j.properties b/init/src/main/packaging/etc/accumulo/log4j.properties
deleted file mode 100644
index a4bcb2e..0000000
--- a/init/src/main/packaging/etc/accumulo/log4j.properties
+++ /dev/null
@@ -1,41 +0,0 @@
-# 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.test.TestRandomDeletes=WARN,A1
-
-# hide junk from VFS
-log4j.logger.org.apache.commons.vfs2.impl.DefaultFileSystemManager=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{ISO8601} [%-8c{2}] %-5p: %m%n
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/masters
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/masters b/init/src/main/packaging/etc/accumulo/masters
deleted file mode 100644
index 63fb8bb..0000000
--- a/init/src/main/packaging/etc/accumulo/masters
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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.
-
-localhost
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/monitor_logger.xml
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/monitor_logger.xml b/init/src/main/packaging/etc/accumulo/monitor_logger.xml
deleted file mode 100644
index 91a7671..0000000
--- a/init/src/main/packaging/etc/accumulo/monitor_logger.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?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="100MB"/>
- <param name="MaxBackupIndex" value="10"/>
- <param name="Threshold" value="DEBUG"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{ISO8601} [%-8c{2}] %-5p: %X{application} %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="100MB"/>
- <param name="MaxBackupIndex" value="10"/>
- <param name="Threshold" value="INFO"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{ISO8601} [%-8c{2}] %-5p: %X{application} %m%n"/>
- </layout>
- </appender>
-
- <!-- Keep the last few log messages for display to the user -->
- <appender name="GUI" class="org.apache.accumulo.server.monitor.LogService">
- <param name="keep" value="40"/>
- <param name="Threshold" value="WARN"/>
- </appender>
-
- <!-- Log accumulo messages to debug, normal and GUI -->
- <logger name="org.apache.accumulo" additivity="false">
- <level value="DEBUG"/>
- <appender-ref ref="A2" />
- <appender-ref ref="A3" />
- <appender-ref ref="GUI" />
- </logger>
-
- <!-- Log non-accumulo messages to debug, 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/a1814fc0/init/src/main/packaging/etc/accumulo/monitors
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/monitors b/init/src/main/packaging/etc/accumulo/monitors
deleted file mode 100644
index 63fb8bb..0000000
--- a/init/src/main/packaging/etc/accumulo/monitors
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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.
-
-localhost
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/slaves
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/slaves b/init/src/main/packaging/etc/accumulo/slaves
deleted file mode 100644
index 63fb8bb..0000000
--- a/init/src/main/packaging/etc/accumulo/slaves
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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.
-
-localhost
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/init/src/main/packaging/etc/accumulo/tracers
----------------------------------------------------------------------
diff --git a/init/src/main/packaging/etc/accumulo/tracers b/init/src/main/packaging/etc/accumulo/tracers
deleted file mode 100644
index c319fb3..0000000
--- a/init/src/main/packaging/etc/accumulo/tracers
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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.
-localhost
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 7cff9b3..0ed6b05 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,7 +90,6 @@
<module>server/native</module>
<module>server/tracer</module>
<module>server/tserver</module>
- <module>init</module>
</modules>
<scm>
<connection>scm:git:git://git.apache.org/accumulo.git</connection>
@@ -221,13 +220,6 @@
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-core</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-docs</artifactId>
<version>${project.version}</version>
<classifier>user-manual</classifier>
@@ -235,60 +227,18 @@
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-docs</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-examples-simple</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-examples-simple</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-fate</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-fate</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-gc</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-gc</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-init</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-master</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
@@ -309,13 +259,6 @@
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-monitor</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-monitor</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
@@ -325,20 +268,6 @@
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-native</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-proxy</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-proxy</artifactId>
<version>${project.version}</version>
</dependency>
@@ -346,25 +275,11 @@
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-server-base</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-server-base</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-start</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-start</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
@@ -378,20 +293,6 @@
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-trace</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-tracer</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-tracer</artifactId>
<version>${project.version}</version>
</dependency>
@@ -399,13 +300,6 @@
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-tserver</artifactId>
<version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-tserver</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
@@ -647,7 +541,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
- <arguments>-P apache-release,thrift,assemble,docs,rpm,deb</arguments>
+ <arguments>-P apache-release,thrift,assemble,docs</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
<goals>clean deploy</goals>
<preparationGoals>clean verify</preparationGoals>
@@ -709,37 +603,6 @@
<version>1.1</version>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <version>2.1-alpha-3</version>
- <configuration>
- <!--
- The following is a trick to get the plugin to sign the rpm.
- However, these values are ignored, and gpg-agent is used instead.
- Requires copying contrib/dotfiles-rpmmacros to $HOME/.rpmmacros
- This is a workaround for bug http://jira.codehaus.org/browse/MRPM-139
- -->
- <keyname>dummy</keyname>
- <keyPassphrase>
- <passphrase>dummy</passphrase>
- </keyPassphrase>
- <projversion>${project.version.base}</projversion>
- <version>${project.version.base}</version>
- <release>1.el6</release>
- <summary>${project.parent.name} - ${project.name}</summary>
- <description>${project.description}</description>
- <!-- This populates the license field of the RPM. -->
- <copyright>ASL 2.0</copyright>
- <classifier>el6</classifier>
- <url>http://accumulo.apache.org</url>
- <group>Applications/Databases</group>
- <defaultDirmode>755</defaultDirmode>
- <defaultFilemode>644</defaultFilemode>
- <defaultUsername>root</defaultUsername>
- <defaultGroupname>root</defaultGroupname>
- </configuration>
- </plugin>
- <plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
@@ -1079,12 +942,6 @@
</reporting>
<profiles>
<profile>
- <id>rpm</id>
- <properties>
- <thrift.enabled>true</thrift.enabled>
- </properties>
- </profile>
- <profile>
<id>apache-release</id>
<build>
<plugins>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/proxy/pom.xml
----------------------------------------------------------------------
diff --git a/proxy/pom.xml b/proxy/pom.xml
index 522ecfa..a994e53 100644
--- a/proxy/pom.xml
+++ b/proxy/pom.xml
@@ -111,71 +111,5 @@
</plugins>
</build>
</profile>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-core = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_datadir}/accumulo/proxy</directory>
- <recurseDirectories>true</recurseDirectories>
- <sources>
- <source>
- <location>README</location>
- </source>
- <source>
- <location>proxy.properties</location>
- </source>
- <source>
- <location>examples</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>%{_datadir}/accumulo/proxy/thrift</directory>
- <sources>
- <source>
- <location>src/main/thrift</location>
- <includes>
- <include>*.thrift</include>
- </includes>
- </source>
- <source>
- <location>src/main</location>
- <includes>
- <include>cpp/**</include>
- <include>python/**</include>
- <include>ruby/**</include>
- </includes>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/base/pom.xml
----------------------------------------------------------------------
diff --git a/server/base/pom.xml b/server/base/pom.xml
index b8c1257..f9f8e13 100644
--- a/server/base/pom.xml
+++ b/server/base/pom.xml
@@ -120,52 +120,4 @@
</testResource>
</testResources>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>java-sdk >= 1.6.0</require>
- <require>accumulo-core = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_var}/log/accumulo</directory>
- <username>accumulo</username>
- <filemode>770</filemode>
- </mapping>
- <mapping>
- <directory>%{_datadir}/accumulo/lib</directory>
- <dependency>
- <includes>
- <include>com.google.code.gson:gson</include>
- </includes>
- <stripVersion>true</stripVersion>
- </dependency>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/gc/pom.xml
----------------------------------------------------------------------
diff --git a/server/gc/pom.xml b/server/gc/pom.xml
index 22e67cd..6f95273 100644
--- a/server/gc/pom.xml
+++ b/server/gc/pom.xml
@@ -83,54 +83,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-server-base = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/chkconfig --add ${project.artifactId}</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>if [ $$1 -eq 0 ]; then /sbin/service ${project.artifactId} stop &>/dev/null || : ; /sbin/chkconfig --del ${project.artifactId}; fi</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_initddir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/packaging/etc/init.d/${project.artifactId}</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/gc/src/main/packaging/etc/init.d/accumulo-gc
----------------------------------------------------------------------
diff --git a/server/gc/src/main/packaging/etc/init.d/accumulo-gc b/server/gc/src/main/packaging/etc/init.d/accumulo-gc
deleted file mode 100755
index a6574ae..0000000
--- a/server/gc/src/main/packaging/etc/init.d/accumulo-gc
+++ /dev/null
@@ -1,159 +0,0 @@
-#! /bin/sh
-# chkconfig: 2345 21 20
-### BEGIN INIT INFO
-# Provides: accumulo-gc
-# Required-Start: $network $local_fs
-# Required-Stop: $network $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: accumulo garbage collector process
-# Description: The accumulo garbage collector handles cleanup of old walogs and files in hdfs
-### END INIT INFO
-
-# 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.
-
-# Do NOT "set -e"
-install -d -m 0775 -o root -g accumulo /var/run/accumulo
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/share/accumulo/bin
-DESC="Accumulo Garbage Collector"
-NAME=accumulo-gc
-ACCUMULO_PROC=gc
-DAEMON=/usr/share/accumulo/bin/start-server.sh
-IP=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep -v 127.0.0.1 | head -n 1`
-DAEMON_ARGS="$IP gc \"garbage collector\""
-PIDFILE=/var/run/accumulo/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Read configuration variable file if it is present
-[ -r /etc/default/accumulo ] && . /etc/default/accumulo
-
-# Load the VERBOSE setting and other rcS variables
-if [ -f /lib/init/vars.sh ]; then
- . /lib/init/vars.sh
-else
- log_daemon_msg() { logger "$@"; }
- log_end_msg() { [ $1 -eq 0 ] && RES=OK; logger ${RES:=FAIL}; }
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
-# and status_of_proc is working.
-. /lib/lsb/init-functions
-
-#
-# Function that starts the daemon/service
-#
-do_start() {
- TARGET_USER="${ACCUMULO_USER-accumulo}"
-
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "$DAEMON $DAEMON_ARGS > /dev/null || return 1"
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 0; fi
- return 2
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
-}
-
-#
-# Function that stops the daemon/service
-#
-do_stop()
-{
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
-
- if [ ! "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- jps -m | grep $ACCUMULO_PROC | awk '{print $1}' | xargs kill -9
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 2; fi
-
- return 0;
-}
-
-case "$1" in
- start)
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- status)
- echo -n "$NAME is "
- jps -m | grep -q "$ACCUMULO_PROC" && (echo running.; exit 0) || (echo not running.; exit 1)
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
- exit 3
- ;;
-esac
-
-:
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/master/pom.xml
----------------------------------------------------------------------
diff --git a/server/master/pom.xml b/server/master/pom.xml
index 9179c95..dcf20a3 100644
--- a/server/master/pom.xml
+++ b/server/master/pom.xml
@@ -87,54 +87,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-server-base = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/chkconfig --add ${project.artifactId}</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>if [ $$1 -eq 0 ]; then /sbin/service ${project.artifactId} stop &>/dev/null || : ; /sbin/chkconfig --del ${project.artifactId}; fi</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_initddir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/packaging/etc/init.d/${project.artifactId}</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/master/src/main/packaging/etc/init.d/accumulo-master
----------------------------------------------------------------------
diff --git a/server/master/src/main/packaging/etc/init.d/accumulo-master b/server/master/src/main/packaging/etc/init.d/accumulo-master
deleted file mode 100755
index 545db58..0000000
--- a/server/master/src/main/packaging/etc/init.d/accumulo-master
+++ /dev/null
@@ -1,160 +0,0 @@
-#! /bin/sh
-# chkconfig: 2345 21 19
-### BEGIN INIT INFO
-# Provides: accumulo-master
-# Required-Start: $network $local_fs hadoop-namenode zookeeper-server
-# Required-Stop: $network $local_fs accumulo-slave
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: accumulo master process
-# Description: The accumulo master manages tablet assignment and balance to accumulo
-### END INIT INFO
-
-# 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.
-
-# Do NOT "set -e"
-install -d -m 0775 -o root -g accumulo /var/run/accumulo
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/share/accumulo/bin
-DESC="Accumulo Master"
-NAME=accumulo-master
-ACCUMULO_PROC=master
-DAEMON=/usr/share/accumulo/bin/start-server.sh
-IP=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep -v 127.0.0.1 | head -n 1`
-DAEMON_ARGS="$IP master"
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Read configuration variable file if it is present
-[ -r /etc/default/accumulo ] && . /etc/default/accumulo
-
-# Load the VERBOSE setting and other rcS variables
-if [ -f /lib/init/vars.sh ]; then
- . /lib/init/vars.sh
-else
- log_daemon_msg() { logger "$@"; }
- log_end_msg() { [ $1 -eq 0 ] && RES=OK; logger ${RES:=FAIL}; }
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
-# and status_of_proc is working.
-. /lib/lsb/init-functions
-
-#
-# Function that starts the daemon/service
-#
-do_start()
-{
- TARGET_USER="${ACCUMULO_USER-accumulo}"
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "/usr/share/accumulo/bin/accumulo org.apache.accumulo.master.state.SetGoalState NORMAL"
- su -s /bin/sh $TARGET_USER -c "$DAEMON $DAEMON_ARGS > /dev/null || return 1"
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 0; fi
- return 2
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
-}
-
-#
-# Function that stops the daemon/service
-#
-do_stop()
-{
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
-
- if [ ! "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- jps -m | grep $ACCUMULO_PROC | awk '{print $1}' | xargs kill -9
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 2; fi
-
- return 0;
-}
-
-case "$1" in
- start)
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- status)
- echo -n "$NAME is "
- jps -m | grep -q "$ACCUMULO_PROC" && (echo running.; exit 0) || (echo not running.; exit 1)
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
- exit 3
- ;;
-esac
-
-:
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/monitor/pom.xml
----------------------------------------------------------------------
diff --git a/server/monitor/pom.xml b/server/monitor/pom.xml
index 3889b84..7a5ddbb 100644
--- a/server/monitor/pom.xml
+++ b/server/monitor/pom.xml
@@ -114,55 +114,4 @@
</plugins>
</pluginManagement>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <copyright>ASL 2.0 and MIT</copyright>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-server-base = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/chkconfig --add ${project.artifactId}</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>if [ $$1 -eq 0 ]; then /sbin/service ${project.artifactId} stop &>/dev/null || : ; /sbin/chkconfig --del ${project.artifactId}; fi</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_initddir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/packaging/etc/init.d/${project.artifactId}</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/monitor/src/main/packaging/etc/init.d/accumulo-monitor
----------------------------------------------------------------------
diff --git a/server/monitor/src/main/packaging/etc/init.d/accumulo-monitor b/server/monitor/src/main/packaging/etc/init.d/accumulo-monitor
deleted file mode 100755
index 147bb4b..0000000
--- a/server/monitor/src/main/packaging/etc/init.d/accumulo-monitor
+++ /dev/null
@@ -1,159 +0,0 @@
-#! /bin/sh
-# chkconfig: 2345 21 20
-### BEGIN INIT INFO
-# Provides: accumulo-monitor
-# Required-Start: $network $local_fs
-# Required-Stop: $network $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: accumulo monitor process on 50095
-# Description: The accumulo monitor provides a convenient mechanism for monitoring accumulo
-### END INIT INFO
-
-# 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.
-
-# Do NOT "set -e"
-install -d -m 0775 -o root -g accumulo /var/run/accumulo
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/share/accumulo/bin
-DESC="Accumulo Monitor"
-NAME=accumulo-monitor
-ACCUMULO_PROC=monitor
-DAEMON=/usr/share/accumulo/bin/start-server.sh
-IP=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep -v 127.0.0.1 | head -n 1`
-DAEMON_ARGS="$IP monitor"
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Read configuration variable file if it is present
-[ -r /etc/default/accumulo ] && . /etc/default/accumulo
-
-# Load the VERBOSE setting and other rcS variables
-if [ -f /lib/init/vars.sh ]; then
- . /lib/init/vars.sh
-else
- log_daemon_msg() { logger "$@"; }
- log_end_msg() { [ $1 -eq 0 ] && RES=OK; logger ${RES:=FAIL}; }
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
-# and status_of_proc is working.
-. /lib/lsb/init-functions
-
-#
-# Function that starts the daemon/service
-#
-do_start()
-{
- TARGET_USER="${ACCUMULO_MONITOR_USER-accumulo}"
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "$DAEMON $DAEMON_ARGS > /dev/null || return 1"
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 0; fi
- return 2
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
-}
-
-#
-# Function that stops the daemon/service
-#
-do_stop()
-{
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
-
- if [ ! "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- jps -m | grep $ACCUMULO_PROC | awk '{print $1}' | xargs kill -9
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 2; fi
-
- return 0;
-}
-
-case "$1" in
- start)
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- status)
- echo -n "$NAME is "
- jps -m | grep -q "$ACCUMULO_PROC" && (echo running.; exit 0) || (echo not running.; exit 1)
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
- exit 3
- ;;
-esac
-
-:
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/native/pom.xml
----------------------------------------------------------------------
diff --git a/server/native/pom.xml b/server/native/pom.xml
index a085655..573c999 100644
--- a/server/native/pom.xml
+++ b/server/native/pom.xml
@@ -110,67 +110,4 @@
</plugin>
</plugins>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-native-libs-for-rpm</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <executable>make</executable>
- <workingDirectory>${project.build.directory}/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}</workingDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>accumulo-core = %{version}-%{release}</require>
- <require>accumulo-tserver = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/ldconfig</script>
- </postinstallScriptlet>
- <postremoveScriptlet>
- <script>/sbin/ldconfig</script>
- </postremoveScriptlet>
- <needarch>x86_64</needarch>
- <mappings>
- <mapping>
- <directory>%{_libdir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>${project.build.directory}/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/libaccumulo.so</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/tracer/pom.xml
----------------------------------------------------------------------
diff --git a/server/tracer/pom.xml b/server/tracer/pom.xml
index 357a967..a7247c8 100644
--- a/server/tracer/pom.xml
+++ b/server/tracer/pom.xml
@@ -74,54 +74,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-server-base = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/chkconfig --add ${project.artifactId}</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>if [ $$1 -eq 0 ]; then /sbin/service ${project.artifactId} stop &>/dev/null || : ; /sbin/chkconfig --del ${project.artifactId}; fi</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_initddir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/packaging/etc/init.d/${project.artifactId}</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/tracer/src/main/packaging/etc/init.d/accumulo-tracer
----------------------------------------------------------------------
diff --git a/server/tracer/src/main/packaging/etc/init.d/accumulo-tracer b/server/tracer/src/main/packaging/etc/init.d/accumulo-tracer
deleted file mode 100755
index b454769..0000000
--- a/server/tracer/src/main/packaging/etc/init.d/accumulo-tracer
+++ /dev/null
@@ -1,159 +0,0 @@
-#! /bin/sh
-# chkconfig: 2345 21 20
-### BEGIN INIT INFO
-# Provides: accumulo-tracer
-# Required-Start: $network $local_fs zookeeper-server
-# Required-Stop: $network $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: accumulo tracer
-# Description: The accumulo tracer provides a mechanism for tracing accumulo calls
-### END INIT INFO
-
-# 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.
-
-# Do NOT "set -e"
-install -d -m 0775 -o root -g accumulo /var/run/accumulo
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/share/accumulo/bin
-DESC="Accumulo Tracer"
-NAME=accumulo-tracer
-ACCUMULO_PROC=tracer
-DAEMON=/usr/share/accumulo/bin/start-server.sh
-IP=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep -v 127.0.0.1 | head -n 1`
-DAEMON_ARGS="$IP tracer"
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Read configuration variable file if it is present
-[ -r /etc/default/accumulo ] && . /etc/default/accumulo
-
-# Load the VERBOSE setting and other rcS variables
-if [ -f /lib/init/vars.sh ]; then
- . /lib/init/vars.sh
-else
- log_daemon_msg() { logger "$@"; }
- log_end_msg() { [ $1 -eq 0 ] && RES=OK; logger ${RES:=FAIL}; }
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
-# and status_of_proc is working.
-. /lib/lsb/init-functions
-
-#
-# Function that starts the daemon/service
-#
-do_start()
-{
- TARGET_USER="${ACCUMULO_TRACER_USER-accumulo}"
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "$DAEMON $DAEMON_ARGS > /dev/null || return 1"
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 0; fi
- return 2
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
-}
-
-#
-# Function that stops the daemon/service
-#
-do_stop()
-{
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
-
- if [ ! "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- jps -m | grep $ACCUMULO_PROC | awk '{print $1}' | xargs kill -9
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 2; fi
-
- return 0;
-}
-
-case "$1" in
- start)
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- status)
- echo -n "$NAME is "
- jps -m | grep -q "$ACCUMULO_PROC" && (echo running.; exit 0) || (echo not running.; exit 1)
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
- exit 3
- ;;
-esac
-
-:
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/tserver/pom.xml
----------------------------------------------------------------------
diff --git a/server/tserver/pom.xml b/server/tserver/pom.xml
index 50391ca..bcb6ea8 100644
--- a/server/tserver/pom.xml
+++ b/server/tserver/pom.xml
@@ -118,54 +118,4 @@
</plugins>
</pluginManagement>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-server-base = %{version}-%{release}</require>
- </requires>
- <postinstallScriptlet>
- <script>/sbin/chkconfig --add ${project.artifactId}</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>if [ $$1 -eq 0 ]; then /sbin/service ${project.artifactId} stop &>/dev/null || : ; /sbin/chkconfig --del ${project.artifactId}; fi</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_initddir}</directory>
- <directoryIncluded>false</directoryIncluded>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/packaging/etc/init.d/${project.artifactId}</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/server/tserver/src/main/packaging/etc/init.d/accumulo-tserver
----------------------------------------------------------------------
diff --git a/server/tserver/src/main/packaging/etc/init.d/accumulo-tserver b/server/tserver/src/main/packaging/etc/init.d/accumulo-tserver
deleted file mode 100755
index 2bbd138..0000000
--- a/server/tserver/src/main/packaging/etc/init.d/accumulo-tserver
+++ /dev/null
@@ -1,161 +0,0 @@
-#! /bin/sh
-# chkconfig: 2345 21 15
-### BEGIN INIT INFO
-# Provides: accumulo-tserver
-# Required-Start: $network $local_fs hadoop-namenode hadoop-datanode zookeeper-server accumulo-master
-# Required-Stop: $network $local_fs hadoop-datanode hadoop-namenode zookeeper-server accumulo-master
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: accumulo tserver and logger processes
-# Description: The accumulo tserver process for accumulo
-### END INIT INFO
-
-# 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.
-
-# Do NOT "set -e"
-install -d -m 0775 -o root -g accumulo /var/run/accumulo
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/share/accumulo/bin
-DESC="Accumulo Tserver"
-NAME=accumulo-tserver
-ACCUMULO_PROC=tserver
-DAEMON=/usr/share/accumulo/bin/start-server.sh
-IP=`ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v 0.0.0.0 | grep -v 127.0.0.1 | head -n 1`
-DAEMON_ARGS="$IP slaves"
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Read configuration variable file if it is present
-[ -r /etc/default/accumulo ] && . /etc/default/accumulo
-
-# Load the VERBOSE setting and other rcS variables
-if [ -f /lib/init/vars.sh ]; then
- . /lib/init/vars.sh
-else
- log_daemon_msg() { logger "$@"; }
- log_end_msg() { [ $1 -eq 0 ] && RES=OK; logger ${RES:=FAIL}; }
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
-# and status_of_proc is working.
-. /lib/lsb/init-functions
-
-#
-# Function that starts the daemon/service
-#
-do_start()
-{
- TARGET_USER="${ACCUMULO_USER-accumulo}"
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "/usr/share/accumulo/bin/start-server.sh $IP tserver \"tablet server\""
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 0; fi
- return 2
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
-}
-
-#
-# Function that stops the daemon/service
-#
-do_stop()
-{
- TARGET_USER="${ACCUMULO_USER-accumulo}"
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
-
- if [ ! "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 1; fi
-
- su -s /bin/sh $TARGET_USER -c "/usr/share/accumulo/bin/accumulo admin stop $IP"
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then jps -m | grep $ACCUMULO_PROC | awk '{print $1}' | xargs kill -9; fi
-
- if [ "`jps -m | grep $ACCUMULO_PROC`" ] ; then return 2; fi
- return 0;
-}
-
-case "$1" in
- start)
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- status)
- echo -n "$NAME is "
- jps -m | grep -q "$ACCUMULO_PROC" && (echo running.; exit 0) || (echo not running.; exit 1)
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
- exit 3
- ;;
-esac
-
-:
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/start/pom.xml
----------------------------------------------------------------------
diff --git a/start/pom.xml b/start/pom.xml
index 8dc7c64..4cad554 100644
--- a/start/pom.xml
+++ b/start/pom.xml
@@ -99,37 +99,4 @@
</plugins>
</pluginManagement>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/trace/pom.xml
----------------------------------------------------------------------
diff --git a/trace/pom.xml b/trace/pom.xml
index 34ed562..8cd6969 100644
--- a/trace/pom.xml
+++ b/trace/pom.xml
@@ -77,36 +77,5 @@
</plugins>
</build>
</profile>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
[2/2] git commit: ACCUMULO-2606 Remove system-level packaging stuff
Posted by ct...@apache.org.
ACCUMULO-2606 Remove system-level packaging stuff
Removing RPM/DEB build tasks and maven profiles, related documentation,
and system-specific packaging resources and scripts, in order to defer such
things to downstream package maintainers.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/a1814fc0
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/a1814fc0
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/a1814fc0
Branch: refs/heads/1.6.0-SNAPSHOT
Commit: a1814fc0dbdf0fb095ad87385dfb133c5a1f35df
Parents: 86cafd9
Author: Christopher Tubbs <ct...@apache.org>
Authored: Tue Apr 1 17:48:12 2014 -0400
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Tue Apr 1 18:28:38 2014 -0400
----------------------------------------------------------------------
README | 11 +-
assemble/build.sh | 26 +-
assemble/deb/accumulo-custom-conf/control | 27 --
assemble/deb/accumulo-gc/control | 27 --
assemble/deb/accumulo-logger/control | 26 --
assemble/deb/accumulo-master/control | 26 --
assemble/deb/accumulo-monitor/control | 26 --
assemble/deb/accumulo-native/control | 26 --
assemble/deb/accumulo-native/postinst | 34 --
assemble/deb/accumulo-native/postrm | 20 -
assemble/deb/accumulo-single-conf/control | 27 --
assemble/deb/accumulo-singleton/control | 26 --
assemble/deb/accumulo-slave/control | 26 --
assemble/deb/accumulo-test/control | 26 --
assemble/deb/accumulo-tserver/control | 26 --
assemble/deb/accumulo/conffile | 23 --
assemble/deb/accumulo/control | 27 --
assemble/deb/accumulo/postinst | 44 --
assemble/deb/accumulo/postrm | 37 --
assemble/pom.xml | 402 -------------------
assemble/scripts/gc-only-init.sh | 47 ---
assemble/scripts/master-only-init.sh | 46 ---
assemble/scripts/monitor-only-init.sh | 45 ---
assemble/scripts/stand-alone-init.sh | 26 --
assemble/scripts/tracer-only-init.sh | 45 ---
assemble/scripts/tserver-only-init.sh | 46 ---
assemble/src/main/assemblies/component.xml | 32 --
bin/etc_initd_accumulo | 57 ---
contrib/dotfile-rpmmacros | 20 -
core/pom.xml | 161 --------
.../etc/security/limits.d/50-accumulo.conf | 17 -
core/src/main/packaging/etc/sysctl.d/accumulo | 20 -
docs/pom.xml | 44 --
docs/src/main/resources/examples/README.dirlist | 2 +-
examples/simple/pom.xml | 34 --
fate/pom.xml | 33 --
init/pom.xml | 99 -----
.../main/packaging/etc/accumulo/accumulo-env.sh | 65 ---
.../packaging/etc/accumulo/accumulo-site.xml | 87 ----
.../main/packaging/etc/accumulo/auditLog.xml | 41 --
init/src/main/packaging/etc/accumulo/gc | 16 -
.../packaging/etc/accumulo/generic_logger.xml | 83 ----
.../packaging/etc/accumulo/log4j.properties | 41 --
init/src/main/packaging/etc/accumulo/masters | 16 -
.../packaging/etc/accumulo/monitor_logger.xml | 64 ---
init/src/main/packaging/etc/accumulo/monitors | 16 -
init/src/main/packaging/etc/accumulo/slaves | 16 -
init/src/main/packaging/etc/accumulo/tracers | 15 -
pom.xml | 145 +------
proxy/pom.xml | 66 ---
server/base/pom.xml | 48 ---
server/gc/pom.xml | 50 ---
.../src/main/packaging/etc/init.d/accumulo-gc | 159 --------
server/master/pom.xml | 50 ---
.../main/packaging/etc/init.d/accumulo-master | 160 --------
server/monitor/pom.xml | 51 ---
.../main/packaging/etc/init.d/accumulo-monitor | 159 --------
server/native/pom.xml | 63 ---
server/tracer/pom.xml | 50 ---
.../main/packaging/etc/init.d/accumulo-tracer | 159 --------
server/tserver/pom.xml | 50 ---
.../main/packaging/etc/init.d/accumulo-tserver | 161 --------
start/pom.xml | 33 --
trace/pom.xml | 31 --
64 files changed, 8 insertions(+), 3574 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/README
----------------------------------------------------------------------
diff --git a/README b/README
index 759c95b..ee98d92 100644
--- a/README
+++ b/README
@@ -10,7 +10,7 @@ key/value pairs at various points in the data management process.
******************************************************************************
1. Building
-In the normal tarball or RPM release of accumulo, everything is built and
+In the normal tarball release of accumulo, everything is built and
ready to go on x86 GNU/Linux: there is no build step.
However, if you only have source code, or you wish to make changes, you need to
@@ -52,12 +52,6 @@ library into the $ACCUMULO_HOME/lib/native/map.
$ cp libaccumulo.* $ACCUMULO_HOME/lib/native/map
-If you want to build the debian release, use the command "mvn package -Pdeb" to
-generate the .deb files in the target/ directory. Please follow the steps at
-https://cwiki.apache.org/BIGTOP/how-to-install-hadoop-distribution-from-bigtop.html
-to add bigtop to your debian sources list. This will make it substantially
-easier to install.
-
Building Documentation
Use the following command to build the User Manual (docs/target/accumulo_user_manual.pdf)
@@ -72,9 +66,6 @@ Copy the accumulo tar file produced by mvn package from the assemble/target/
directory to the desired destination, then untar it (e.g.
tar xzf accumulo-1.6.0-bin.tar.gz).
-If you are using the RPM, install the RPM on every machine that will run
-accumulo.
-
Another option is to package Accumulo directly to a working directory. For example,
mvn package -DskipTests -DDEV_ACCUMULO_HOME=/var/tmp
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/build.sh
----------------------------------------------------------------------
diff --git a/assemble/build.sh b/assemble/build.sh
index 065053f..31b2d2c 100755
--- a/assemble/build.sh
+++ b/assemble/build.sh
@@ -45,36 +45,20 @@ cacheGPG() {
touch "${TESTFILE}" && gpg --sign "${TESTFILE}" && rm -f "${TESTFILE}" "${TESTFILE}.gpg"
}
-setupRPM() {
- # if you want the RPM signed, copy contrib/dotfile-rpmmacros to $HOME/.rpmmacros
- diff -q "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros"
- R=$?
- if [[ $R = 0 ]]; then
- true
- elif [[ $R = 1 ]]; then
- run mv -n "$HOME/.rpmmacros" "$HOME/.rpmmacros-bak-$(date -u +%s)"
- run cp "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros"
- elif [[ ! -r "$HOME/.rpmmacros" ]]; then
- run cp "contrib/dotfile-rpmmacros" "$HOME/.rpmmacros"
- else
- fail diff returned $R
- fi
-}
-
if [[ $1 = '--create-release-candidate' ]]; then
- cacheGPG; setupRPM
+ cacheGPG
# create a release candidate from a branch
run mvn clean release:clean release:prepare release:perform
elif [[ $1 = '--seal-jars' ]]; then
- cacheGPG; setupRPM
+ cacheGPG
# build a tag, but with sealed jars
run mvn clean compile javadoc:aggregate install \
- -P apache-release,seal-jars,thrift,native,assemble,docs,rpm,deb
+ -P apache-release,seal-jars,thrift,native,assemble,docs
elif [[ $1 = '--test' ]]; then
- cacheGPG; setupRPM
+ cacheGPG
# build a tag, but with tests
run mvn clean compile javadoc:aggregate install \
- -P apache-release,thrift,native,assemble,docs,rpm,deb
+ -P apache-release,thrift,native,assemble,docs
else
fail "Missing one of: --create-release-candidate, --test, --seal-jars"
fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-custom-conf/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-custom-conf/control b/assemble/deb/accumulo-custom-conf/control
deleted file mode 100644
index c10bf73..0000000
--- a/assemble/deb/accumulo-custom-conf/control
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-custom-conf
-Provides: accumulo-config
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo
-Description: Configuration for Accumulo
- This package sets up the configuration for all nodes
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-gc/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-gc/control b/assemble/deb/accumulo-gc/control
deleted file mode 100644
index 132b020..0000000
--- a/assemble/deb/accumulo-gc/control
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-gc
-Section: misc
-Version: [[version]]
-Architecture: all
-Depends: accumulo-config
-Description: Sets a node to run as a garbage collector node
- This package sets up the node to run as a garbage collector process
-
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-logger/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-logger/control b/assemble/deb/accumulo-logger/control
deleted file mode 100644
index 092bf2d..0000000
--- a/assemble/deb/accumulo-logger/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-logger
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo-config
-Description: Sets a node to run as a logger node
- This package sets up the node to run as a logger process
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-master/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-master/control b/assemble/deb/accumulo-master/control
deleted file mode 100644
index 2911380..0000000
--- a/assemble/deb/accumulo-master/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-master
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo-config
-Description: Sets a node to run as a master node
- This package sets up the node to run as a master process
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-monitor/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-monitor/control b/assemble/deb/accumulo-monitor/control
deleted file mode 100644
index a6afa22..0000000
--- a/assemble/deb/accumulo-monitor/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-monitor
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo-config
-Description: Sets a node to run as a monitor node
- This package sets up the node to run as a monitor process
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-native/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-native/control b/assemble/deb/accumulo-native/control
deleted file mode 100644
index a35cc74..0000000
--- a/assemble/deb/accumulo-native/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-native
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: java6-sdk, accumulo (=[[version]]), g++, g++-multilib
-Description: Native libraries for Accumulo- locks and InMemoryMap
- This optional package contains native libraries that improve the performance of Accumulo tservers.
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-native/postinst
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-native/postinst b/assemble/deb/accumulo-native/postinst
deleted file mode 100644
index cc084ec..0000000
--- a/assemble/deb/accumulo-native/postinst
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#
-# 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.
-
-# postinst script for Apache Accumulo native libraries
-echo JAVA HOME IS $JAVA_HOME
-if [ -z "$JAVA_HOME" -o ! -f "$JAVA_HOME/jre/bin/" ] ; then
- JAVA_HOME=`readlink -f /usr/bin/java`
- JAVA_HOME=`dirname $JAVA_HOME`
- JAVA_HOME=`cd $JAVA_HOME/../; pwd`
-fi
-export JAVA_HOME
-export PATH=$PATH:$JAVA_HOME/bin
-echo $JAVA_HOME
-echo $PATH
-cd /usr/lib/accumulo/src/server/src/main/c++
-make
-
-if [ $? -ne 0 ]; then
- echo "Issues building native libraries. Make sure root has javah on it's classpath"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-native/postrm
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-native/postrm b/assemble/deb/accumulo-native/postrm
deleted file mode 100644
index 1344baf..0000000
--- a/assemble/deb/accumulo-native/postrm
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-#
-# 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.
-
-# postinst script for Apache Accumulo native libraries
-rm -Rf /usr/lib/accumulo/src
-rm -Rf /usr/lib/accumulo/lib/native
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-single-conf/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-single-conf/control b/assemble/deb/accumulo-single-conf/control
deleted file mode 100644
index b501205..0000000
--- a/assemble/deb/accumulo-single-conf/control
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-single-conf
-Provides: accumulo-config
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo
-Description: Basic single-node configuration for Accumulo
- This package sets up the configuration for a single node with the default single node configuration
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-singleton/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-singleton/control b/assemble/deb/accumulo-singleton/control
deleted file mode 100644
index a28b605..0000000
--- a/assemble/deb/accumulo-singleton/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-singleton
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo-master, accumulo-monitor, accumulo-gc
-Description: Sets a node to run as the primary node, with master, monitor, and garbage collector
- This package sets up the node to run the master, monitor, and garbage collector processes
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-slave/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-slave/control b/assemble/deb/accumulo-slave/control
deleted file mode 100644
index 95080ad..0000000
--- a/assemble/deb/accumulo-slave/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-slave
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumullo-tserver, accumulo-logger
-Description: Sets a node to run as a slave node, with tserver and loggers
- This package sets up the node to run the tserver and logger processes
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-test/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-test/control b/assemble/deb/accumulo-test/control
deleted file mode 100644
index 96764f5..0000000
--- a/assemble/deb/accumulo-test/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-test
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo (=[[version]]), pssh, python
-Description: Testing code for running the various Accumulo tests
- This optional package contains tests which are used for validating Accumulo functionality
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo-tserver/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo-tserver/control b/assemble/deb/accumulo-tserver/control
deleted file mode 100644
index f717005..0000000
--- a/assemble/deb/accumulo-tserver/control
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo-tserver
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: accumulo-config
-Description: Sets a node to run as a tserver node
- This package sets up the node to run as a tserver process
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo/conffile
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo/conffile b/assemble/deb/accumulo/conffile
deleted file mode 100644
index 83769d3..0000000
--- a/assemble/deb/accumulo/conffile
+++ /dev/null
@@ -1,23 +0,0 @@
-# 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.
-
-/etc/accumulo/conf/accumulo-site.xml
-/etc/accumulo/conf/accumulo-env.sh
-/etc/accumulo/conf/slaves
-/etc/accumulo/conf/masters
-/etc/accumulo/conf/loggers
-/etc/accumulo/conf/accumulo-metrics.xml
-/etc/accumulo/conf/tracers
-/etc/accumulo/conf/gc
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo/control
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo/control b/assemble/deb/accumulo/control
deleted file mode 100644
index 7479484..0000000
--- a/assemble/deb/accumulo/control
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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.
-Source: Apache Accumulo
-Section: misc
-Priority: extra
-Maintainer: Apache Accumulo <de...@accumulo.apache.org>
-Homepage: http://accumulo.apache.org
-Package: accumulo
-Version: [[version]]
-Section: misc
-Architecture: all
-Depends: java6-runtime, hadoop, zookeeper, coreutils, ssh-server
-Recommends: accumulo-native
-Description: Accumulo is a large distributed structured store based on Google's BigTable design.
-Distribution: development
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo/postinst
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo/postinst b/assemble/deb/accumulo/postinst
deleted file mode 100644
index 6fa06bb..0000000
--- a/assemble/deb/accumulo/postinst
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# 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.
-
-# postinst script for Apache Accumulo
-ln -fs /usr/lib/accumulo/bin/accumulo /usr/bin/accumulo
-mkdir -p /etc/accumulo/conf
-mv -f /usr/lib/accumulo/conf/* /etc/accumulo/conf/
-rm -Rf /usr/lib/accumulo/conf
-ln -fs /etc/accumulo/conf /usr/lib/accumulo/conf
-mkdir -p /var/log/accumulo/logs
-mkdir -p /var/lib/accumulo/walogs
-ln -fs /var/log/accumulo/logs /usr/lib/accumulo/logs
-ln -fs /var/lib/accumulo/walogs /usr/lib/accumulo/walogs
-
-if [ -z "$JAVA_HOME" -o ! -f "$JAVA_HOME/jre/bin/" ] ; then
- JAVA_HOME=`readlink -f /usr/bin/java`
- JAVA_HOME=`dirname $JAVA_HOME`
- JAVA_HOME=`cd $JAVA_HOME/../../; pwd`
-fi
-if [ -z $ZOOKEEPER_HOME ]; then
- ZOOKEEPER_HOME="/usr/lib/zookeeper"
-fi
-if [ -z $HADOOP_HOME ]; then
- HADOOP_HOME="/usr/lib/hadoop"
-fi
-for files in `ls /etc/accumulo/conf/examples/*/*/accumulo-env.sh`; do
- sed -i -e "s:/path/to/java:$JAVA_HOME:" $files
- sed -i -e "s:/path/to/zookeeper:$ZOOKEEPER_HOME:" $files
- sed -i -e "s:/path/to/hadoop:$HADOOP_HOME:" $files
-done
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/deb/accumulo/postrm
----------------------------------------------------------------------
diff --git a/assemble/deb/accumulo/postrm b/assemble/deb/accumulo/postrm
deleted file mode 100644
index 089f615..0000000
--- a/assemble/deb/accumulo/postrm
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-#
-# 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.
-
-# postrm script for Apache Accumulo
-rm -f /usr/lib/accumulo/conf
-rm -f /usr/lib/accumulo/logs
-rm -f /usr/lib/accumulo/walogs
-case "$1" in
- purge)
- rm -Rf /var/log/accumulo
- rm -Rf /var/lib/accumulo
- rm -Rf /etc/accumulo
- ;;
- remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-rm -f /usr/bin/accumulo
-exit 0
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/pom.xml
----------------------------------------------------------------------
diff --git a/assemble/pom.xml b/assemble/pom.xml
index 23a2187..a293fb5 100644
--- a/assemble/pom.xml
+++ b/assemble/pom.xml
@@ -240,217 +240,6 @@
</build>
</profile>
<profile>
- <id>deb</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.vafer</groupId>
- <artifactId>jdeb</artifactId>
- <version>0.10</version>
- <inherited>false</inherited>
- <executions>
- <execution>
- <id>accumulo</id>
- <goals>
- <goal>jdeb</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <deb>${project.build.directory}/accumulo-${project.version}.deb</deb>
- <classifier>bin</classifier>
- <controlDir>assemble/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/**,native/**</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}/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}/LICENSE</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/**,src/**</excludes>
- </data>
- <data>
- <src>${accumulo-top}/proxy/README</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/proxy</prefix>
- </mapper>
- <includes>*.thrift</includes>
- </data>
- <data>
- <src>${accumulo-top}/proxy/proxy.properties</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/proxy</prefix>
- </mapper>
- <includes>*.thrift</includes>
- </data>
- <data>
- <src>${accumulo-top}/proxy/examples</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/proxy/examples</prefix>
- </mapper>
- <excludes>**/.svn/**</excludes>
- </data>
- <data>
- <src>${accumulo-top}/proxy/src/main/thrift</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/proxy/thrift</prefix>
- </mapper>
- <includes>*.thrift</includes>
- </data>
- <data>
- <src>${accumulo-top}/proxy/src/main/</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/proxy/thrift</prefix>
- </mapper>
- <includes>cpp/**,python/**,ruby/**</includes>
- </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}/examples/simple</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/examples/simple</prefix>
- </mapper>
- <includes>src/main/**</includes>
- <excludes>**/.svn/**</excludes>
- </data>
- <data>
- <src>${accumulo-top}/conf</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/conf</prefix>
- </mapper>
- <includes>accumulo.policy.example,examples/**</includes>
- <excludes>**/.svn/**</excludes>
- </data>
- </dataSet>
- </configuration>
- </execution>
- <execution>
- <id>accumulo-native</id>
- <goals>
- <goal>jdeb</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <deb>${project.build.directory}/accumulo-native-${project.version}.deb</deb>
- <controlDir>assemble/deb/accumulo-native</controlDir>
- <installDir>/usr/lib/accumulo</installDir>
- <classifier>native</classifier>
- <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/tserver/NativeMap.java</src>
- <type>file</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/server/src/main/java/org/apache/accumulo/tserver/NativeMap.java</prefix>
- </mapper>
- </data>
- </dataSet>
- </configuration>
- </execution>
- <execution>
- <id>accumulo-test</id>
- <goals>
- <goal>jdeb</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <deb>${project.build.directory}/accumulo-test-${project.version}.deb</deb>
- <controlDir>assemble/deb/accumulo-test</controlDir>
- <installDir>/usr/lib/accumulo</installDir>
- <classifier>test</classifier>
- <dataSet>
- <data>
- <src>${accumulo-top}/test</src>
- <type>directory</type>
- <mapper>
- <type>perm</type>
- <prefix>/usr/lib/accumulo/test</prefix>
- </mapper>
- <excludes>**/.svn/**,**/*.pyc,src/**,target/**,**/walkers.txt,**/ingesters.txt,**/continuous-env.sh,.*/**,**/*.pyc,**/*.pyo,pom.xml</excludes>
- </data>
- </dataSet>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
<id>docs</id>
<dependencies>
<dependency>
@@ -461,196 +250,5 @@
</dependency>
</dependencies>
</profile>
- <profile>
- <id>rpm</id>
- <dependencies>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-core</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-docs</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-examples-simple</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-fate</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-gc</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-init</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-master</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-monitor</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-native</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-proxy</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-server-base</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-start</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-trace</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-tracer</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- <dependency>
- <groupId>org.apache.accumulo</groupId>
- <artifactId>accumulo-tserver</artifactId>
- <classifier>el6</classifier>
- <type>rpm</type>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>accumulo-core = %{version}-%{release}</require>
- <require>accumulo-docs = %{version}-%{release}</require>
- <require>accumulo-examples-simple = %{version}-%{release}</require>
- <require>accumulo-proxy = %{version}-%{release}</require>
- <require>accumulo-gc = %{version}-%{release}</require>
- <require>accumulo-master = %{version}-%{release}</require>
- <require>accumulo-monitor = %{version}-%{release}</require>
- <require>accumulo-native = %{version}-%{release}</require>
- <require>accumulo-tracer = %{version}-%{release}</require>
- <require>accumulo-tserver = %{version}-%{release}</require>
- <require>accumulo-init = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_datadir}/accumulo-meta</directory>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-meta-rpm</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <version>${project.version}</version>
- <classifier>el6</classifier>
- <type>rpm</type>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/yum-repo</outputDirectory>
- <destFileName>${project.artifactId}-${project.version}.rpm</destFileName>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- <execution>
- <id>Copy RPMs</id>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <outputDirectory>${project.build.directory}/yum-repo</outputDirectory>
- <includeTypes>rpm</includeTypes>
- <stripClassifier>true</stripClassifier>
- <excludeTransitive>true</excludeTransitive>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>Create YUM repo</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <executable>createrepo</executable>
- <arguments>
- <argument>${project.build.directory}/yum-repo</argument>
- </arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/gc-only-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/gc-only-init.sh b/assemble/scripts/gc-only-init.sh
deleted file mode 100755
index 0771174..0000000
--- a/assemble/scripts/gc-only-init.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-if [ ! -f /etc/default/accumulo ]; then
- mkdir -p /etc/default
- touch /etc/default/accumulo
-fi
-
-if ! grep "ACCUMULO_USER=" /etc/default/accumulo >> /dev/null ; then
- echo "ACCUMULO_USER=accumulo" >> /etc/default/accumulo
-fi
-
-if ! id -u accumulo >/dev/null 2>&1; then
- groupArg="U"
- if egrep "^accumulo:" /etc/group >> /dev/null; then
- groupArg="g accumulo"
- fi
- useradd -$groupArg -d /usr/lib/accumulo accumulo
-fi
-
-install -m 0755 -o root -g root init.d/accumulo-gc /etc/init.d/
-
-if which update-rc.d >>/dev/null 2>&1; then
- update-rc.d accumulo-gc start 21 2 3 4 5 . stop 20 0 1 6 .
-elif which chkconfig >>/dev/null 2>&1; then
- chkconfig --add accumulo-gc
-else
- echo "No update-rc.d or chkconfig, rc levels not set for accumulo-gc"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/master-only-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/master-only-init.sh b/assemble/scripts/master-only-init.sh
deleted file mode 100755
index a11473f..0000000
--- a/assemble/scripts/master-only-init.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-if [ ! -f /etc/default/accumulo ]; then
- mkdir -p /etc/default
- touch /etc/default/accumulo
-fi
-
-if ! grep "ACCUMULO_USER=" /etc/default/accumulo >> /dev/null ; then
- echo "ACCUMULO_USER=accumulo" >> /etc/default/accumulo
-fi
-
-if ! id -u accumulo >/dev/null 2>&1; then
- groupArg="U"
- if egrep "^accumulo:" /etc/group >> /dev/null; then
- groupArg="g accumulo"
- fi
- useradd -$groupArg -d /usr/lib/accumulo accumulo
-fi
-
-install -m 0755 -o root -g root init.d/accumulo-master /etc/init.d/
-if which update-rc.d >>/dev/null 2>&1; then
- update-rc.d accumulo-master start 21 2 3 4 5 . stop 19 0 1 6 .
-elif which chkconfig >>/dev/null 2>&1; then
- chkconfig --add accumulo-master
-else
- echo "No update-rc.d or chkconfig, rc levels not set for accumulo-master"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/monitor-only-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/monitor-only-init.sh b/assemble/scripts/monitor-only-init.sh
deleted file mode 100755
index f18ae6a..0000000
--- a/assemble/scripts/monitor-only-init.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-if [ ! -f /etc/default/accumulo ]; then
- mkdir -p /etc/default
- touch /etc/default/accumulo
-fi
-
-if ! grep "ACCUMULO_MONITOR_USER=" /etc/default/accumulo >> /dev/null ; then
- echo "ACCUMULO_MONITOR_USER=accumulo_monitor" >> /etc/default/accumulo
-fi
-
-if ! id -u accumulo_monitor >/dev/null 2>&1; then
- if ! egrep "^accumulo:" /etc/group > /dev/null; then
- groupadd accumulo
- fi
- useradd -d /usr/lib/accumulo -g accumulo accumulo_monitor
-fi
-
-install -m 0755 -o root -g root init.d/accumulo-monitor /etc/init.d/
-if which update-rc.d >>/dev/null 2>&1; then
- update-rc.d accumulo-monitor start 21 2 3 4 5 . stop 20 0 1 6 .
-elif which chkconfig >>/dev/null 2>&1; then
- chkconfig --add accumulo-monitor
-else
- echo "No update-rc.d or chkconfig, rc levels not set for accumulo-monitor"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/stand-alone-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/stand-alone-init.sh b/assemble/scripts/stand-alone-init.sh
deleted file mode 100755
index fc69f17..0000000
--- a/assemble/scripts/stand-alone-init.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-./gc-only-init.sh
-./monitor-only-init.sh
-./tracer-only-init.sh
-./master-only-init.sh
-./tserver-only-init.sh
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/tracer-only-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/tracer-only-init.sh b/assemble/scripts/tracer-only-init.sh
deleted file mode 100755
index ada4cf0..0000000
--- a/assemble/scripts/tracer-only-init.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-if [ ! -f /etc/default/accumulo ]; then
- mkdir -p /etc/default
- touch /etc/default/accumulo
-fi
-
-if ! grep "ACCUMULO_TRACER_USER=" /etc/default/accumulo >> /dev/null ; then
- echo "ACCUMULO_TRACER_USER=accumulo_tracer" >> /etc/default/accumulo
-fi
-
-if ! id -u accumulo_tracer >/dev/null 2>&1; then
- if ! egrep "^accumulo:" /etc/group >> /dev/null; then
- groupadd accumulo
- fi
- useradd -d /usr/lib/accumulo -g accumulo accumulo_tracer
-fi
-
-install -m 0755 -o root -g root init.d/accumulo-tracer /etc/init.d/
-if which update-rc.d >>/dev/null 2>&1; then
- update-rc.d accumulo-tracer start 22 2 3 4 5 . stop 20 0 1 6 .
-elif which chkconfig >>/dev/null 2>&1; then
- chkconfig --add accumulo-tracer
-else
- echo "No update-rc.d or chkconfig, rc levels not set for accumulo-tracer"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/scripts/tserver-only-init.sh
----------------------------------------------------------------------
diff --git a/assemble/scripts/tserver-only-init.sh b/assemble/scripts/tserver-only-init.sh
deleted file mode 100755
index 79e67df..0000000
--- a/assemble/scripts/tserver-only-init.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/sh
-# 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.
-
-if [ $(id -ur) -ne 0 ]; then
- echo "This script must be run as root" 1>&2
- exit 1
-fi
-
-if [ ! -f /etc/default/accumulo ]; then
- mkdir -p /etc/default
- touch /etc/default/accumulo
-fi
-
-if ! grep "ACCUMULO_USER=" /etc/default/accumulo >> /dev/null ; then
- echo "ACCUMULO_USER=accumulo" >> /etc/default/accumulo
-fi
-
-if ! id -u accumulo >/dev/null 2>&1; then
- groupArg="U"
- if egrep "^accumulo:" /etc/group >> /dev/null; then
- groupArg="g accumulo"
- fi
- useradd -$groupArg -d /usr/lib/accumulo accumulo
-fi
-
-install -m 0755 -o root -g root init.d/accumulo-tserver /etc/init.d/
-if which update-rc.d >>/dev/null 2>&1; then
- update-rc.d accumulo-tserver start 21 2 3 4 5 . stop 15 0 1 6 .
-elif which chkconfig >>/dev/null 2>&1; then
- chkconfig --add accumulo-tserver
-else
- echo "No update-rc.d or chkconfig, rc levels not set for accumulo-tserver"
-fi
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/assemble/src/main/assemblies/component.xml
----------------------------------------------------------------------
diff --git a/assemble/src/main/assemblies/component.xml b/assemble/src/main/assemblies/component.xml
index 24515ea..3c3d9c1 100644
--- a/assemble/src/main/assemblies/component.xml
+++ b/assemble/src/main/assemblies/component.xml
@@ -36,8 +36,6 @@
</includes>
<excludes>
<exclude>${groupId}:${artifactId}-docs</exclude>
- <exclude>${groupId}:${artifactId}-*:rpm</exclude>
- <exclude>${groupId}:${artifactId}-*:deb</exclude>
</excludes>
</dependencySet>
<dependencySet>
@@ -226,36 +224,6 @@
</includes>
</fileSet>
<fileSet>
- <directory>scripts</directory>
- <directoryMode>0755</directoryMode>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>../server/gc/src/main/packaging/etc/init.d</directory>
- <outputDirectory>scripts/init.d</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>../server/master/src/main/packaging/etc/init.d</directory>
- <outputDirectory>scripts/init.d</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>../server/monitor/src/main/packaging/etc/init.d</directory>
- <outputDirectory>scripts/init.d</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>../server/tracer/src/main/packaging/etc/init.d</directory>
- <outputDirectory>scripts/init.d</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>../server/tserver/src/main/packaging/etc/init.d</directory>
- <outputDirectory>scripts/init.d</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
<directory>../</directory>
<fileMode>0644</fileMode>
<includes>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/bin/etc_initd_accumulo
----------------------------------------------------------------------
diff --git a/bin/etc_initd_accumulo b/bin/etc_initd_accumulo
deleted file mode 100755
index 31f9f66..0000000
--- a/bin/etc_initd_accumulo
+++ /dev/null
@@ -1,57 +0,0 @@
-#! /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
-
-# Assuming the file is symlinked in from the distro bin directory, the
-# following should assign ACCUMULO_HOME the value of the directory that is
-# the distro root.
-
-ACCUMULO_HOME=$(dirname $(dirname $(readlink -f $0)))
-
-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/a1814fc0/contrib/dotfile-rpmmacros
----------------------------------------------------------------------
diff --git a/contrib/dotfile-rpmmacros b/contrib/dotfile-rpmmacros
deleted file mode 100644
index 7145d67..0000000
--- a/contrib/dotfile-rpmmacros
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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.
-
-# Copying this to $HOME/.rpmmacros is a workaround to use gpg-agent
-# to sign RPMs, given http://jira.codehaus.org/browse/MRPM-139
-
-%__gpg_check_password_cmd /bin/true
-%__gpg_sign_cmd %{__gpg} gpg --batch --no-verbose --no-armor --use-agent --no-secmem-warning -sbo %{__signature_filename} %{__plaintext_filename}
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index ab77f46..dbb924d 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -236,166 +236,5 @@
</plugins>
</build>
</profile>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <copyright>ASL 2.0 and BSD</copyright>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>hadoop >= 1.0.4</require>
- <require>zookeeper >= 3.3.0</require>
- <require>accumulo-trace = %{version}-%{release}</require>
- <require>accumulo-fate = %{version}-%{release}</require>
- <require>accumulo-start = %{version}-%{release}</require>
- </requires>
- <preinstallScriptlet>
- <script>getent group accumulo >/dev/null || groupadd -r accumulo; getent passwd accumulo >/dev/null || useradd -r -g accumulo -d %{_datadir}/accumulo -s /bin/bash -c "Apache Accumulo" accumulo; exit 0</script>
- </preinstallScriptlet>
- <postinstallScriptlet>
- <script>sysctl -q -p %{_sysconfdir}/sysctl.d/accumulo; ln -s %{_sysconfdir}/accumulo %{_datadir}/accumulo/conf</script>
- </postinstallScriptlet>
- <preremoveScriptlet>
- <script>rm -f %{_datadir}/accumulo/conf</script>
- </preremoveScriptlet>
- <mappings>
- <mapping>
- <directory>%{_datadir}/accumulo</directory>
- <sources>
- <source>
- <location>../CHANGES</location>
- </source>
- <source>
- <location>../LICENSE</location>
- </source>
- <source>
- <location>../NOTICE</location>
- </source>
- <source>
- <location>../README</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- <mapping>
- <directory>%{_datadir}/accumulo/lib</directory>
- <dependency>
- <includes>
- <include>com.google.code.gson:gson</include>
- <include>org.apache.commons:commons-vfs2</include>
- <include>com.beust:jcommander</include>
- <include>com.google.guava:guava</include>
- <include>jline:jline</include>
- <include>org.apache.thrift:libthrift</include>
- </includes>
- <stripVersion>true</stripVersion>
- </dependency>
- </mapping>
- <mapping>
- <configuration>true</configuration>
- <directory>%{_sysconfdir}/accumulo</directory>
- <filemode>640</filemode>
- <username>accumulo</username>
- <sources>
- <source>
- <location>../conf</location>
- <includes>
- <include>*/**</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>%{_datadir}/accumulo/bin</directory>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>../bin</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <configuration>true</configuration>
- <directory>%{_sysconfdir}/sysctl.d</directory>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/packaging/etc/sysctl.d/accumulo</location>
- </source>
- </sources>
- </mapping>
- <mapping>
- <configuration>true</configuration>
- <directory>%{_sysconfdir}/security/limits.d</directory>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/packaging/etc/security/limits.d/50-accumulo.conf</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- <!--
- <execution>
- <id>build-tests-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <name>accumulo-test</name>
- <classifier>test</classifier>
- <provides>
- <provide>accumulo-test</provide>
- </provides>
- <requires>
- <require>accumulo</require>
- <require>python</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_datadir}/accumulo/test</directory>
- <sources>
- <source>
- <location>${accumulo-top}/test</location>
- <excludes>
- <exclude>src/**</exclude>
- <exclude>target/**</exclude>
- <exclude>**/walkers.txt</exclude>
- <exclude>**/ingesters.txt</exclude>
- <exclude>**/continuous-env.sh</exclude>
- <exclude>.*/**</exclude>
- <exclude>**/*.pyc</exclude>
- <exclude>**/*.pyo</exclude>
- <exclude>pom.xml</exclude>
- </excludes>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- -->
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/core/src/main/packaging/etc/security/limits.d/50-accumulo.conf
----------------------------------------------------------------------
diff --git a/core/src/main/packaging/etc/security/limits.d/50-accumulo.conf b/core/src/main/packaging/etc/security/limits.d/50-accumulo.conf
deleted file mode 100644
index be05006..0000000
--- a/core/src/main/packaging/etc/security/limits.d/50-accumulo.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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 - nofile 100000
-@accumulo - nproc 100000
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/core/src/main/packaging/etc/sysctl.d/accumulo
----------------------------------------------------------------------
diff --git a/core/src/main/packaging/etc/sysctl.d/accumulo b/core/src/main/packaging/etc/sysctl.d/accumulo
deleted file mode 100644
index f8f653b..0000000
--- a/core/src/main/packaging/etc/sysctl.d/accumulo
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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.
-
-vm.swappiness = 0
-vm.vfs_cache_pressure = 50
-vm.nr_hugepages = 0
-vm.dirty_background_ratio = 3
-vm.dirty_expire_centisecs = 1500
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/docs/pom.xml
----------------------------------------------------------------------
diff --git a/docs/pom.xml b/docs/pom.xml
index f7ad760..1518e31 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -123,49 +123,5 @@
</plugins>
</build>
</profile>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <provides>
- <provide>${project.artifactId} = %{version}-%{release}</provide>
- </provides>
- <requires>
- <require>accumulo-core = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_datadir}/accumulo/docs</directory>
- <sources>
- <source>
- <location>${project.build.directory}/accumulo_user_manual.pdf</location>
- </source>
- <source>
- <location>src/main/resources/</location>
- </source>
- <source>
- <location>${project.build.directory}/config.html</location>
- </source>
- </sources>
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/docs/src/main/resources/examples/README.dirlist
----------------------------------------------------------------------
diff --git a/docs/src/main/resources/examples/README.dirlist b/docs/src/main/resources/examples/README.dirlist
index eb129dd..50623c6 100644
--- a/docs/src/main/resources/examples/README.dirlist
+++ b/docs/src/main/resources/examples/README.dirlist
@@ -105,7 +105,7 @@ Here is an illustration of what data looks like in the data table:
row colf:colq [vis] value
274af6419a3c4c4a259260ac7017cbf1 refs:e77276a2b56e5c15b540eaae32b12c69\x00filext [exampleVis] README
274af6419a3c4c4a259260ac7017cbf1 refs:e77276a2b56e5c15b540eaae32b12c69\x00name [exampleVis] /local/Accumulo.README
- 274af6419a3c4c4a259260ac7017cbf1 ~chunk:\x00\x0FB@\x00\x00\x00\x00 [exampleVis] *******************************************************************************\x0A1. Building\x0A\x0AIn the normal tarball or RPM release of accumulo, [truncated]
+ 274af6419a3c4c4a259260ac7017cbf1 ~chunk:\x00\x0FB@\x00\x00\x00\x00 [exampleVis] *******************************************************************************\x0A1. Building\x0A\x0AIn the normal tarball release of accumulo, [truncated]
274af6419a3c4c4a259260ac7017cbf1 ~chunk:\x00\x0FB@\x00\x00\x00\x01 [exampleVis]
The rows are the md5 hash of the file. Some column family : column qualifier pairs are "refs" : hash of file name + null byte + property name, in which case the value is property value. There can be multiple references to the same file which are distinguished by the hash of the file name.
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/examples/simple/pom.xml
----------------------------------------------------------------------
diff --git a/examples/simple/pom.xml b/examples/simple/pom.xml
index a9c7e26..7930a54 100644
--- a/examples/simple/pom.xml
+++ b/examples/simple/pom.xml
@@ -102,38 +102,4 @@
</plugins>
</pluginManagement>
</build>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- <require>accumulo-core = %{version}-%{release}</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a1814fc0/fate/pom.xml
----------------------------------------------------------------------
diff --git a/fate/pom.xml b/fate/pom.xml
index 7026135..b339758 100644
--- a/fate/pom.xml
+++ b/fate/pom.xml
@@ -44,37 +44,4 @@
<scope>test</scope>
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>rpm</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>build-rpm</id>
- <goals>
- <goal>attached-rpm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <requires>
- <require>jre >= 1.6.0</require>
- </requires>
- <mappings>
- <mapping>
- <directory>%{_javadir}/accumulo</directory>
- <artifact />
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>