Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CHUKWA-95. Added Web Service API to export data from database. (Teren…
…ce Kwan via Eric Yang)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/chukwa/trunk@783442 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
macroadster committed Jun 10, 2009
1 parent 54a4470 commit 44ebe64644169e55bd3e264b7f8291f391c067f5
Show file tree
Hide file tree
Showing 80 changed files with 9,788 additions and 338 deletions.
@@ -411,6 +411,7 @@
<classpath refid="classpath" />
<exclude name="org/apache/hadoop/chukwa/*" />
<include name="org/apache/hadoop/chukwa/hicc/**" />
<include name="org/apache/hadoop/chukwa/rest/**" />
</javac>
</target>

@@ -647,6 +648,7 @@
<copy todir="${build.dir}/hicc/WEB-INF/classes">
<fileset dir="${build.classes}">
<include name="org/apache/hadoop/chukwa/hicc/**/*.class" />
<include name="org/apache/hadoop/chukwa/rest/**/*.class" />
<include name="org/apache/hadoop/chukwa/conf/**/*.class" />
<include name="org/apache/hadoop/chukwa/database/**/*.class" />
<include name="org/apache/hadoop/chukwa/datacollection/**/*.class" />
@@ -657,6 +659,7 @@

<fileset dir="${basedir}/src/java">
<include name="org/apache/hadoop/chukwa/hicc/**/*.java" />
<include name="org/apache/hadoop/chukwa/rest/**/*.java" />
<include name="org/apache/hadoop/chukwa/conf/**/*.java" />
<include name="org/apache/hadoop/chukwa/datacollection/**/*.java" />
<include name="org/apache/hadoop/chukwa/extraction/engine/**/*.java" />
@@ -668,7 +671,74 @@
<copy todir="${build.dir}/hicc/WEB-INF/lib">
<fileset dir="${basedir}/lib">
<include name="json.jar" />
<include name="json-lib-2.2.3-jdk15.jar" />
<include name="jchronic-0.2.3.jar" />
<include name="asm-3.1.jar" />
<include name="jersey-bundle-1.1.0-ea.jar" />
<include name="jsr311-api-1.0.jar" />
<include name="html-filter-1.0.jar" />
</fileset>
<fileset dir="${common.ivy.lib.dir}">
<include name="*.jar" />
<exclude name="jetty-*.jar" />
<exclude name="jsp-api*.jar" />
<exclude name="junit-*.jar" />
</fileset>
<fileset dir="${build.dir}">
<include name="${name}-core-${chukwaVersion}.jar" />
</fileset>
<fileset dir="${build.dir}/${final.name}/hadoopjars">
<include name="*.jar" />
<exclude name="hadoop-0.2*-core.jar" />
<exclude name="jasper-*.jar" />
<exclude name="jetty-*.jar" />
<exclude name="jsp-api*.jar" />
</fileset>
</copy>
</target>

<target name="chukwa" depends="compile, chukwa_jar, package-hadoop, package-standalone" description="Prepare chukwa.war">
<mkdir dir="${build.dir}/chukwa" />
<mkdir dir="${build.dir}/chukwa/WEB-INF" />
<mkdir dir="${build.dir}/chukwa/WEB-INF/classes" />
<mkdir dir="${build.dir}/chukwa/WEB-INF/lib" />
<mkdir dir="${build.dir}/chukwa/META-INF" />
<copy todir="${build.dir}/chukwa">
<fileset dir="${basedir}/src/web/hicc">
<include name="**" />
</fileset>
</copy>
<copy todir="${build.dir}/chukwa/WEB-INF/classes">
<fileset dir="${build.classes}">
<include name="org/apache/hadoop/chukwa/hicc/**/*.class" />
<include name="org/apache/hadoop/chukwa/rest/**/*.class" />
<include name="org/apache/hadoop/chukwa/conf/**/*.class" />
<include name="org/apache/hadoop/chukwa/database/**/*.class" />
<include name="org/apache/hadoop/chukwa/datacollection/**/*.class" />
<include name="org/apache/hadoop/chukwa/extraction/engine/**/*.class" />
<include name="org/apache/hadoop/chukwa/inputtools/*.class" />
<include name="org/apache/hadoop/chukwa/util/**/*.class" />
</fileset>

