ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1174242 [9/9] - in /incubator/ambari/trunk: ./ agent/ agent/bin/ agent/conf/ agent/src/ agent/src/main/ agent/src/main/python/ agent/src/main/python/ambari_agent/ agent/src/main/python/ambari_torrent/ agent/src/main/python/ambari_torrent/h...
Date Thu, 22 Sep 2011 16:14:02 GMT
Added: incubator/ambari/trunk/controller/src/main/webapps/status-nodes.html
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/webapps/status-nodes.html?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/controller/src/main/webapps/status-nodes.html (added)
+++ incubator/ambari/trunk/controller/src/main/webapps/status-nodes.html Thu Sep 22 16:13:55 2011
@@ -0,0 +1,127 @@
+<!DOCTYPE HTML>
+<html>
+  <body>
+    <section>
+      <h3>Node list <span id="id"></span></h3>
+      <form class="form">
+        <table id="form" class="display">
+          <thead>
+            <th width="200px">Role</th><th>Host(s)</th>
+          </thead>
+        <tbody></tbody>
+        </table>
+        <p>
+        <button type="button" id="save" onclick="return verifyNodesList()">Save</button>
+        <button type="submit" id="delete" onclick="return confirmDelete()" value="delete">Delete</button>
+        <button id="cancel" onclick="javascript:window.location='/';">Cancel</button>
+        </p>
+      </form>
+    </section>
+    <script type="text/javascript">
+      var roles = [ "namenode", "secondary-namenode", "datanode", "jobtracker", "tasktracker", "gateway", "jobhistory-server" ];
+      var labelError = "What is the node list name?";
+      var hostError = "Role can not be empty.";
+      function addRole(type, hosts) {
+        var buffer = [];
+        var i = 0;
+        var role = "<input type='hidden' id='role."+type+".name' value='"+type+"'>"+type;
+        buffer[i++]=role;
+        var host = "";
+        if(hosts.constructor.toString().indexOf("Array") == -1) {
+          host = "<textarea id='role."+type+".host' class='formInput textBox'>"+hosts+"</textarea>";
+        } else {
+          host = "<textarea id='role."+type+".host' class='formInput textBox'>"+hosts.join("\n")+"</textarea>";
+        }
+        buffer[i++]=host;
+        return buffer;
+      }
+
+      function verifyNodesList() {
+        var invalid = false;
+        for(type in roles) {
+          var control = document.getElementById('role.'+roles[type]+'.host');
+          if((control.value == "") || (control.value == hostError)) {
+            control.value = hostError;
+            control.select();
+            control.focus();
+            invalid = true;
+          }
+        }
+        if(!invalid) {
+          saveNodesList();
+        }        
+        return false;
+      }
+
+      function saveNodesList() {
+        var data = [];
+        var i = 0;
+        var url = $.getUrlVar("list");
+        data[i++] = '{"@url":"'+url+'", "roles":[';
+        var list = [];
+        var j = 0;
+        for(type in roles) {
+          var tmp = document.getElementById('role.'+roles[type]+'.host').value;
+          tmp = jQuery.trim(tmp);
+          var hosts = tmp.replace(new RegExp("\\n","g") ,'","');
+          var role = '{"@name":"' + roles[type] + '","host":["' + hosts + '"]}';
+          list[j++] = role;
+        }
+        data[i++] = list.join(',');
+        data[i++] = ']}';
+        $.ajax({
+          type: 'PUT',
+          url: '/v1/nodes/manifest',
+          contentType: "application/json; charset=utf-8",
+          data: data.join(""),
+          success: function(data) {
+            var url = '/?func=list-nodes';
+            window.location.href = url;
+          },
+          dataType:'json'
+        });
+      }
+
+      function deleteNodesList(url) {
+        $.ajax({
+          type: 'DELETE',
+          url: url,
+          success: function(data) {
+            window.location.href = '/?func=list-nodes';
+          },
+          error: function(xhr, textStatus, errorThrown) {
+            alert(textStatus);
+          }
+        });
+      }
+
+      function confirmDelete() {
+        var question = "Delete node list "+$.getUrlVar('list')+"?";
+        if(confirm(question)) {
+          deleteNodesList($.getUrlVar('list'));
+          return false;
+        } else {
+          return false;
+        }
+      }
+
+      $(document).ready(function() {
+        var url = $.getUrlVar("list");
+        $("id").text(url);
+        $("#navigation").load("/nav.html");
+        $('#form').dataTable({
+          "bJQueryUI": true, 
+          "sPaginationType": "full_numbers",
+          "sDom": '<"H"if>rt<"F"p>'
+        });
+        jQuery.getJSON(url,
+          function(data) {
+            for(var list in data["roles"]) {
+              $('#form').dataTable().fnAddData(addRole(data["roles"][list]["@name"], data["roles"][list]["host"]));
+            }
+          }
+        );
+      });
+    </script>
+  </body>
+</html>

