incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject svn commit: r1148501 [4/47] - in /incubator/bigtop: branches/ tags/ trunk/ trunk/docs/ trunk/src/ trunk/src/pkg/ trunk/src/pkg/common/ trunk/src/pkg/common/flume/ trunk/src/pkg/common/hadoop/ trunk/src/pkg/common/hadoop/conf.pseudo/ trunk/src/pkg/commo...
Date Tue, 19 Jul 2011 19:45:54 GMT
Added: incubator/bigtop/trunk/src/pkg/deb/flume/flume-node.init
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/flume-node.init?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/flume-node.init (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/flume-node.init Tue Jul 19 19:44:48 2011
@@ -0,0 +1,111 @@
+#!/bin/bash
+#
+# (c) Copyright 2010 Cloudera, Inc.
+#
+#   Licensed 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.
+#
+### BEGIN INIT INFO
+# Provides:             flume-node
+# Required-Start:       $local_fs $remote_fs $syslog $named $network $time
+# Required-Stop:        $local_fs $remote_fs $syslog $named $network
+# Default-Start:        2 3 4 5
+# Default-Stop:         0 1 6
+# Short-Description:    Cloudera Flume Node
+### END INIT INFO
+# Starts a Flume node
+#
+# description: Flume node
+
+
+export FLUME_HOME=/usr/lib/flume
+export FLUME_LOG_DIR=/var/log/flume
+export FLUME_RUN=/var/run/flume
+export FLUME_PID=${FLUME_RUN}/flume-flume-node.pid
+export DOTIME=3
+install -d -m 0755 -o flume -g flume ${FLUME_RUN}
+
+desc="Flume node daemon"
+
+
+# Checks if the given pid represents a live process.
+# Returns 0 if the pid is a live process, 1 otherwise
+flume_is_process_alive() {
+  local pid="$1"
+  ps -fp $pid | grep $pid | grep flume > /dev/null 2>&1
+}
+
+# Check if the process associated to a pidfile is running.
+# Return 0 if the pidfile exists and the process is running, 1 otherwise
+flume_check_pidfile() {
+  local pidfile="$1" # IN
+  local pid
+
+  pid=`cat "$pidfile" 2>/dev/null`
+  if [ "$pid" = '' ]; then
+    # The file probably does not exist or is empty.
+    return 1
+  fi
+
+  set -- $pid
+  pid="$1"
+
+  flume_is_process_alive $pid
+}
+
+
+start() {
+  echo -n $"Starting $desc (flume-node): "
+  su -s /bin/sh  flume -c '${FLUME_HOME}/bin/flume-daemon.sh start node'
+  echo
+}
+
+stop() {
+  echo -n $"Stopping $desc (flume-node): "
+  su -s /bin/sh  flume -c '${FLUME_HOME}/bin/flume-daemon.sh stop node'
+  [ $? -eq 0 ] && rm -f $FLUME_PID
+  echo
+}
+
+restart() {
+  stop
+  echo "Sleeping for ${DOTIME}"
+  sleep ${DOTIME}
+  start
+}
+
+case "$1" in
+  start)
+    start
+    ;;
+  stop)
+    stop
+    ;;
+  restart|force-reload)
+    restart
+    ;;
+  status)
+    echo -n "${desc} is "
+    if flume_check_pidfile $FLUME_PID ;  then
+      echo "running"
+      RETVAL=0
+    else
+      echo "not running."
+      RETVAL=3
+    fi
+    ;;
+  *)
+    echo $"Usage: $0 {start|stop|restart}"
+    exit 1
+esac
+
+exit $RETVAL

Added: incubator/bigtop/trunk/src/pkg/deb/flume/flume.docs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/flume.docs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/flume.docs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/flume.docs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,5 @@
+DEVNOTES
+NOTICE
+RELEASENOTES
+README
+LICENSE

Added: incubator/bigtop/trunk/src/pkg/deb/flume/flume.manpages
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/flume.manpages?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/flume.manpages (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/flume.manpages Tue Jul 19 19:44:48 2011
@@ -0,0 +1,4 @@
+docs/man/flume.1
+docs/man/flume-master.1
+docs/man/flume-node.1
+docs/man/flume-shell.1
\ No newline at end of file

Added: incubator/bigtop/trunk/src/pkg/deb/flume/flume.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/flume.postinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/flume.postinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/flume.postinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,22 @@
+#!/bin/sh
+# postinst script for flume
+
+set -e
+
+case "$1" in
+    configure)
+        # Install config alternatives
+        update-alternatives  --install /etc/flume/conf flume-conf /etc/flume/conf.empty 30
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#

Propchange: incubator/bigtop/trunk/src/pkg/deb/flume/flume.postinst
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/flume/flume.preinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/flume.preinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/flume.preinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/flume.preinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,47 @@
+#!/bin/sh
+# preinst script for flume
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+        if ! getent passwd flume >/dev/null; then
+                # Adding system user: flume .
+                adduser \
+                  --system \
+                  --group \
+                  --home /var/run/flume \
+                  --gecos "Flume User" \
+                  --shell /bin/false \
+                  flume >/dev/null
+        fi
+	install -d -m 0755 -o flume -g flume /var/run/flume
+	install -d -m 0755 -o flume -g flume /var/log/flume
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Propchange: incubator/bigtop/trunk/src/pkg/deb/flume/flume.preinst
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/flume/rules
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/flume/rules?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/flume/rules (added)
+++ incubator/bigtop/trunk/src/pkg/deb/flume/rules Tue Jul 19 19:44:48 2011
@@ -0,0 +1,68 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+build_version=${FLUME_VERSION}
+
+patch: patch-stamp
+patch-stamp:	
+	touch $@
+
+clean:	
+	dh_testdir
+	dh_testroot
+	rm -f *-stamp
+	dh_clean
+	rm -Rf debian/tmp debian/flume
+	find debian -name .\*swp -exec rm -f {} \;
+
+build-indep: build-indep-stamp
+build-indep-stamp: patch-stamp
+	# Temporarily disabled - we'll just use the build from the tarball.
+	ant -Dversion=$(build_version) -Divy.home=`pwd`/debian/.ivy tar
+	mkdir -p debian/tmp
+	tar cf - --exclude=debian/\* . | (cd debian/tmp && tar xf -)
+	touch $@
+
+install: install-indep
+install-indep:	
+	dh_testdir
+	dh_testroot
+#	ant package
+	sh -x debian/install_flume.sh \
+	  --build-dir=. \
+	  --prefix=debian/flume 
+	# Remove hadoop dependency and instead symlink in the hadoop jar
+	rm debian/flume/usr/lib/flume/lib/hadoop-core-*
+	ln -s /usr/lib/hadoop/hadoop-core.jar debian/flume/usr/lib/flume/lib/hadoop-core.jar
+	dh_install -i
+
+binary-common:	
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installinit
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary-arch:
+binary: binary-indep
+.PHONY: build clean binary-indep binary install-indep binary-arc