<fileset dir="${basedir}/src/java">
<include name="org/apache/hadoop/chukwa/hicc/**/*.java" />
<include name="org/apache/hadoop/chukwa/rest/**/*.java" />
<include name="org/apache/hadoop/chukwa/conf/**/*.java" />
<include name="org/apache/hadoop/chukwa/datacollection/**/*.java" />
<include name="org/apache/hadoop/chukwa/extraction/engine/**/*.java" />
<include name="org/apache/hadoop/chukwa/inputtools/*.java" />
<include name="org/apache/hadoop/chukwa/util/**/*.java" />
</fileset>

</copy>
<copy todir="${build.dir}/chukwa/WEB-INF/lib">
<fileset dir="${basedir}/lib">
<include name="json.jar" />
<include name="json-lib-2.2.3-jdk15.jar" />
<include name="jchronic-0.2.3.jar" />
<include name="asm-3.1.jar" />
<include name="jersey-bundle-1.1.0-ea.jar" />
<include name="jsr311-api-1.0.jar" />
<include name="html-filter-1.0.jar" />
</fileset>
<fileset dir="${common.ivy.lib.dir}">
@@ -695,7 +765,12 @@
</jar>
</target>

<target name="compress" depends="compile,collector,collector_jar,hicc_war,tools_jar,agent_jar,chukwa_jar,chukwa-hadoop_jar" description="Compression target">
<target name="chukwa_war" depends="compile, chukwa" description="Create chukwa jar file for REST API">
<jar jarfile="${build.dir}/chukwa.war" basedir="${build.dir}/chukwa">
</jar>
</target>

<target name="compress" depends="compile,collector,collector_jar,hicc_war,chukwa_war,tools_jar,agent_jar,chukwa_jar,chukwa-hadoop_jar" description="Compression target">
<copy todir="." includeEmptyDirs="false">
<fileset dir="${build.dir}">
<exclude name="**" />
BIN +0 Bytes (100%) contrib/chukwa-pig/chukwa-pig.jar
Binary file not shown.
12 ivy.xml
@@ -137,10 +137,18 @@
<dependency org="commons-lang"
name="commons-lang"
rev="${commons-lang.version}"
conf="releaseaudit->default"/>
conf="common->default"/>
<dependency org="commons-collections"
name="commons-collections"
rev="${commons-collections.version}"
conf="releaseaudit->default"/>
conf="common->default"/>
<dependency org="net.sf.ezmorph"
name="ezmorph"
rev="${ezmorph.version}"
conf="common->default"/>
<dependency org="commons-beanutils"
name="commons-beanutils"
rev="${commons-beanutils.version}"
conf="common->default"/>
</dependencies>
</ivy-module>
@@ -15,10 +15,11 @@ commons-codec.version=1.3
commons-collections.version=3.1
commons-net.version=1.4.1
commons-logging-api.version=1.0.4
commons-beanutils.version=1.8.0

#couldnt makeout the version of jsp-api
#jsp-api.version=
ivy.version=2.0.0-rc2
ivy.version=2.1.0-rc1
# chukwa uses a diff. verion of jetty than the Hadoop
jetty.version=6.1.11
jetty-util.version=6.1.11
@@ -29,6 +30,8 @@ log4j.version=1.2.13

servlet.version=4.0.6
servlet-api.version=5.5.12
json-lib.version=2.2.3
ezmorph.version=1.0.6

# Not able to figureout the taglibs version
taglibs.version=1.1.2
@@ -0,0 +1,29 @@
Copyright (c) 2000-2005 INRIA, France Telecom
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
BIN +42 KB lib/asm-3.1.jar
Binary file not shown.
Binary file not shown.

0 comments on commit 44ebe64

Please sign in to comment.