Added: incubator/ambari/trunk/controller/src/packages/build.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/packages/build.xml?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/controller/src/packages/build.xml (added)
+++ incubator/ambari/trunk/controller/src/packages/build.xml Thu Sep 22 16:13:55 2011
@@ -0,0 +1,149 @@
+<?xml version="1.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.
+-->
+
+<project name="hms controller packaging">
+  <target name="package-deb">
+    <taskdef name="deb"
+           classname="org.vafer.jdeb.ant.DebAntTask">
+    </taskdef>
+    <mkdir dir="${project.build.directory}/deb/hms-controller.control" />
+    <copy todir="${project.build.directory}/deb/hms-controller.control">
+      <fileset dir="${basedir}/src/packages/deb/hms-controller.control">
+        <exclude name="control" />
+      </fileset>
+    </copy>
+    <copy file="src/packages/deb/hms-controller.control/control" todir="${basedir}/target/deb/hms-controller.control">
+      <filterchain>
+        <replacetokens>
+          <token key="version" value="${package.version}" />
+        </replacetokens>
+      </filterchain>
+    </copy>
+    <deb destfile="${project.build.directory}/${artifactId}_${package.version}-${package.release}_${os.arch}.deb" control="${basedir}/target/deb/hms-controller.control">
+      <data src="${project.build.directory}/${final.name}.tar.gz">
+        <mapper type="prefix" strip="1" prefix="${package.prefix}/share/hms" />
+        <exclude name="${final.name}/conf" />
+        <exclude name="${final.name}/conf/*" />
+        <exclude name="${final.name}/lib/zookeeper*" />
+        <exclude name="${final.name}/lib/hadoop-core*" />
+        <include name="**" />
+      </data>
+      <tarfileset dir="${basedir}/src/packages" filemode="755" prefix="${package.prefix}/share/hms/sbin">
+        <exclude name=".svn" />
+        <include name="*.sh" />
+      </tarfileset>
+      <tarfileset dir="${basedir}/src/packages/deb/init.d" filemode="755" prefix="${package.prefix}/share/hms/sbin">
+        <exclude name=".svn" />
+        <include name="**" />
+      </tarfileset>
+      <tarfileset dir="${basedir}/conf" filemode="644" prefix="${package.conf.dir}">
+        <exclude name="hms-site.xml" />
+        <exclude name=".svn" />
+        <include name="**" />
+      </tarfileset>
+    </deb>
+  </target>
+
+  <target name="package-conf-pseudo-deb">
+    <taskdef name="deb"
+           classname="org.vafer.jdeb.ant.DebAntTask">
+    </taskdef>
+    <mkdir dir="${project.build.directory}/deb/conf-pseudo.control" />
+    <copy todir="${project.build.directory}/deb/conf-pseudo.control">
+      <fileset dir="${basedir}/src/packages/deb/conf-pseudo.control">
+        <exclude name="control" />
+      </fileset>
+    </copy>
+    <copy file="src/packages/deb/conf-pseudo.control/control" todir="${basedir}/target/deb/conf-pseudo.control">
+      <filterchain>
+        <replacetokens>
+          <token key="version" value="${package.version}" />
+        </replacetokens>
+      </filterchain>
+    </copy>
+    <deb destfile="${project.build.directory}/${artifactId}-conf-pseudo_${package.version}-${package.release}_${os.arch}.deb" control="${basedir}/target/deb/conf-pseudo.control">
+      <tarfileset dir="${basedir}/src/packages/conf-pseudo" filemode="644" prefix="${package.conf.dir}">
+        <exclude name=".svn" />
+        <include name="**" />
+      </tarfileset>
+    </deb>
+  </target>
+
+  <target name="package-rpm">
+    <delete dir="${project.build.directory}/rpm/hms/buildroot" />
+    <mkdir dir="${project.build.directory}/rpm/hms/SOURCES" />
+    <mkdir dir="${project.build.directory}/rpm/hms/BUILD" />
+    <mkdir dir="${project.build.directory}/rpm/hms/RPMS" />
+    <mkdir dir="${project.build.directory}/rpm/hms/buildroot" />
+    <copy file="${project.build.directory}/${final.name}.tar.gz" todir="${project.build.directory}/rpm/hms/SOURCES" />
+    <copy file="src/packages/rpm/spec/hms-controller.spec" todir="target/rpm/hms/SPECS">
+      <filterchain>
+        <replacetokens>
+          <token key="final.name" value="${final.name}" />
+          <token key="version" value="${package.version}" />
+          <token key="package.name" value="${final.name}.tar.gz" />
+          <token key="package.release" value="${package.release}" />
+          <token key="package.build.dir" value="${project.build.directory}/rpm/hms/BUILD" />
+          <token key="package.prefix" value="${package.prefix}" />
+          <token key="package.conf.dir" value="${package.conf.dir}" />
+          <token key="package.log.dir" value="${package.log.dir}" />
+          <token key="package.pid.dir" value="${package.pid.dir}" />
+        </replacetokens>
+      </filterchain>
+    </copy>
+    <rpm specFile="hms-controller.spec" command="-bb" topDir="${project.build.directory}/rpm/hms" cleanBuildDir="true" failOnError="true"/>
+    <copy todir="${project.build.directory}" flatten="true">
+      <fileset dir="${project.build.directory}/rpm/hms/RPMS">
+        <include name="**/*.rpm" />
+      </fileset>
+    </copy>
+    <delete dir="${project.build.directory}/rpm" />
+  </target>
+
+  <target name="package-conf-pseudo-rpm">
+    <delete dir="${project.build.directory}/rpm/hms/buildroot" />
+    <mkdir dir="${project.build.directory}/rpm/hms/SOURCES" />
+    <mkdir dir="${project.build.directory}/rpm/hms/BUILD" />
+    <mkdir dir="${project.build.directory}/rpm/hms/RPMS" />
+    <mkdir dir="${project.build.directory}/rpm/hms/buildroot" />
+    <copy file="${project.build.directory}/${final.name}.tar.gz" todir="${project.build.directory}/rpm/hms/SOURCES" />
+    <copy file="src/packages/rpm/spec/conf-pseudo.spec" todir="target/rpm/hms/SPECS">
+      <filterchain>
+        <replacetokens>
+          <token key="final.name" value="${final.name}" />
+          <token key="version" value="${package.version}" />
+          <token key="package.name" value="${final.name}.tar.gz" />
+          <token key="package.release" value="${package.release}" />
+          <token key="package.build.dir" value="${project.build.directory}/rpm/hms/BUILD" />
+          <token key="package.prefix" value="${package.prefix}" />
+          <token key="package.conf.dir" value="${package.conf.dir}" />
+          <token key="package.log.dir" value="${package.log.dir}" />
+          <token key="package.pid.dir" value="${package.pid.dir}" />
+        </replacetokens>
+      </filterchain>
+    </copy>
+    <rpm specFile="conf-pseudo.spec" command="-bb" topDir="${project.build.directory}/rpm/hms" cleanBuildDir="true" failOnError="true"/>
+    <copy todir="${project.build.directory}" flatten="true">
+      <fileset dir="${project.build.directory}/rpm/hms/RPMS">
+        <include name="**/*.rpm" />
+      </fileset>
+    </copy>
+    <delete dir="${project.build.directory}/rpm" />
+  </target>
+</project>