Propchange: incubator/bigtop/trunk/src/pkg/deb/flume/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/append_licenses.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/append_licenses.sh?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/append_licenses.sh (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/append_licenses.sh Tue Jul 19 19:44:48 2011
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# Copyright 2009 Cloudera, Inc.
+#
+# Debian prefers all license information to go in /usr/share/doc/copyright
+# rather than individual files in /usr/lib/hadoop. This script appends all
+# the licenses to the target file and removes the originals.
+
+set -e
+
+is_apache_2() {
+    head $1 | perl -n0 -e 'exit(!(m/Apache/ && m/Version 2\.0/))'
+}
+
+out_file=debian/hadoop/usr/share/doc/hadoop/copyright
+
+for license in `find debian/hadoop/usr/lib/hadoop/ -name \*LICENSE.txt` ; do
+    (echo
+     echo -------------
+     echo Included license: $(basename $license)
+     echo -------------
+     echo
+     # Check if it's apache 2.0, since lintian gets grumpy if you include
+     # the full text
+     if is_apache_2 $license ; then
+       echo 'Apache 2.0 License - see /usr/share/common-licenses/Apache-2.0'
+     else
+       cat $license
+     fi
+     ) >> $out_file
+    rm $license
+done

Propchange: incubator/bigtop/trunk/src/pkg/deb/hadoop/append_licenses.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/changelog
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/changelog?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/changelog (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/changelog Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+-- NOTE: this gets auto-generated
\ No newline at end of file

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/compat
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/compat?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/compat (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/compat Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+6

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/control
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/control?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/control (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/control Tue Jul 19 19:44:48 2011
@@ -0,0 +1,158 @@
+Source: hadoop
+Section: misc
+Priority: extra
+Maintainer: Todd Lipcon <todd@cloudera.com>
+Build-Depends: debhelper (>= 6), ant, ant-optional, liblzo2-dev, sun-java6-jdk, python, libz-dev,automake, autoconf (>= 2.61), sharutils, g++ (>= 4), git-core, libfuse-dev
+Standards-Version: 3.8.0
+Homepage: http://hadoop.apache.org/core/
+
+Package: hadoop
+Provides: hadoop
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, sun-java6-jre, sun-java6-bin
+Recommends: hadoop-native
+Description: A software platform for processing vast amounts of data
+ Hadoop is a software platform that lets one easily write and
+ run applications that process vast amounts of data.
+ .
+ Here's what makes Hadoop especially useful:
+  * Scalable: Hadoop can reliably store and process petabytes.
+  * Economical: It distributes the data and processing across clusters
+                of commonly available computers. These clusters can number
+                into the thousands of nodes.
+  * Efficient: By distributing the data, Hadoop can process it in parallel
+               on the nodes where the data is located. This makes it
+               extremely rapid.
+  * Reliable: Hadoop automatically maintains multiple copies of data and
+              automatically redeploys computing tasks based on failures.
+ .
+ Hadoop implements MapReduce, using the Hadoop Distributed File System (HDFS).
+ MapReduce divides applications into many small blocks of work. HDFS creates
+ multiple replicas of data blocks for reliability, placing them on compute
+ nodes around the cluster. MapReduce can then process the data where it is
+ located.
+
+Package: hadoop-native
+Provides: hadoop-native
+Architecture: i386 amd64
+Depends: ${shlibs:Depends}, hadoop (= ${source:Version}), liblzo2-2, libz1
+Enhances: hadoop
+Description: Native libraries for Hadoop (e.g., compression)
+ This optional package contains native libraries that increase the performance
+ of Hadoop's compression.
+
+#Package: hadoop-sbin
+#Provides: hadoop-sbin
+#Architecture: i386 amd64
+#Depends: ${shlibs:Depends}, hadoop (= ${source:Version})
+#Enhances: hadoop
+#Description: Server-side binaries necessary for secured Hadoop clusters
+# This package contains a setuid program, 'task-controller', which is used for
+# launching MapReduce tasks in a secured MapReduce cluster. This program allows
+# the tasks to run as the Unix user who submitted the job, rather than the
+# Unix user running the MapReduce daemons.
+# .
+# This package also contains 'jsvc', a daemon wrapper necessary to allow
+# DataNodes to bind to a low (privileged) port and then drop root privileges
+# before continuing operation.
+
+#Package: hadoop-fuse
+#Provides: hadoop-fuse
+#Architecture: i386 amd64
+#Depends: ${shlibs:Depends}, hadoop (= ${source:Version}), libfuse2, fuse-utils
+#Enhances: hadoop
+#Description: HDFS exposed over a Filesystem in Userspace
+# These projects (enumerated below) allow HDFS to be mounted (on most flavors 
+# of Unix) as a standard file system using the mount command. Once mounted, the
+#  user can operate on an instance of hdfs using standard Unix utilities such 
+# as 'ls', 'cd', 'cp', 'mkdir', 'find', 'grep', or use standard Posix libraries 
+# like open, write, read, close from C, C++, Python, Ruby, Perl, Java, bash, etc.
+
+Package: hadoop-doc
+Provides: hadoop-doc
+Architecture: all
+Section: doc
+Description: Documentation for Hadoop
+ This package contains the Java Documentation for Hadoop and its relevant
+ APIs.
+
+Package: hadoop-source
+Provides: hadoop-source
+Architecture: all
+Description: Source code for Hadoop
+ This package contains the source code for Hadoop and its contrib modules.
+
+Package: hadoop-conf-pseudo
+Provides: hadoop-conf-pseudo
+Architecture: all
+Depends: hadoop (= ${source:Version}), hadoop-namenode (= ${source:Version}), hadoop-datanode (= ${source:Version}), hadoop-secondarynamenode (= ${source:Version}), hadoop-jobtracker (= ${source:Version}), hadoop-tasktracker (= ${source:Version})
+Description: Pseudo-distributed Hadoop configuration
+ Contains configuration files for a "pseudo-distributed" Hadoop deployment.
+ In this mode, each of the hadoop components runs as a separate Java process,
+ but all on the same machine.
+
+Package: hadoop-tasktracker
+Provides: hadoop-tasktracker
+Architecture: all
+Depends: hadoop (= ${source:Version})
+Description: Task Tracker for Hadoop
+ The Task Tracker is the Hadoop service that accepts MapReduce tasks and
+ computes results. Each node in a Hadoop cluster that should be doing
+ computation should run a Task Tracker.
+
+Package: hadoop-jobtracker
+Provides: hadoop-jobtracker
+Architecture: all
+Depends: hadoop (= ${source:Version})
+Description: Job Tracker for Hadoop
+ The jobtracker is a central service which is responsible for managing
+ the tasktracker services running on all nodes in a Hadoop Cluster.
+ The jobtracker allocates work to the tasktracker nearest to the data
+ with an available work slot.
+
+Package: hadoop-namenode
+Provides: hadoop-namenode
+Architecture: all
+Depends: hadoop (= ${source:Version})
+Description: Name Node for Hadoop
+ The Hadoop Distributed Filesystem (HDFS) requires one unique server, the
+ namenode, which manages the block locations of files on the filesystem.
+
+Package: hadoop-secondarynamenode
+Provides: hadoop-secondarynamenode
+Architecture: all
+Depends: hadoop (= ${source:Version})
+Description: Secondary Name Node for Hadoop
+ The Secondary Name Node is responsible for checkpointing file system images.
+ It is _not_ a failover pair for the namenode, and may safely be run on the
+ same machine.
+
+Package: hadoop-datanode
+Provides: hadoop-datanode
+Architecture: all
+Depends: hadoop (= ${source:Version})
+Description: Data Node for Hadoop
+ The Data Nodes in the Hadoop Cluster are responsible for serving up
+ blocks of data over the network to Hadoop Distributed Filesystem
+ (HDFS) clients.
+
+Package: hadoop-pipes
+Provides: hadoop-pipes
+Architecture: any
+Depends: hadoop (= ${source:Version})
+Description: Interface to author Hadoop MapReduce jobs in C++
+ Contains Hadoop Pipes, a library which allows Hadoop MapReduce jobs to be
+ written in C++.
+
+Package: libhdfs0
+Architecture: any
+Depends: hadoop (= ${source:Version}), ${shlibs:Depends}
+Description: JNI Bindings to access Hadoop HDFS from C
+ See http://wiki.apache.org/hadoop/LibHDFS
+
+Package: libhdfs0-dev
+Architecture: any
+Section: libdevel
+Depends: hadoop (= ${source:Version}), libhdfs0 (= ${binary:Version})
+Description: Development support for libhdfs0
+ Includes examples and header files for accessing HDFS from C

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/copyright
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/copyright?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/copyright (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/copyright Tue Jul 19 19:44:48 2011
@@ -0,0 +1,15 @@
+This package was debianized by Todd Lipcon <todd@cloudera.com> on
+Tue, 24 Mar 2009 00:33:33 -0400.
+
+The upstream package is from <http://hadoop.apache.org/core>
+The Cloudera Distribution for Hadoop is from <http://cloudera.com/distribution>
+
+License:
+    Apache 2.0 - see /usr/share/common-licenses/Apache-2.0
+
+This Debian Package contains the Cloudera Distribution for Hadoop.
+This distribution is Copyright 2009, Cloudera, Inc. and is licensed under
+the Apache 2.0 License as above. See http://cloudera.com/distribution
+
+This product includes software developed by The Apache Software
+Foundation (http://www.apache.org/).

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+usr/bin

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/docs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/docs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/docs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/docs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,5 @@
+CHANGES.txt
+LICENSE.txt
+NOTICE.txt
+README.txt
+README.txt

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/etc/hadoop/conf.pseudo

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.lintian-overrides?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.lintian-overrides (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.lintian-overrides Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+hadoop-conf-pseudo: new-package-should-close-itp-bug

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.postinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.postinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.postinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,52 @@
+#!/bin/sh
+# postinst script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+        update-alternatives --install /etc/hadoop/conf hadoop-conf /etc/hadoop/conf.pseudo 30
+        if [ ! -e /etc/hadoop/conf ]; then 
+          ln -s /etc/hadoop/conf.pseudo /etc/hadoop/conf 
+        fi
+        nn_dfs_dir="/var/lib/hadoop/cache/hadoop/dfs"
+        if [ -z "$(ls -A $nn_dfs_dir/name 2>/dev/null)" ]; then
+            mkdir -p $nn_dfs_dir
+            chown hdfs:hadoop $nn_dfs_dir
+            su -s /bin/sh hdfs -c \
+             'hadoop --config /etc/hadoop/conf.pseudo namenode -format' 2>/dev/null 1>/dev/null || :
+        fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.prerm
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.prerm?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.prerm (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-conf-pseudo.prerm Tue Jul 19 19:44:48 2011
@@ -0,0 +1,42 @@
+#!/bin/sh
+# prerm script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        update-alternatives --remove hadoop-conf /etc/hadoop/conf.pseudo > /dev/null || exit 1
+        rm -f /etc/hadoop/conf
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/share/doc/hadoop-doc/

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+#DOCS#
+/usr/share/doc/hadoop-doc
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.lintian-overrides?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.lintian-overrides (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-doc.lintian-overrides Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+hadoop-doc: embedded-javascript-library usr/share/doc/hadoop-doc/cn/skin/prototype.js.gz
+hadoop-doc: embedded-javascript-library usr/share/doc/hadoop-doc/skin/prototype.js.gz
+hadoop-doc: new-package-should-close-itp-bug

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/lib/hadoop/contrib/fuse-dfs

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+/usr/bin/hadoop-fuse-dfs
+/usr/lib/hadoop/bin/fuse_dfs
+/usr/lib/hadoop/contrib/fuse-dfs

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.lintian-overrides?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.lintian-overrides (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.lintian-overrides Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+hadoop-fuse: new-package-should-close-itp-bug

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.manpages
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.manpages?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.manpages (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-fuse.manpages Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+debian/hadoop-fuse-dfs.1

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/lib/hadoop/lib/native/

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/lib/hadoop/lib/native

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.lintian-overrides?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.lintian-overrides (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-native.lintian-overrides Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+hadoop-native: new-package-should-close-itp-bug

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,2 @@
+/usr/lib
+/usr/include

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-pipes.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+/usr/lib/libhadooputils.a
+/usr/lib/libhadooppipes.a
+/usr/include/hadoop
\ No newline at end of file

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-source.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-source.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-source.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop-source.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/src/hadoop

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,8 @@
+/usr/lib/hadoop
+/var/log/hadoop
+/usr/bin
+/var/run/hadoop
+/var/lib/hadoop
+/var/lib/hadoop/cache/hadoop
+/etc/default
+/usr/share/doc/hadoop

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,5 @@
+/usr/bin
+/usr/lib/hadoop
+/etc/hadoop/conf.empty
+/etc/default
+/usr/share/doc/hadoop

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.lintian-overrides?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.lintian-overrides (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.lintian-overrides Tue Jul 19 19:44:48 2011
@@ -0,0 +1,7 @@
+hadoop: extra-license-file usr/lib/hadoop/LICENSE.txt
+hadoop: new-package-should-close-itp-bug
+hadoop: shell-script-fails-syntax-check ./usr/lib/hadoop/contrib/hod/bin/hod
+hadoop: shell-script-fails-syntax-check ./usr/lib/hadoop/contrib/hod/bin/hodcleanup
+hadoop: shell-script-fails-syntax-check ./usr/lib/hadoop/contrib/hod/bin/hodring
+hadoop: shell-script-fails-syntax-check ./usr/lib/hadoop/contrib/hod/bin/ringmaster
+hadoop: shell-script-fails-syntax-check ./usr/lib/hadoop/contrib/hod/support/logcondense.py

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.manpages
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.manpages?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.manpages (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.manpages Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+debian/hadoop.1

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.postinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.postinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.postinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,34 @@
+#!/bin/sh
+# postinst script for hadoop
+
+set -e
+
+case "$1" in
+    configure)
+	# We used to chown /usr/lib/hadoop here, but with security we don't want to do that -
+	# things like task-controller are very particular about ownership
+        chown -R root:hadoop /etc/hadoop
+	chgrp -R hadoop /var/log/hadoop /var/run/hadoop
+	chmod g+w /var/run/hadoop /var/log/hadoop 
+
+	# Change the ownership of old logs so that we don't fail rotation on next startup
+	find /var/log/hadoop/ | egrep 'jobtracker|tasktracker|userlogs|history' | xargs --no-run-if-empty chown mapred
+	find /var/log/hadoop/ | egrep 'namenode|datanode' | xargs --no-run-if-empty chown hdfs
+
+        # We don't want to do this recursively since we may be reinstalling, in which case
+        # users have their own cache/<username> directories which shouldn't be stolen
+        chown root:hadoop /var/lib/hadoop/ /var/lib/hadoop/cache/ /var/lib/hadoop/cache/hadoop/
+        chmod 1777 /var/lib/hadoop/cache/
+        update-alternatives --install /etc/hadoop/conf hadoop-conf /etc/hadoop/conf.empty 10
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.preinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.preinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.preinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.preinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,57 @@
+#!/bin/sh
+# preinst script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+        addgroup --system hadoop >/dev/null 2>/dev/null || :
+        if ! getent passwd hdfs >/dev/null; then
+            # Adding system user: hdfs.
+            adduser \
+                --system \
+                --group \
+                --home /usr/lib/hadoop \
+                --gecos "Hadoop HDFS" \
+                --shell /bin/bash \
+                hdfs >/dev/null 2>/dev/null || :
+            usermod --append --groups hadoop hdfs || :
+        fi
+        if ! getent passwd mapred >/dev/null; then
+            adduser \
+                --system \
+                --group \
+                --home /usr/lib/hadoop \
+                --gecos "Hadoop MapReduce" \
+                --shell /bin/bash \
+                mapred >/dev/null 2>/dev/null || :
+            usermod --append --groups hadoop mapred || :
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.prerm
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.prerm?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.prerm (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/hadoop.prerm Tue Jul 19 19:44:48 2011
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+      update-alternatives --remove hadoop-conf /etc/hadoop/conf.empty
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/install_init_scripts.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/install_init_scripts.sh?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/install_init_scripts.sh (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/install_init_scripts.sh Tue Jul 19 19:44:48 2011
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+MAJOR_VERSION=${HADOOP_VERSION}
+SRC_PKG=hadoop
+
+namenode_user=hdfs
+secondarynamenode_user=hdfs
+datanode_user=hdfs
+jobtracker_user=mapred
+tasktracker_user=mapred
+
+for node in namenode secondarynamenode jobtracker tasktracker datanode ; do
+    service_pkgdir=debian/$SRC_PKG-$node
+    debdir=$service_pkgdir/DEBIAN
+    template="debian/service-init.d.tpl"
+    user=$(eval "echo \$${node}_user")
+    mkdir -p $service_pkgdir/etc/init.d/ $debdir
+    sed -e "s|@HADOOP_DAEMON@|$node|" -e "s|@HADOOP_MAJOR_VERSION@|$MAJOR_VERSION|" \
+	-e "s|@DAEMON_USER@|$user|" \
+        $template > $service_pkgdir/etc/init.d/$SRC_PKG-$node
+    sed -e "s|@HADOOP_DAEMON@|$node|" -e "s|@HADOOP_MAJOR_VERSION@|$MAJOR_VERSION|" \
+	-e "s|@DAEMON_USER@|$user|" \
+        debian/service-postinst.tpl > $debdir/postinst
+    sed -e "s|@HADOOP_DAEMON@|$node|" -e "s|@HADOOP_MAJOR_VERSION@|$MAJOR_VERSION|" \
+	-e "s|@DAEMON_USER@|$user|" \
+        debian/service-postrm.tpl > $debdir/postrm
+    chmod 755 $service_pkgdir/etc/init.d/* $debdir/postinst $debdir/postrm
+
+    # We aren't making packages for debian itself, so override ITP lintian warnings
+    mkdir -p $service_pkgdir/usr/share/lintian/overrides
+    echo "$SRC_PKG-$node: new-package-should-close-itp-bug" > $service_pkgdir/usr/share/lintian/overrides/$SRC_PKG-$node
+
+done
+

Propchange: incubator/bigtop/trunk/src/pkg/deb/hadoop/install_init_scripts.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,2 @@
+/usr/include
+/usr/share/doc/libhdfs-devel/examples

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs-devel.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,4 @@
+/usr/include/hdfs*
+/usr/lib/libhdfs.la
+/usr/lib/libhdfs.so
+/usr/share/doc/libhdfs-devel

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/lib/

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/libhdfs.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/lib/libhdfs.so.*
\ No newline at end of file

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/rules
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/rules?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/rules (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/rules Tue Jul 19 19:44:48 2011
@@ -0,0 +1,127 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
+hadoop_version=${HADOOP_VERSION}
+hadoop_build_path=$(shell pwd)/build/hadoop-${hadoop_version}
+
+ifeq (${DEB_BUILD_ARCH},amd64)
+  native_dir=Linux-amd64-64
+endif
+ifeq (${DEB_BUILD_ARCH},i386)
+  native_dir=Linux-i386-32
+endif
+
+
+#Architecture
+build: build-stamp
+build-stamp:
+	dh_testdir
+	ant  \
+   -Dversion=${hadoop_version} \
+	-Divy.home=$(shell pwd)/build/ivy.home \
+	-Dcompile.native=true \
+	-Dhadoop.conf.dir=/etc/hadoop/conf \
+	-Dlibhdfs=1 -Dcompile.c++=true -Djdiff.build.dir=build/docs/jdiff-cloudera \
+	api-report bin-package compile-contrib
+	touch $@
+
+clean:  
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp build-stamp
+	ant clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	bash debian/install_hadoop.sh \
+	  --distro-dir=debian \
+	  --build-dir=${hadoop_build_path} \
+	  --src-dir=debian/tmp/usr/src/hadoop \
+	  --lib-dir=debian/tmp/usr/lib/hadoop \
+	  --etc-dir=debian/tmp/etc/hadoop \
+	  --prefix=debian/tmp \
+	  --doc-dir=debian/tmp/usr/share/doc/hadoop-doc \
+	  --example-dir=debian/tmp/usr/share/doc/hadoop/examples \
+	  --native-build-string=${native_dir} \
+	  --installed-lib-dir=debian/tmp/usr/lib/hadoop
+
+# Run dh_lintian if we've got it - this doesn't exist on debhelper 6 (eg Ubuntu Hardy)
+	(dh_lintian) || /bin/true
+
+
+install-indep:
+	mkdir -p debian/tmp/etc/default
+	cp debian/hadoop.default debian/tmp/etc/default/hadoop
+
+	dh_install --sourcedir=debian/tmp -i
+
+	rm -Rf debian/hadoop/usr/lib/hadoop/lib/native
+	rm -Rf debian/hadoop/usr/lib/hadoop/sbin
+
+	rm -Rf debian/hadoop/usr/lib/hadoop/bin/fuse_dfs 
+	rm -Rf debian/hadoop/usr/bin/hadoop-fuse-dfs
+	rm -Rf debian/hadoop/usr/lib/hadoop/contrib/fuse-dfs
+
+
+# Init scripts
+	sh -x  debian/install_init_scripts.sh
+
+install-arch:
+	dh_install --sourcedir=debian/tmp -s
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:  
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGES.txt -phadoop
+	dh_installdocs
+	sh debian/append_licenses.sh
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+#	dh_fixperms -Xtask-controller
+#	dh_perl
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build install install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install configure

Propchange: incubator/bigtop/trunk/src/pkg/deb/hadoop/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/service-init.d.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/service-init.d.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/service-init.d.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/service-init.d.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,229 @@
+#! /bin/sh
+#
+# skeleton  example file to build /etc/init.d/ scripts.
+#    This file should be used to construct scripts for /etc/init.d.
+#
+#    Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+#    Modified for Debian
+#    by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#               Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version:  @(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
+#
+### BEGIN INIT INFO
+# Provides:          hadoop-@HADOOP_DAEMON@
+# Required-Start:    $network $local_fs
+# Required-Stop:
+# Should-Start:      $named
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Hadoop @HADOOP_DAEMON@ daemon
+### END INIT INFO
+
+# Support ephemeral /var/run. We need to create this directory before
+# hadoop-config.sh is sourced below since it sets HADOOP_PID_DIR if
+# this directory exists.
+install -d -m 0775 -o root -g hadoop /var/run/hadoop
+
+# Include hadoop defaults if available
+if [ -f /etc/default/hadoop ] ; then
+  . /etc/default/hadoop
+fi
+
+. $HADOOP_HOME/bin/hadoop-config.sh
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON_SCRIPT=$HADOOP_HOME/bin/hadoop-daemon.sh
+NAME=hadoop-@HADOOP_DAEMON@
+DESC="Hadoop @HADOOP_DAEMON@ daemon"
+PID_FILE=$HADOOP_PID_DIR/hadoop-$HADOOP_IDENT_STRING-@HADOOP_DAEMON@.pid
+SLEEP_TIME=5
+
+test -x $DAEMON_SCRIPT || exit 1
+
+
+DODTIME=3                   # Time to wait for the server to die, in seconds
+                            # If this value is set too low you might not
+                            # let some servers to die gracefully and
+                            # 'restart' will not work
+
+# Checks if the given pid represents a live process.
+# Returns 0 if the pid is a live process, 1 otherwise
+hadoop_is_process_alive() {
+  local pid="$1" 
+  ps -fp $pid | grep $pid | grep @HADOOP_DAEMON@ > /dev/null 2>&1
+}
+
+# Check if the process associated to a pidfile is running.
+# Return 0 if the pidfile exists and the process is running, 1 otherwise
+hadoop_check_pidfile() {
+  local pidfile="$1" # IN
+  local pid
+
+  pid=`cat "$pidfile" 2>/dev/null`
+  if [ "$pid" = '' ]; then
+    # The file probably does not exist or is empty. 
+    return 1
+  fi
+  
+  set -- $pid
+  pid="$1"
+
+  hadoop_is_process_alive $pid
+}
+
+hadoop_process_kill() {
+   local pid="$1"    # IN
+   local signal="$2" # IN
+   local second
+
+   kill -$signal $pid 2>/dev/null
+
+   # Wait a bit to see if the dirty job has really been done
+   for second in 0 1 2 3 4 5 6 7 8 9 10; do
+      if hadoop_is_process_alive "$pid"; then
+         # Success
+         return 0
+      fi
+
+      sleep 1
+   done
+
+   # Timeout
+   return 1
+}
+
+# Kill the process associated to a pidfile
+hadoop_stop_pidfile() {
+   local pidfile="$1" # IN
+   local pid
+
+   pid=`cat "$pidfile" 2>/dev/null`
+   if [ "$pid" = '' ]; then
+      # The file probably does not exist or is empty. Success
+      return 0
+   fi
+   
+   set -- $pid
+   pid="$1"
+
+   # First try the easy way
+   if hadoop_process_kill "$pid" 15; then
+      return 0
+   fi
+
+   # Otherwise try the hard way
+   if hadoop_process_kill "$pid" 9; then
+      return 0
+   fi
+
+   return 1
+}
+
+start() {
+    $HADOOP_HOME/bin/hadoop-daemon.sh start @HADOOP_DAEMON@ $DAEMON_FLAGS
+
+    if [ "@HADOOP_DAEMON@" = "datanode" ]; then
+      # Some processes are slow to start
+      sleep $SLEEP_TIME
+    fi
+
+}
+stop() {
+    $HADOOP_HOME/bin/hadoop-daemon.sh stop @HADOOP_DAEMON@
+
+    if [ "@HADOOP_DAEMON@" = "datanode" ]; then
+      # Some processes are slow to stop
+      sleep $SLEEP_TIME
+    fi
+}
+
+check_for_root() {
+  if [ $(id -ur) -ne 0 ]; then
+    echo 'Error: root user required'
+    echo
+    exit 1
+  fi
+}
+
+hadoop_service() {
+    case "$1" in
+         start)
+            check_for_root
+            echo -n "Starting $DESC: "
+            start
+
+            if hadoop_check_pidfile $PID_FILE ; then
+                echo "$NAME."
+            else
+                echo "ERROR. Could not start $DESC"
+                exit 1
+            fi
+            ;;
+        stop)
+            check_for_root
+            echo -n "Stopping $DESC: "
+            stop
+
+            if hadoop_check_pidfile $PID_FILE ; then
+                echo "ERROR. Could not stop $DESC"
+                exit 1
+            else
+                echo "$NAME."
+            fi
+            ;;
+        force-stop)
+            check_for_root
+            echo -n "Forcefully stopping $DESC: "
+            hadoop_stop_pidfile $PID_FILE
+
+            if ! hadoop_check_pidfile $PID_FILE ; then
+                echo "$NAME."
+            else
+                echo "ERROR. Could not force stop $DESC"
+                exit 1
+            fi
+            ;;
+        force-reload)
+            check_for_root
+            echo -n "Forcefully reloading $DESC: "
+            hadoop_check_pidfile $PID_FILE && $0 restart
+            ;;
+        restart)
+            check_for_root
+            echo -n "Restarting $DESC: "
+            stop
+            [ -n "$DODTIME" ] && sleep $DODTIME
+            $0 start
+            ;;
+        status)
+            echo -n "$NAME is "
+            if hadoop_check_pidfile $PID_FILE ;  then
+                echo "running"
+            else
+                echo "not running."
+                exit 1
+            fi
+            ;;
+        *)
+            N=/etc/init.d/$NAME
+            if [ "@HADOOP_DAEMON@" = "namenode" ]; then
+              if [ "$1" = "upgrade" -o "$1" = "rollback" ]; then
+                DAEMON_FLAGS=-$1 $0 start
+                exit $?
+              else
+                echo "Usage: $N {start|stop|restart|force-reload|status|force-stop|upgrade|rollback}" >&2
+                exit 1
+              fi
+            else
+              echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+              exit 1
+            fi
+            ;;
+    esac
+}
+
+hadoop_service "$1"
+
+exit 0

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postinst.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postinst.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postinst.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postinst.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postinst script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+        update-rc.d hadoop-@HADOOP_DAEMON@ defaults >/dev/null || exit 1
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postrm.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postrm.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postrm.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/service-postrm.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postrm script for hadoop
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+        update-rc.d -f hadoop-@HADOOP_DAEMON@ remove > /dev/null || exit 1
+    ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/shlibs.local
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/shlibs.local?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hadoop/shlibs.local (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hadoop/shlibs.local Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+libjvm 1 sun-java6-bin (>= 6)

Added: incubator/bigtop/trunk/src/pkg/deb/hadoop/source.lintian-overrides
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hadoop/source.lintian-overrides?rev=1148501&view=auto
==============================================================================
    (empty)

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/compat
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/compat?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/compat (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/compat Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+6

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/control
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/control?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/control (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/control Tue Jul 19 19:44:48 2011
@@ -0,0 +1,42 @@
+Source: hadoop-hbase
+Section: misc
+Priority: extra
+Maintainer: Alex Newman <newalex@cloudera.com>
+Build-Depends: debhelper (>= 6), sun-java6-jdk, git-core, adduser
+Standards-Version: 3.8.0
+Homepage: http://hadoop.apache.org/hbase/
+
+Package: hadoop-hbase
+Architecture: all
+Depends: adduser, sun-java6-jre, hadoop-zookeeper (>= 3.3.1), hadoop
+Recommends: ntp
+Description: HBase is the Hadoop database
+ Use it when you need random, realtime read/write access to your Big Data. 
+ This project's goal is the hosting of very large tables -- billions of rows  
+ X millions of columns -- atop clusters of commodity hardware.
+
+Package: hadoop-hbase-doc
+Architecture: all
+Section: doc
+Description: Documentation for HBase
+ This package contains the HBase manual and JavaDoc.
+
+Package: hadoop-hbase-master
+Architecture: all
+Depends: hadoop-hbase (= ${source:Version}) 
+Description: HMaster is the "master server" for a HBase
+ There is only one HMaster for a single HBase deployment.
+
+Package: hadoop-hbase-regionserver
+Architecture: all
+Depends: hadoop-hbase (= ${source:Version}) 
+Description: HRegionServer makes a set of HRegions available to clients
+ It checks in with the HMaster. There are many HRegionServers in a single 
+ HBase deployment.
+
+Package: hadoop-hbase-thrift
+Architecture: all
+Depends: hadoop-hbase (= ${source:Version}) 
+Description: Provides an HBase Thrift service
+ This package provides a Thrift service interface to the HBase distributed
+ database.

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/copyright
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/copyright?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/copyright (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/copyright Tue Jul 19 19:44:48 2011
@@ -0,0 +1,15 @@
+This package was debianized by Alex Newman <newalex@cloudera.com> on
+Mon, 22 Feb 2010 23:07:14 -0800
+
+The upstream package is from <http://hadoop.apache.org/hbase>
+The Cloudera Distribution for Hadoop is from <http://cloudera.com/distribution>
+
+License:
+    Apache 2.0 - see /usr/share/common-licenses/Apache-2.0
+
+This Debian Package contains the Cloudera Distribution for Hadoop.
+This distribution is Copyright 2009, Cloudera, Inc. and is licensed under
+the Apache 2.0 License as above. See http://cloudera.com/distribution
+
+This product includes software developed by The Apache Software
+Foundation (http://www.apache.org/).

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/share/doc/hadoop-hbase-doc/

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase-doc.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+/usr/share/doc/hadoop-hbase-doc

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.default
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.default?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.default (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.default Tue Jul 19 19:44:48 2011
@@ -0,0 +1,2 @@
+export HADOOP_HOME=/usr/lib/hadoop
+export HBASE_HOME=/usr/lib/hbase

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.dirs
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.dirs?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.dirs (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.dirs Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+/usr/bin
+/var/log/hbase
+/etc/default

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.install?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.install (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.install Tue Jul 19 19:44:48 2011
@@ -0,0 +1,3 @@
+/usr/lib/hbase
+/usr/bin/hbase
+/etc/hbase

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.manpages
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.manpages?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.manpages (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.manpages Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+debian/hbase.1

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.postinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.postinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.postinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,28 @@
+#!/bin/sh
+# postinst script for hbase
+
+set -e
+
+case "$1" in
+	configure)
+		install -d -m 0755 -o hbase -g hbase /var/log/hbase
+		install -d -m 0755 -o hbase -g hbase /var/run/hbase
+		rm -f /usr/lib/hbase/logs || :
+		rm -f /usr/lib/hbase/pids || :
+
+		chown hbase:hbase -R /var/run/hbase /var/log/hbase
+		ln -s  /var/log/hbase /usr/lib/hbase/logs
+		ln -s  /var/run/hbase /usr/lib/hbase/pids
+
+	;;
+
+	abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+
+	*)
+		echo "postinst called with unknown argument \`$1'" >&2
+		exit 1
+	;;
+esac
+
+#DEBHELPER#

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.preinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.preinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.preinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.preinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,45 @@
+#!/bin/sh
+# preinst script for hbase
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+        if ! getent passwd hbase >/dev/null; then
+                # Adding system user: hbase.
+                adduser \
+                  --system \
+                  --group \
+                  --home /var/lib/hbase \
+                  --gecos "HBase User" \
+                  --shell /bin/bash \
+                  hbase >/dev/null
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.prerm
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.prerm?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.prerm (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/hadoop-hbase.prerm Tue Jul 19 19:44:48 2011
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for hbase
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+      unlink /usr/lib/hbase/logs
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/install_init_scripts.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/install_init_scripts.sh?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/install_init_scripts.sh (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/install_init_scripts.sh Tue Jul 19 19:44:48 2011
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+SRC_PKG=hadoop-hbase
+for node in master regionserver thrift ; do
+    service_pkgdir=debian/$SRC_PKG-$node
+    debdir=$service_pkgdir/DEBIAN
+    template="debian/service-init.d.tpl"
+
+    mkdir -p $service_pkgdir/etc/init.d/ $debdir
+    sed -e "s|@HBASE_DAEMON@|$node|" $template > $service_pkgdir/etc/init.d/$SRC_PKG-$node
+    sed -e "s|@HBASE_DAEMON@|$node|" debian/service-postinst.tpl > $debdir/postinst
+    sed -e "s|@HBASE_DAEMON@|$node|" debian/service-postrm.tpl > $debdir/postrm
+    echo /etc/init.d/$SRC_PKG-$node > $debdir/conffiles
+    chmod 755 $debdir/postinst $debdir/postrm $service_pkgdir/etc/init.d*
+
+    mkdir -p $service_pkgdir/usr/share/lintian/overrides
+    echo "$SRC_PKG-$node: new-package-should-close-itp-bug" > $service_pkgdir/usr/share/lintian/overrides/$SRC_PKG-$node
+
+done
+

Propchange: incubator/bigtop/trunk/src/pkg/deb/hbase/install_init_scripts.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/rules
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/rules?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/rules (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/rules Tue Jul 19 19:44:48 2011
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+patch: patch-stamp
+patch-stamp:	
+	touch $@
+
+clean:	
+	dh_testdir
+	dh_testroot
+	rm -f *-stamp
+	dh_clean
+	find debian -name .\*swp -exec rm -f {} \;
+
+build:
+	# This target doesn't do anything since the tarball already has the
+	# project built!
+	dh_testdir
+	
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	sh -x debian/install_hbase.sh \
+		--build-dir=. \
+		--doc-dir=usr/share/doc/hadoop-hbase-doc \
+		--prefix=debian/tmp
+	# Symlink in the dependency jars from their packages. Both of these packages
+	# provide an unversioned symlink foo.jar -> foo-0.1.2.jar.
+	rm debian/tmp/usr/lib/hbase/lib/zookeeper-*.jar
+	rm debian/tmp/usr/lib/hbase/lib/hadoop-*.jar
+	ln -s /usr/lib/zookeeper/zookeeper.jar debian/tmp/usr/lib/hbase/lib/zookeeper.jar
+	ln -s /usr/lib/hadoop/hadoop-core.jar debian/tmp/usr/lib/hbase/lib/hadoop-core.jar
+
+	# Wage war on "executable-not-elf-or-script" warnings:
+	### ruby scripts should not be executable - they require
+	### hbase org.jruby.Main <script>
+	find debian/tmp/usr/lib/hbase/bin debian/tmp/usr/lib/hbase/lib -name \*.rb -exec chmod 644 {} \;
+	### webapps should not be executable either
+	find debian/tmp/usr/lib/hbase/hbase-webapps -type f -exec chmod 644 {} \;
+
+	(dh_lintian) || /bin/true
+
+	touch $@
+
+install-indep:
+	dh_install --sourcedir=debian/tmp
+	sh debian/install_init_scripts.sh
+
+binary-common:	
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installinit --onlyscripts
+	# dh_installinit has a bug whereby it makes preinst/postinst files
+	# even for subpackages that don't have an init script!
+	rm -f debian/hadoop-hbase-doc*debhelper debian/hadoop-hbase.*debhelper || :
+
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep: build install install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary: binary-indep
+.PHONY: clean build binary-indep binary install configure

Propchange: incubator/bigtop/trunk/src/pkg/deb/hbase/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/service-init.d.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/service-init.d.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/service-init.d.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/service-init.d.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,196 @@
+#! /bin/bash
+#
+# skeleton  example file to build /etc/init.d/ scripts.
+#    This file should be used to construct scripts for /etc/init.d.
+#
+#    Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+#    Modified for Debian
+#    by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#               Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version:  @(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
+#
+### BEGIN INIT INFO
+# Provides:          hbase-@HBASE_DAEMON@
+# Required-Start:    $network $local_fs $remote_fs
+# Required-Stop:     $remote_fs
+# Should-Start:      $named
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Hadoop HBase @HBASE_DAEMON@ daemon
+### END INIT INFO
+
+set -e
+
+# Our default HBASE_HOME and HBASE_PID_DIR
+export HBASE_HOME=/usr/lib/hbase
+export HBASE_PID_DIR=/var/run/hbase
+
+# Include HBase defaults if available
+if [ -f /etc/default/hadoop-hbase ] ; then
+  . /etc/default/hadoop-hbase
+fi
+
+if [ -f /usr/lib/hbase/bin/hbase-config.sh ] ; then
+  . /usr/lib/hbase/bin/hbase-config.sh
+fi
+
+if [ -z "$HBASE_PID_DIR" -o -z "$HBASE_HOME" ]; then
+  echo No HBASE_HOME or HBASE_PID_DIR set.
+  exit 1
+fi
+
+
+install -d -m 0755 -o hbase -g hbase ${HBASE_PID_DIR}
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON_SCRIPT=$HBASE_HOME/bin/hbase-daemon.sh
+NAME=hbase-@HBASE_DAEMON@
+DESC="Hadoop HBase @HBASE_DAEMON@ daemon"
+PID_FILE=$HBASE_PID_DIR/hbase-hbase-@HBASE_DAEMON@.pid
+
+
+DODTIME=3                   # Time to wait for the server to die, in seconds
+                            # If this value is set too low you might not
+                            # let some servers to die gracefully and
+                            # 'restart' will not work
+
+# Checks if the given pid represents a live process.
+# Returns 0 if the pid is a live process, 1 otherwise
+hbase_is_process_alive() {
+  local pid="$1" 
+  ps -fp $pid | grep $pid | grep @HBASE_DAEMON@ > /dev/null 2>&1
+}
+
+# Check if the process associated to a pidfile is running.
+# Return 0 if the pidfile exists and the process is running, 1 otherwise
+hbase_check_pidfile() {
+  local pidfile="$1" # IN
+  local pid
+
+  pid=`cat "$pidfile" 2>/dev/null`
+  if [ "$pid" = '' ]; then
+    # The file probably does not exist or is empty. 
+    return 1
+  fi
+  
+  set -- $pid
+  pid="$1"
+
+  hbase_is_process_alive $pid
+}
+
+# Kill the process associated to a pidfile
+hbase_stop_pidfile() {
+   local pidfile="$1" # IN
+   local pid
+
+   pid=`cat "$pidfile" 2>/dev/null`
+   if [ "$pid" = '' ]; then
+      # The file probably does not exist or is empty. Success
+      return 0
+   fi
+   
+   set -- $pid
+   pid="$1"
+
+   # First try the easy way
+   if hbase_process_kill "$pid" 15; then
+      return 0
+   fi
+
+   # Otherwise try the hard way
+   if hbase_process_kill "$pid" 9; then
+      return 0
+   fi
+
+   return 1
+}
+
+hbase_process_kill() {
+    local pid="$1"    # IN
+    local signal="$2" # IN
+    local second
+
+    kill -$signal $pid 2>/dev/null
+
+   # Wait a bit to see if the dirty job has really been done
+    for second in 0 1 2 3 4 5 6 7 8 9 10; do
+        if hbase_is_process_alive "$pid"; then
+         # Success
+            return 0
+        fi
+
+        sleep 1
+    done
+
+   # Timeout
+    return 1
+}
+
+
+start() {
+    su -s /bin/sh hbase -c "$DAEMON_SCRIPT start @HBASE_DAEMON@"
+}
+stop() {
+    su -s /bin/sh hbase -c "$DAEMON_SCRIPT stop @HBASE_DAEMON@"
+}
+
+
+case "$1" in
+  start)
+        echo -n "Starting $DESC: "
+        start
+        if hbase_check_pidfile $PID_FILE ; then
+            echo "$NAME."
+        else
+            echo "ERROR."
+        fi
+  ;;
+  stop)
+        echo -n "Stopping $DESC: "
+        stop
+        if hbase_check_pidfile $PID_FILE ; then
+            echo 'ERROR'
+        else
+            echo "$NAME."
+        fi
+  ;;
+  force-stop)
+        echo -n "Forcefully stopping $DESC: "
+        hbase_stop_pidfile $PID_FILE
+        if hbase_check_pidfile $PID_FILE ; then
+            echo "$NAME."
+        else
+            echo " ERROR."
+        fi
+  ;;
+  force-reload)
+  # check wether $DAEMON is running. If so, restart
+        hbase_check_pidfile $PID_FILE && $0 restart
+  ;;
+  restart)
+        echo -n "Restarting $DESC: "
+        stop
+        [ -n "$DODTIME" ] && sleep $DODTIME
+        $0 start
+  ;;
+  status)
+    echo -n "$NAME is "
+    if hbase_check_pidfile $PID_FILE ;  then
+        echo "running"
+    else
+        echo "not running."
+        exit 1
+    fi
+    ;;
+  *)
+  N=/etc/init.d/$NAME
+  # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+  echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+  exit 1
+  ;;
+esac
+
+exit 0

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/service-postinst.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/service-postinst.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/service-postinst.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/service-postinst.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postinst script for hbase
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+        update-rc.d hadoop-hbase-@HBASE_DAEMON@ defaults >/dev/null || exit 1
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hbase/service-postrm.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hbase/service-postrm.tpl?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hbase/service-postrm.tpl (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hbase/service-postrm.tpl Tue Jul 19 19:44:48 2011
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postrm script for hbase
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+        update-rc.d -f hadoop-hbase-@HBASE_DAEMON@ remove > /dev/null || exit 1
+    ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
+

Added: incubator/bigtop/trunk/src/pkg/deb/hive/changelog
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/changelog?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/changelog (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/changelog Tue Jul 19 19:44:48 2011
@@ -0,0 +1,17 @@
+hive (0.3.0-0cloudera0.3.0) cloudera; urgency=low
+
+  * New upstream
+
+ -- Todd Lipcon <todd@cloudera.com>  Thu, 04 Jun 2009 15:42:42 -0700
+
+hive (0.3~svn759018-0cloudera0.3.0) cloudera; urgency=low
+
+  * New upstream
+
+ --  <todd@cloudera.com>  Mon, 06 Apr 2009 04:24:57 +0000
+
+hive (0~svn748058-0cloudera0.3.0) cloudera; urgency=low
+
+  * Initial release
+
+ -- Todd Lipcon <todd@cloudera.com>  Thu, 02 Apr 2009 23:36:13 -0400

Added: incubator/bigtop/trunk/src/pkg/deb/hive/compat
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/compat?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/compat (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/compat Tue Jul 19 19:44:48 2011
@@ -0,0 +1 @@
+6
\ No newline at end of file

Added: incubator/bigtop/trunk/src/pkg/deb/hive/control
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/control?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/control (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/control Tue Jul 19 19:44:48 2011
@@ -0,0 +1,43 @@
+Source: hadoop-hive
+Section: misc
+Priority: extra
+Maintainer: Todd Lipcon <todd@cloudera.com>
+Build-Depends: debhelper (>= 6), ant, sun-java6-jdk, python-support, git-core
+Standards-Version: 3.8.0
+Homepage: http://hadoop.apache.org/hive/
+
+Package: hadoop-hive
+Architecture: all
+Depends: adduser, sun-java6-jre, hadoop
+Description: A data warehouse infrastructure built on top of Hadoop
+ Hive is a data warehouse infrastructure built on top of Hadoop that
+ provides tools to enable easy data summarization, adhoc querying and
+ analysis of large datasets data stored in Hadoop files. It provides a
+ mechanism to put structure on this data and it also provides a simple
+ query language called Hive QL which is based on SQL and which enables
+ users familiar with SQL to query this data. At the same time, this
+ language also allows traditional map/reduce programmers to be able to
+ plug in their custom mappers and reducers to do more sophisticated
+ analysis which may not be supported by the built-in capabilities of
+ the language.
+
+Package: python-hive
+Architecture: all
+Section: python
+Depends: ${python:Depends}
+Provides: ${python:Provides}
+XS-Python-Version: >= 2.4
+Description: Python client library to talk to the Hive Metastore
+ This is a generated Thrift client to talk to the Hive Metastore.
+
+Package: hadoop-hive-server
+Architecture: all
+Depends: hadoop-hive (= ${source:Version})
+Description: Provides a Hive Thrift service
+ This optional package hosts a Thrift server for Hive clients across a network to use.
+
+Package: hadoop-hive-metastore
+Architecture: all
+Depends: hadoop-hive (= ${source:Version})
+Description: Shared metadata repository for Hive
+ This optional package hosts a metadata server for Hive clients across a network to use.

Added: incubator/bigtop/trunk/src/pkg/deb/hive/copyright
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/copyright?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/copyright (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/copyright Tue Jul 19 19:44:48 2011
@@ -0,0 +1,15 @@
+This package was debianized by Todd Lipcon <todd@cloudera.com> on
+Tue, 24 Mar 2009 00:33:33 -0400.
+
+The upstream package is from <http://hadoop.apache.org/hive>
+The Cloudera Distribution for Hadoop is from <http://cloudera.com/distribution>
+
+License:
+    Apache 2.0 - see /usr/share/common-licenses/Apache-2.0
+
+This Debian Package contains the Cloudera Distribution for Hadoop.
+This distribution is Copyright 2009, Cloudera, Inc. and is licensed under
+the Apache 2.0 License as above. See http://cloudera.com/distribution
+
+This product includes software developed by The Apache Software
+Foundation (http://www.apache.org/).

Added: incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.default
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.default?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.default (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.default Tue Jul 19 19:44:48 2011
@@ -0,0 +1,5 @@
+# The port for Hive @HIVE_DAEMON@ daemon to listen to.
+# Unfortunatelly, there is no way to specify the interfaces 
+# to which the daemon binds.
+#
+# PORT=12345

Added: incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.postinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.postinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.postinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postinst script for hive
+
+set -e
+
+case "$1" in
+    configure)
+        # Install config alternatives
+        update-alternatives  --install /etc/hive/conf hive-conf /etc/hive/conf.dist 30
+
+        # Set up directories on HDFS
+        # TODO(todd) should this stuff be something like "hive create-warehosue"?
+        su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -mkdir       /tmp' 1>/dev/null 2>/dev/null || :
+        su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -mkdir       /user/hive/warehouse' 1>/dev/null 2>/dev/null || :
+        su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -chmod g+w   /tmp' 1>/dev/null 2>/dev/null || :
+        su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -chmod g+w   /user/hive/warehouse' 1>/dev/null 2>/dev/null || :
+
+        # Ensure sticky bit on metastore dir - debian likes this to be done in postinst rather than the package
+        chmod 1777 /var/lib/hive/metastore
+
+        if [ "$2" ]; then
+          old_metastore="/var/lib/hive/metastore/\${user.name}_db"
+          new_metastore="/var/lib/hive/metastore/metastore_db"
+          if [ -d $old_metastore ]; then
+            mv $old_metastore $new_metastore || echo "Failed to automatically rename old metastore. Make sure to resolve this before running Hive."
+          fi
+        fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#

Added: incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.preinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.preinst?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.preinst (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.preinst Tue Jul 19 19:44:48 2011
@@ -0,0 +1,40 @@
+#!/bin/sh
+# preinst script for hive
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    install|upgrade)
+        if ! getent passwd hive >/dev/null; then
+                # Adding system user: hive.
+                adduser \
+                  --system \
+                  --group \
+                  --home /var/lib/hive \
+                  --gecos "Hive User" \
+                  --shell /bin/false \
+                  hive >/dev/null
+        fi
+
+        install -d -m 0755 -o hive -g hive /var/log/hive
+        install -d -m 0755 -o hive -g hive /var/run/hive
+
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.prerm
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.prerm?rev=1148501&view=auto
==============================================================================
--- incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.prerm (added)
+++ incubator/bigtop/trunk/src/pkg/deb/hive/hadoop-hive.prerm Tue Jul 19 19:44:48 2011
@@ -0,0 +1,30 @@
+#!/bin/sh
+# prerm script for hive
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    remove|upgrade|deconfigure)
+      rmdir /var/log/hive 2>/dev/null || :
+      rmdir /var/run/hive 2>/dev/null || :
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+



Mime
View raw message