Added: incubator/ambari/trunk/controller/src/packages/tarball/all.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/packages/tarball/all.xml?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/controller/src/packages/tarball/all.xml (added)
+++ incubator/ambari/trunk/controller/src/packages/tarball/all.xml Thu Sep 22 16:13:55 2011
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd">
+  <!--This 'all' id is not appended to the produced bundle because we do this:
+    http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers
+  -->
+  <formats>
+    <format>tar.gz</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <includes>
+        <include>${basedir}/*.txt</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <includes>
+        <include>pom.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>src</directory>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/webapps</directory>
+      <outputDirectory>webapps</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/resources</directory>
+      <outputDirectory>var/run</outputDirectory>
+      <directoryMode>0755</directoryMode>
+      <excludes>
+        <exclude>*</exclude>
+      </excludes>
+    </fileSet>
+    <fileSet>
+      <directory>conf</directory>
+    </fileSet>
+    <fileSet>
+      <directory>../client/bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <fileMode>755</fileMode>
+    </fileSet>
+    <fileSet>
+      <directory>target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+          <include>${artifactId}-${project.version}.jar</include>
+          <include>${artifactId}-${project.version}-tests.jar</include>
+          <include>VERSION</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>target/site</directory>
+      <outputDirectory>docs</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>src/packages</directory>
+      <outputDirectory>sbin</outputDirectory>
+      <fileMode>755</fileMode>
+      <includes>
+          <include>update-hms-${artifactId}-env.sh</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Propchange: incubator/ambari/trunk/controller/src/packages/tarball/all.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/ambari/trunk/controller/src/packages/update-hms-controller-env.sh
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/packages/update-hms-controller-env.sh?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/controller/src/packages/update-hms-controller-env.sh (added)
+++ incubator/ambari/trunk/controller/src/packages/update-hms-controller-env.sh Thu Sep 22 16:13:55 2011
@@ -0,0 +1,173 @@
+#!/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.
+
+# This script configures hms-agent-env.sh and symlinkis directories for 
+# relocating RPM locations.
+
+usage() {
+  echo "
+usage: $0 <parameters>
+  Required parameters:
+     --prefix=PREFIX             path to install into
+
+  Optional parameters:
+     --arch=i386                 OS Architecture
+     --bin-dir=PREFIX/bin        Executable directory
+     --conf-dir=/etc/hms         Configuration directory
+     --log-dir=/var/log/hms      Log directory
+     --pid-dir=/var/run          PID file location
+  "
+  exit 1
+}
+
+OPTS=$(getopt \
+  -n $0 \
+  -o '' \
+  -l 'arch:' \
+  -l 'prefix:' \
+  -l 'bin-dir:' \
+  -l 'conf-dir:' \
+  -l 'lib-dir:' \
+  -l 'log-dir:' \
+  -l 'pid-dir:' \
+  -l 'uninstall' \
+  -- "$@")
+
+if [ $? != 0 ] ; then
+    usage
+fi
+
+eval set -- "${OPTS}"
+while true ; do
+  case "$1" in
+    --arch)
+      ARCH=$2 ; shift 2
+      ;;
+    --prefix)
+      PREFIX=$2 ; shift 2
+      ;;
+    --bin-dir)
+      BIN_DIR=$2 ; shift 2
+      ;;
+    --log-dir)
+      LOG_DIR=$2 ; shift 2
+      ;;
+    --lib-dir)
+      LIB_DIR=$2 ; shift 2
+      ;;
+    --conf-dir)
+      CONF_DIR=$2 ; shift 2
+      ;;
+    --pid-dir)
+      PID_DIR=$2 ; shift 2
+      ;;
+    --uninstall)
+      UNINSTALL=1; shift
+      ;;
+    --)
+      shift ; break
+      ;;
+    *)
+      echo "Unknown option: $1"
+      usage
+      exit 1
+      ;;
+  esac
+done
+
+for var in PREFIX; do
+  if [ -z "$(eval "echo \$$var")" ]; then
+    echo Missing param: $var
+    usage
+  fi
+done
+
+ARCH=${ARCH:-i386}
+BIN_DIR=${BIN_DIR:-$PREFIX/share/hms/bin}
+CONF_DIR=${CONF_DIR:-$PREFIX/conf}
+LIB_DIR=${LIB_DIR:-$PREFIX/lib}
+LOG_DIR=${LOG_DIR:-$PREFIX/var/log}
+PID_DIR=${PID_DIR:-$PREFIX/var/run}
+UNINSTALL=${UNINSTALL:-0}
+
+if [ "${ARCH}" != "i386" ]; then
+  LIB_DIR=${LIB_DIR}64
+fi
+
+if [ "${UNINSTALL}" -eq "1" ]; then
+  # Remove symlinks
+  if [ "${BIN_DIR}" != "${PREFIX}/share/hms/bin" ]; then
+    for var in `ls ${PREFIX}/share/hms/bin`; do
+      rm -f ${BIN_DIR}/${var}
+    done
+  fi
+  if [ -f /etc/default/hms-agent-env.sh ]; then
+    rm -f /etc/default/hms-agent-env.sh
+  fi
+  if [ "${CONF_DIR}" != "${PREFIX}/share/hms/conf" ]; then
+    rm -f ${PREFIX}/share/hms/conf
+  fi
+
+  rm -f ${PREFIX}/share/hms/sbin/hms-agent
+  rm -f /etc/init.d/hms-agent
+
+else
+  # Create symlinks
+  if [ "${BIN_DIR}" != "${PREFIX}/share/hms/bin" ]; then
+    for var in `ls ${PREFIX}/share/hms/bin`; do
+      ln -sf ${PREFIX}/share/hms/bin/${var} ${BIN_DIR}/${var}
+    done
+  fi
+  if [ "${CONF_DIR}" != "${PREFIX}/share/hms/conf" ]; then
+    ln -sf ${CONF_DIR} ${PREFIX}/share/hms/conf
+  fi
+
+  chmod 755 ${PREFIX}/share/hms/sbin/*
+
+  ln -sf ${PREFIX}/share/hms/sbin/hms-agent /etc/init.d/hms-agent
+
+  ln -sf ${CONF_DIR}/hms-agent-env.sh /etc/default/hms-agent-env.sh
+
+  mkdir -p ${PID_DIR}
+  mkdir -p ${LOG_DIR}
+
+  TFILE="/tmp/$(basename $0).$$.tmp"
+  grep -v "^export HMS_HOME" ${CONF_DIR}/hms-agent-env.sh | \
+  grep -v "^export HMS_CONF_DIR" | \
+  grep -v "^export HMS_CLASSPATH" | \
+  grep -v "^export HMS_PID_DIR" | \
+  grep -v "^export HMS_LOG_DIR" | \
+  grep -v "^export JAVA_HOME" > ${TFILE}
+  if [ -z "${JAVA_HOME}" ]; then
+    if [ -e /etc/lsb-release ]; then
+      JAVA_HOME=`update-alternatives --config java | grep java | cut -f2 -d':' | cut -f2 -d' ' | sed -e 's/\/bin\/java//'`
+    else
+      JAVA_HOME=/usr/java/default
+    fi
+  fi
+  if [ "${JAVA_HOME}xxx" != "xxx" ]; then
+    echo "export JAVA_HOME=${JAVA_HOME}" >> ${TFILE}
+  fi
+  echo "export HMS_IDENT_STRING=\`whoami\`" >> ${TFILE}
+  echo "export HMS_HOME=${PREFIX}/share/hms" >> ${TFILE}
+  echo "export HMS_CONF_DIR=${CONF_DIR}" >> ${TFILE}
+  echo "export HMS_CLASSPATH=${CONF_DIR}:${HADOOP_CONF_DIR}:${HADOOP_JARS}:${ZOOKEEPER_JARS}" >> ${TFILE}
+  echo "export HMS_PID_DIR=${PID_DIR}" >> ${TFILE}
+  echo "export HMS_LOG_DIR=${LOG_DIR}" >> ${TFILE}
+  cp ${TFILE} ${CONF_DIR}/hms-agent-env.sh
+  rm -f ${TFILE}
+fi

Added: incubator/ambari/trunk/examples/blueprint.json
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/examples/blueprint.json?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/examples/blueprint.json (added)
+++ incubator/ambari/trunk/examples/blueprint.json Thu Sep 22 16:13:55 2011
@@ -0,0 +1,54 @@
+{ "name": "kryptonite",
+  "stack": "ambari-1.0",
+  "parent": "site",
+  "parent-revision": "42",
+  "repositories": [
+    {
+      "location": "http://repos.hortonworks.com/yum",
+      "type": "yum"
+    },
+    {
+      "location": "http://incubator.apache.org/ambari/stack",
+      "type": "tar"
+    },
+  ],
+  "configuration": {
+    "hadoop-env": {
+      "HADOOP_CONF_DIR": "/etc/hadoop",
+      "HADOOP_NAMENODE_OPTS": "-Dsecurity.audit.logger=INFO,DRFAS -Dhdfs.audit.logger=INFO,DRFAAUDIT",
+      "HADOOP_CLIENT_OPTS": "-Xmx128m"
+    },
+    "core-site": {
+       "fs.default.name" : "hdfs://${namenode}:8020/",
+       "hadoop.tmp.dir" : "/grid/0/hadoop/tmp",
+       "!hadoop.security.authentication" : "kerberos",
+    }
+  }
+  "components": {
+    "common": {
+      "version": "0.20.203.0"
+      "arch": "i386"
+    },
+    "hdfs": {
+      "user": "hdfs"
+    },
+    "mapreduce": {
+      "user": "mapred"
+    },
+    "hbase": {
+      "enabled": "false"
+    }
+    "pig": {
+      "version": "0.9.0"
+    }
+  },
+  "roles": {
+    "namenode": {
+      "configuration": {
+        "hdfs-site": {
+           "dfs.https.enable": "true"
+        }
+      }
+    }
+  }
+}
\ No newline at end of file

Added: incubator/ambari/trunk/examples/cluster.json
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/examples/cluster.json?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/examples/cluster.json (added)
+++ incubator/ambari/trunk/examples/cluster.json Thu Sep 22 16:13:55 2011
@@ -0,0 +1,14 @@
+{
+  "name": "kryptonite-green",
+  "description": "alpha cluster",
+  "blueprint": "kryptonite",
+  "nodes": ["node000-999", "gateway0-1"],
+  "goal": "active",
+  "services": ["hdfs", "mapreduce"],
+  "roles": {
+    "namenode": ["node000"],
+    "jobtracker": ["node001"],
+    "secondary-namenode": ["node002"],
+    "gateway": ["gateway0-1"],
+  }
+}
\ No newline at end of file

Added: incubator/ambari/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/pom.xml?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/pom.xml (added)
+++ incubator/ambari/trunk/pom.xml Thu Sep 22 16:13:55 2011
@@ -0,0 +1,792 @@
+<?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">
+    <properties>
+        <buildtype>test</buildtype>
+        <BUILD_NUMBER>${env.BUILD_NUMBER}</BUILD_NUMBER>
+        <VERSION>0.1</VERSION>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
+        <package.prefix>/usr</package.prefix>
+        <package.conf.dir>/etc/ambari</package.conf.dir>
+        <package.log.dir>/var/log/ambari</package.log.dir>
+        <package.pid.dir>/var/run/ambari</package.pid.dir>
+        <package.release>1</package.release>
+        <package.version>0.1.0</package.version>
+        <final.name>${project.artifactId}-${project.version}</final.name>
+    </properties>
+
+    <name>ambari</name>
+    <description>Ambari</description>
+    <url>http://incubator.apache.org/ambari</url>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.ambari</groupId>
+    <version>0.1.0</version>
+    <artifactId>ambari</artifactId>
+    <packaging>pom</packaging>
+
+    <issueManagement>
+        <system>Ambari jira</system>
+        <url>http://issues.apache.org/jira/browse/AMBARI</url>
+    </issueManagement>
+
+    <mailingLists>
+        <mailingList>
+            <name>ambari-dev</name>
+            <subscribe></subscribe>
+            <unsubscribe></unsubscribe>
+            <post>mailto:ambari-dev@incubator.apache.com</post>
+            <archive></archive>
+        </mailingList>
+    </mailingLists>
+
+    <dependencies>
+        <dependency>
+                <groupId>org.testng</groupId>
+                <artifactId>testng</artifactId>
+                <version>5.8</version>
+                <scope>test</scope>
+                <classifier>jdk15</classifier>
+                <exclusions>
+                        <exclusion>
+                                <groupId>junit</groupId>
+                                <artifactId>junit</artifactId>
+                        </exclusion>
+                </exclusions>
+        </dependency>
+        <dependency>
+                <groupId>org.apache.zookeeper</groupId>
+                <artifactId>zookeeper</artifactId>
+                <version>3.3.2</version>
+                <!-- <scope>provided</scope> -->
+                <exclusions>
+                  <exclusion>
+                    <groupId>log4j</groupId>
+                    <artifactId>log4j</artifactId>
+                  </exclusion>
+                </exclusions>
+        </dependency>
+        <dependency>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty</artifactId>
+                <version>6.1.26</version>
+        </dependency>
+        <dependency>
+                <groupId>javax.jmdns</groupId>
+                <artifactId>jmdns</artifactId>
+                <version>3.4.0</version>
+        </dependency>
+        <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>1.1.1</version>
+        </dependency>
+        <dependency>
+                <groupId>commons-codec</groupId>
+                <artifactId>commons-codec</artifactId>
+                <version>1.3</version>
+                <scope>compile</scope>
+        </dependency>
+        <dependency>
+                <groupId>commons-lang</groupId>
+                <artifactId>commons-lang</artifactId>
+                <version>2.4</version>
+        </dependency>
+        <dependency>
+                <groupId>commons-httpclient</groupId>
+                <artifactId>commons-httpclient</artifactId>
+                <version>3.0.1</version>
+        </dependency>
+        <dependency>
+                <groupId>javax.servlet</groupId>
+                <artifactId>servlet-api</artifactId>
+                <version>2.5</version>
+                <scope>provided</scope>
+        </dependency>
+        <dependency>
+                <groupId>log4j</groupId>
+                <artifactId>log4j</artifactId>
+                <version>1.2.15</version>
+                <exclusions>
+                  <exclusion>
+                    <groupId>javax.mail</groupId>
+                    <artifactId>mail</artifactId>
+                  </exclusion>
+                  <exclusion>
+                    <groupId>javax.jms</groupId>
+                    <artifactId>jms</artifactId>
+                  </exclusion>
+                  <exclusion>
+                    <groupId>com.sun.jdmk</groupId>
+                    <artifactId>jmxtools</artifactId>
+                  </exclusion>
+                  <exclusion>
+                    <groupId>com.sun.jmx</groupId>
+                    <artifactId>jmxri</artifactId>
+                  </exclusion>
+                </exclusions>
+        </dependency>
+        <dependency>
+                <groupId>com.sun.jersey</groupId>
+                <artifactId>jersey-json</artifactId>
+                <version>1.6</version>
+        </dependency>
+        <dependency>
+                <groupId>com.sun.jersey</groupId>
+                <artifactId>jersey-server</artifactId>
+                <version>1.6</version>
+        </dependency>
+
+        <dependency>
+                <groupId>com.sun.jersey</groupId>
+                <artifactId>jersey-client</artifactId>
+                <version>1.6</version>
+        </dependency>
+    </dependencies>
+
+    <developers>
+        <developer>
+            <id>ddas</id>
+            <name>Devaraj Das</name>
+            <email>ddas@hortonworks.com</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>berndf</id>
+            <name>Bernd Fondermann</name>
+            <email>berndf@apache.org</email>
+            <timezone>+1</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>vgogate</id>
+            <name>Vitthal Suhas Gogate</name>
+            <email>vgogate@apache.org</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>omalley</id>
+            <name>Owen O'Malley</name>
+            <email>omalley@apache.org</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>jagane</id>
+            <name>Jagane Sundar</name>
+            <email>jagane@apache.org</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>eyang</id>
+            <name>Eric Yang</name>
+            <email>eyang@apache.org</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+        <developer>
+            <id>kzhang</id>
+            <name>Kan Zhang</name>
+            <email>kanzhangmail@yahoo.com</email>
+            <timezone>-8</timezone>
+            <roles>
+                <role></role>
+            </roles>
+        </developer>
+    </developers>
+
+    <organization>
+        <name>Apache Software Foundation</name>
+        <url>http://www.apache.org/</url>
+    </organization>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <version>2.4.3</version>
+                <configuration>
+                    <encoding>UTF-8</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>2.3.2</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.3.2</version>
+                <configuration>
+                    <compilerVersion>1.5</compilerVersion>
+                    <source>1.6</source>
+                    <target>1.6</target>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>2.1.1</version>
+                <executions>
+                    <execution>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>jar-no-fork</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.5</version>
+                <configuration>
+                    <phase>test</phase>
+                    <argLine>-Xmx1024m</argLine>
+                    <includes>
+                        <include>**/Test*.java</include>
+                    </includes>
+                    <excludes>
+                        <exclude>**/IntegrationTest*.java</exclude>
+                        <exclude>**/PerformanceTest*.java</exclude>
+                    </excludes>
+                    <skipTests>${skipTests}</skipTests>
+                    <reportsDirectory>${project.build.directory}/test-reports</reportsDirectory>
+                    <systemProperties>
+                        <property>
+                            <name>AMBARI_LOG_DIR</name>
+                            <value>${project.build.directory}/logs</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <configuration>
+                    <tarLongFileMode>gnu</tarLongFileMode>
+                    <descriptors>
+                        <descriptor>src/packages/tarball/all.xml</descriptor>
+                    </descriptors>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>build-tarball</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.4</version>
+                <executions>
+                    <execution>
+                        <phase>validate</phase>
+                        <configuration>
+                            <tasks name="setup">
+                                <mkdir dir="${basedir}/target"/>
+                                <echo message="0.1.0" file="${basedir}/target/VERSION"/>
+                                <mkdir dir="${basedir}/target/clover"/>
+                                <chmod dir="${basedir}/target/clover" perm="a+w" />
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <version>3.0</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>hudson</id>
+            <activation>        
+                <property>  
+                    <name>!env.BUILD_NUMBER</name>
+                </property>
+            </activation>
+            <properties>
+                <BUILD_NUMBER>0</BUILD_NUMBER>
+            </properties>
+        </profile>
+        <profile>
+            <id>nightly</id>
+            <activation />
+            <properties>
+                <skipTests>true</skipTests>
+            </properties>
+            <dependencies>
+                <dependency>
+                        <groupId>com.cenqua.clover</groupId>
+                        <artifactId>clover</artifactId>
+                        <version>2.6.1</version>
+                </dependency>
+            </dependencies>
+            <build>
+                <plugins>
+<!--                    <plugin>
+                        <groupId>com.atlassian.maven.plugins</groupId>
+                        <artifactId>maven-clover2-plugin</artifactId>
+                        <version>2.6.2</version>
+                        <configuration>
+                            <licenseLocation>conf/clover/clover.license</licenseLocation>
+                            <snapshot>/tmp/ambari_clover</snapshot>
+                            <cloverDatabase>/tmp/ambari</cloverDatabase>
+                            <cloverMergeDatabase>/tmp/ambari</cloverMergeDatabase>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>setup-clover-test</id>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>instrument-test</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>setup-clover-package</id>
+                                <goals>
+                                    <goal>setup</goal>
+                                </goals>
+                                <configuration>
+                                    <includesAllSourceRoots>true</includesAllSourceRoots>
+                                    <includesTestSourceRoots>true</includesTestSourceRoots>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>setup-clover-integration-test</id>
+                                <phase>integration-test</phase>
+                                <goals>
+                                    <goal>instrument-test</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>snapshot</goal>
+                                    <goal>log</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin> -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <version>2.5</version>
+                        <executions>
+                            <execution>
+                                <phase>test</phase>
+                                <configuration>
+                                    <argLine>-Xmx1024m -Djava.library.path=.
+                                    </argLine>
+                                    <includes>
+                                        <include>**/*Test.java</include>
+                                    </includes>
+                                    <excludes>
+                                        <exclude>**/IntegrationTest.java</exclude>
+                                        <exclude>**/PerformanceTest*.java</exclude>
+                                    </excludes>
+                                    <skipTests>false</skipTests>
+                                    <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
+                                    <systemProperties>
+                                        <property>
+                                            <name>clover.server</name>
+                                            <value>true</value>
+                                        </property>
+                                        <property>
+                                            <name>clover.distributed.coverage</name>
+                                            <value>ON</value>
+                                        </property>
+                                    </systemProperties>
+                                </configuration>
+                                <goals>
+                                    <goal>test</goal>
+                                </goals>
+                                <id>unit-test</id>
+                            </execution>
+                            <execution>
+                                <id>it</id>
+                                <phase>integration-test</phase>
+                                <configuration>
+                                    <argLine>-Xmx1024m -Djava.library.path=.
+                                    </argLine>
+                                    <includes>
+                                        <include>**/IntegrationTest*.java</include>
+                                    </includes>
+                                    <excludes>
+                                        <exclude>**/*Test.java</exclude>
+                                        <exclude>**/PerformanceTest*.java</exclude>
+                                    </excludes>
+                                    <skipTests>false</skipTests>
+                                    <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
+                                    <systemProperties>
+                                        <property>
+                                            <name>clover.server</name>
+                                            <value>true</value>
+                                        </property>
+                                        <property>
+                                            <name>clover.distributed.coverage</name>
+                                            <value>ON</value>
+                                        </property>
+                                    </systemProperties>
+                                </configuration>
+                                <goals>
+                                    <goal>test</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <version>1.2</version>
+                        <executions>
+                            <execution>
+                                <id>setup-it</id>
+                                <phase>pre-integration-test</phase>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                                <configuration>
+                                    <executable>${basedir}/scripts/pre-integration-test.sh</executable>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>clean-it</id>
+                                <phase>post-integration-test</phase>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                                <configuration>
+                                    <executable>${basedir}/scripts/post-integration-test.sh</executable>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
+            <id>submodules</id>
+            <activation>
+              <property>
+                <name>!perf.host</name>
+              </property>
+            </activation>
+            <modules>
+              <module>agent</module>
+              <module>client</module>
+              <module>controller</module>
+            </modules>
+        </profile>
+
+        <profile>
+            <id>performance</id>
+            <modules>
+              <module>performance</module>
+            </modules>
+        </profile>
+
+        <profile>
+            <id>regression</id>
+            <modules>
+              <module>regression-test</module>
+            </modules>
+        </profile>
+
+        <profile>
+            <id>src</id>
+            <build>
+            </build>
+        </profile>
+
+        <profile>
+            <id>rpm</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.6</version>
+                        <executions>
+                            <execution>
+                                <id>build-rpm</id>
+                                <phase>package</phase>
+                                <configuration>
+                                    <target>
+                                        <ant antfile="${basedir}/src/packages/build.xml">
+                                            <target name="package-rpm"/>
+                                        </ant>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>deb</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.6</version>
+                        <executions>
+                            <execution>
+                                <id>build-deb</id>
+                                <phase>package</phase>
+                                <configuration>
+                                    <target>
+                                        <property name="artifactId" value="${project.artifactId}" />
+                                        <ant antfile="${basedir}/src/packages/build.xml">
+                                            <target name="package-deb"/>
+                                        </ant>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.vafer</groupId>
+                                <artifactId>jdeb</artifactId>
+                                <version>0.8</version>
+                            </dependency>
+                        </dependencies>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
+            <id>docs</id>
+            <activation />
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-site-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
+            <id>report</id>
+            <activation />
+            <reporting>
+                <plugins>
+                    <plugin>
+                      <artifactId>maven-javadoc-plugin</artifactId>
+                      <version>2.7</version>
+                      <reportSets>
+                        <reportSet>
+                          <id>jaxb</id>
+                          <configuration>
+                            <doclet>com.lunatech.doclets.jax.jaxb.JAXBDoclet</doclet>
+                            <docletArtifacts>
+                              <docletArtifact>
+                                <groupId>com.lunatech.jax-doclets</groupId>
+                                <artifactId>doclets</artifactId>
+                                <version>0.9.0</version>
+                              </docletArtifact>
+                            </docletArtifacts>
+                            <destDir>jaxbdocs</destDir>
+                          </configuration>
+                          <reports>
+                            <report>javadoc</report>
+                          </reports>
+                        </reportSet>
+                        <reportSet>
+                          <id>jaxrs</id>
+                          <configuration>
+                            <doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
+                            <docletArtifacts>
+                              <docletArtifact>
+                                <groupId>com.lunatech.jax-doclets</groupId>
+                                <artifactId>doclets</artifactId>
+                                <version>0.9.0</version>
+                              </docletArtifact>
+                            </docletArtifacts>
+                            <destDir>jaxrsdocs</destDir>
+                            <links>
+                              <link>../jaxbdocs/</link>
+                            </links>
+                          </configuration>
+                          <reports>
+                            <report>javadoc</report>
+                          </reports>
+                        </reportSet>
+                        <reportSet>
+                          <id>uml</id>
+                          <configuration>
+                            <links>
+                              <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
+                            </links>
+                            <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
+                            <docletArtifact>
+                              <groupId>org.umlgraph</groupId>
+                              <artifactId>doclet</artifactId>
+                              <version>5.1</version>
+                            </docletArtifact>
+                            <additionalparam>-inferrel -inferdep -useimports -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 -hide java.* -hide org.*</additionalparam>
+                            <destDir>withUML</destDir>
+                            <show>public</show>
+                          </configuration>
+                        </reportSet>
+                      </reportSets>
+                    </plugin>
+                    <plugin>
+                        <artifactId>maven-jxr-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <artifactId>maven-pmd-plugin</artifactId>
+                        <reportSets>
+                            <reportSet>
+                                <reports>
+                                    <report>pmd</report>
+                                    <report>cpd</report>
+                                </reports>
+                            </reportSet>
+                        </reportSets>
+                        <configuration>
+                            <targetJdk>1.5</targetJdk>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>findbugs-maven-plugin</artifactId>
+                        <configuration>
+                            <threshold>Normal</threshold>
+                            <effort>Max</effort>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>javancss-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>jdepend-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>taglist-maven-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </reporting>
+        </profile>
+    </profiles>
+
+    <repositories>
+        <repository>
+            <id>maven2-repository.dev.java.net</id>
+            <name>Java.net Repository for Maven</name>
+            <url>http://download.java.net/maven/2/</url>
+            <layout>default</layout>
+        </repository>
+        <repository>
+            <id>codehaus</id>
+            <url>http://repository.codehaus.org/</url>
+        </repository>
+        <repository>
+            <id>Sonatype-public</id>
+            <name>SnakeYAML repository</name>
+            <url>http://oss.sonatype.org/content/groups/public/</url>
+        </repository>
+        <repository>
+            <id>clojars</id>
+            <url>http://clojars.org/repo/</url>
+        </repository>
+    </repositories>
+
+    <dependencyManagement>
+        <dependencies>
+        </dependencies>
+    </dependencyManagement>
+
+</project>

Added: incubator/ambari/trunk/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/src/main/resources/log4j.properties?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/src/main/resources/log4j.properties (added)
+++ incubator/ambari/trunk/src/main/resources/log4j.properties Thu Sep 22 16:13:55 2011
@@ -0,0 +1,28 @@
+# 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.
+
+log4j.rootLogger=INFO, R
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=${HMS_LOG_DIR}/hms.log
+log4j.appender.R.MaxFileSize=10MB
+log4j.appender.R.MaxBackupIndex=10
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %t %c{1} - %m%n
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.follow=true
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %p %t %c{1} - %m%n
+

Added: incubator/ambari/trunk/src/packages/build.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/src/packages/build.xml?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/src/packages/build.xml (added)
+++ incubator/ambari/trunk/src/packages/build.xml Thu Sep 22 16:13:55 2011
@@ -0,0 +1,25 @@
+<?xml version="1.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.
+-->
+
+<project name="hms packaging">
+
+<target name="package-deb" />
+<target name="package-rpm" />
+
+</project>

Added: incubator/ambari/trunk/src/packages/tarball/all.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/src/packages/tarball/all.xml?rev=1174242&view=auto
==============================================================================
--- incubator/ambari/trunk/src/packages/tarball/all.xml (added)
+++ incubator/ambari/trunk/src/packages/tarball/all.xml Thu Sep 22 16:13:55 2011
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd">
+  <!--This 'all' id is not appended to the produced bundle because we do this:
+    http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers
+  -->
+  <formats>
+    <format>tar.gz</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <includes>
+        <include>${basedir}/*.txt</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <includes>
+        <include>pom.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>src</directory>
+    </fileSet>
+    <fileSet>
+      <directory>conf</directory>
+    </fileSet>
+    <fileSet>
+      <directory>bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <fileMode>755</fileMode>
+    </fileSet>
+<!--    <fileSet>
+      <directory>target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+          <include>${artifactId}-${project.version}.jar</include>
+          <include>${artifactId}-${project.version}-tests.jar</include>
+      </includes>
+    </fileSet> -->
+    <fileSet>
+      <directory>target/site</directory>
+      <outputDirectory>docs</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>src/packages</directory>
+      <outputDirectory>sbin</outputDirectory>
+      <fileMode>755</fileMode>
+      <includes>
+          <include>update-hms-${artifactId}-env.sh</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+  <dependencySets>
+    <dependencySet>
+      <useProjectArtifact>false</useProjectArtifact>
+      <outputDirectory>/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+    </dependencySet>
+  </dependencySets>
+</assembly>



Mime
View raw message