You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2009/09/10 07:32:59 UTC
svn commit: r813233 [2/7] - in /incubator/hama/branches: ./ hama-0.19/
hama-0.19/bin/ hama-0.19/conf/ hama-0.19/lib/ hama-0.19/lib/findbugs/
hama-0.19/lib/findbugs/plugin/ hama-0.19/lib/jetty-ext/ hama-0.19/src/
hama-0.19/src/docs/ hama-0.19/src/docs/s...
Added: incubator/hama/branches/hama-0.19/src/docs/forrest.properties
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/forrest.properties?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/forrest.properties (added)
+++ incubator/hama/branches/hama-0.19/src/docs/forrest.properties Thu Sep 10 05:32:52 2009
@@ -0,0 +1,104 @@
+# Copyright 2002-2004 The Apache Software Foundation
+#
+# 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.
+
+##############
+# Properties used by forrest.build.xml for building the website
+# These are the defaults, un-comment them if you need to change them.
+##############
+
+# Prints out a summary of Forrest settings for this project
+#forrest.echo=true
+
+# Project name (used to name .war file)
+#project.name=my-project
+
+# Specifies name of Forrest skin to use
+#project.skin=tigris
+#project.skin=pelt
+
+# comma separated list, file:// is supported
+#forrest.skins.descriptors=http://forrest.apache.org/skins/skins.xml,file:///c:/myskins/skins.xml
+
+##############
+# behavioural properties
+#project.menu-scheme=tab_attributes
+#project.menu-scheme=directories
+
+##############
+# layout properties
+
+# Properties that can be set to override the default locations
+#
+# Parent properties must be set. This usually means uncommenting
+# project.content-dir if any other property using it is uncommented
+
+#project.status=status.xml
+#project.content-dir=src/documentation
+#project.raw-content-dir=${project.content-dir}/content
+#project.conf-dir=${project.content-dir}/conf
+#project.sitemap-dir=${project.content-dir}
+#project.xdocs-dir=${project.content-dir}/content/xdocs
+#project.resources-dir=${project.content-dir}/resources
+#project.stylesheets-dir=${project.resources-dir}/stylesheets
+#project.images-dir=${project.resources-dir}/images
+#project.schema-dir=${project.resources-dir}/schema
+#project.skins-dir=${project.content-dir}/skins
+#project.skinconf=${project.content-dir}/skinconf.xml
+#project.lib-dir=${project.content-dir}/lib
+#project.classes-dir=${project.content-dir}/classes
+#project.translations-dir=${project.content-dir}/translations
+
+##############
+# validation properties
+
+# This set of properties determine if validation is performed
+# Values are inherited unless overridden.
+# e.g. if forrest.validate=false then all others are false unless set to true.
+#forrest.validate=true
+#forrest.validate.xdocs=${forrest.validate}
+#forrest.validate.skinconf=${forrest.validate}
+#forrest.validate.sitemap=${forrest.validate}
+#forrest.validate.stylesheets=${forrest.validate}
+#forrest.validate.skins=${forrest.validate}
+#forrest.validate.skins.stylesheets=${forrest.validate.skins}
+
+# *.failonerror=(true|false) - stop when an XML file is invalid
+#forrest.validate.failonerror=true
+
+# *.excludes=(pattern) - comma-separated list of path patterns to not validate
+# e.g.
+#forrest.validate.xdocs.excludes=samples/subdir/**, samples/faq.xml
+#forrest.validate.xdocs.excludes=
+
+
+##############
+# General Forrest properties
+
+# The URL to start crawling from
+#project.start-uri=linkmap.html
+# Set logging level for messages printed to the console
+# (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)
+#project.debuglevel=ERROR
+# Max memory to allocate to Java
+#forrest.maxmemory=64m
+# Any other arguments to pass to the JVM. For example, to run on an X-less
+# server, set to -Djava.awt.headless=true
+#forrest.jvmargs=
+# The bugtracking URL - the issue number will be appended
+#project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
+#project.bugtracking-url=http://issues.apache.org/jira/browse/
+# The issues list as rss
+#project.issues-rss-url=
+#I18n Property only works for the "forrest run" target.
+#project.i18n=true
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/classes/CatalogManager.properties
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/classes/CatalogManager.properties?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/classes/CatalogManager.properties (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/classes/CatalogManager.properties Thu Sep 10 05:32:52 2009
@@ -0,0 +1,37 @@
+# Copyright 2002-2004 The Apache Software Foundation
+#
+# 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.
+
+#=======================================================================
+# CatalogManager.properties
+#
+# This is the default properties file for Apache Forrest.
+# This facilitates local configuration of application-specific catalogs.
+#
+# See the Apache Forrest documentation:
+# http://forrest.apache.org/docs/your-project.html
+# http://forrest.apache.org/docs/validation.html
+
+# verbosity ... level of messages for status/debug
+# See forrest/src/core/context/WEB-INF/cocoon.xconf
+
+# catalogs ... list of additional catalogs to load
+# (Note that Apache Forrest will automatically load its own default catalog
+# from src/core/context/resources/schema/catalog.xcat)
+# use full pathnames
+# pathname separator is always semi-colon (;) regardless of operating system
+# directory separator is always slash (/) regardless of operating system
+#
+#catalogs=/home/me/forrest/my-site/src/documentation/resources/schema/catalog.xcat
+catalogs=
+
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/developers.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/developers.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/developers.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/developers.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Developers</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Contribution</title>
+ <p>
+ We are always looking for contributions. See the
+ <a href="http://wiki.apache.org/hama">Wiki</a> for details on contributing.
+ </p>
+ </section>
+ <section>
+ <title>Source Code</title>
+ <p>
+ The source files are now stored using Subversion : <br/><br/>
+ svn checkout https://svn.apache.org/repos/asf/incubator/hama/trunk hama-trunk
+ </p>
+ </section>
+ <section>
+ <title>Code Style</title>
+ <p>
+ The following sections show how to set up the code style for Hama in Eclipse.
+ It is strongly preferred that patches use this style before they are supplied.
+ <br /><br />
+ <a href="http://incubator.apache.org/hama/hama-eclipse-formatter.xml">
+ Download hama-eclipse-formatter.xml</a>.
+ <br /><br />
+ After this, select Window > Preferences, and open up the configuration for
+ Java > Code Style > Code Formatter. Click on the button labeled Import...
+ and select the file you downloaded. Give the style a name, and click OK.
+ </p>
+ </section>
+ <section>
+ <title>Issues</title>
+ <p>
+ All bugs, improvements, patches, etc. should be logged in
+ <a href="./issue_tracking.html">JIRA</a>
+ </p>
+ </section>
+ </body>
+
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/getting_started.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/getting_started.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/getting_started.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/getting_started.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Getting Started</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Hadoop and Hbase Start</title>
+ <p>
+
+ </p>
+ </section>
+ </body>
+
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/index.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/index.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/index.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Welcome to Hama project</title>
+ </header>
+
+ <body>
+ <section>
+ <title> Introduction </title>
+ <p><strong>Hama</strong> (means a hippopotamus in Korean) is a distributed
+ matrix computation package currently in incubation with Apache. It is a library
+ of matrix operations for large-scale processing and development environments
+ as well as a Map/Reduce framework for a large-scale numerical analysis and data
+ mining, that need the intensive computation power of matrix inversion, e.g., linear
+ regression, PCA, SVM and etc. It will be useful for many scientific applications,
+ e.g., physics computations, linear algebra, computational fluid dynamics,
+ statistics, graphic rendering and many more.
+ </p>
+
+ <ul>
+ <li>Scientific simulation and modeling
+ <ul>
+ <li>Matrix-vector/matrix-matrix multiply</li>
+ <li>Soving linear systems</li>
+ <li><a href="http://wiki.apache.org/hama/GraphAndMatrices">Scientific graphs</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul>
+ <li>Information retrieval
+ <ul>
+ <li>Sorting</li>
+ <li>Finding <a href="http://wiki.apache.org/hama/EigenValuesAndEigenVectors">eigenvalues and eigenvectors</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul>
+ <li>Computer graphics and computational geometry
+ <ul>
+ <li>Matrix multiply</li>
+ <li>Computing matrix determinate</li>
+ </ul>
+ </li>
+ </ul>
+ <p>For more information about Hama, please see the
+ <a href="http://wiki.apache.org/hama">Hama wiki</a>.</p>
+ </section>
+ <section>
+ <title>Getting Started</title>
+ <ul>
+ <li><a href="http://wiki.apache.org/hama/GettingStarted">Getting Started</a> with Hama</li>
+ </ul>
+ </section>
+ <section>
+ <title>Recent News</title>
+ <ul>
+ <li>20 May 2008 - Hama accepted to Apache Incubator Project.
+ <br />
+ The Incubator PMC have voted to accept Hama to be
+ a apache incubator project.
+ </li>
+ <li>23 June 2008 - A
+ <a href="http://wiki.apache.org/hama/ScaLAPACK">meeting</a>
+ with Professor Choi J., a member of
+ <a href="http://www.netlib.org/scalapack/">ScaLAPACK</a> team.</li>
+ <li>18 August 2008 - Source code is now available in the
+ <a href="./developers.html">Apache SVN repository</a>.
+ </li>
+ </ul>
+ </section>
+ </body>
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/irc_channel.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/irc_channel.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/irc_channel.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/irc_channel.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>IRC Channel</title>
+ </header>
+
+ <body>
+ <section>
+ <title>IRC Channel</title>
+ <p>
+ There is an IRC channel dedicated to Hama at irc.freenode.org.
+ The name of the channel is #hama.
+ <br /><br />
+ The IRC channel can be used for online discussion about hama related stuff,
+ but developers should be careful to transfer all the official decisions
+ or useful discussions to the <a href="./issue_tracking.html">issue tracking
+ </a>system.
+ </p>
+ <ul>
+ <li><a href="http://www.xchat.org/">XChat: Multiplatform Chat Program</a>
+ </li>
+ </ul>
+ </section>
+ </body>
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/issue_tracking.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/issue_tracking.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/issue_tracking.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/issue_tracking.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Issue Tracking</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Issue Tracking</title>
+ <p>
+ Hama tracks both bugs and enhancement requests
+ <a href="https://issues.apache.org/jira/browse/HAMA">here</a> using Apache JIRA.
+ We welcome input, however, before filing a request,
+ please make sure you do the following:
+ </p>
+ <ul>
+ <li>Search the JIRA database.</li>
+ <li>Check the user <a href="./mailing_lists.html">mailing list</a>,
+ both by searching the archives and by asking questions.</li>
+ </ul>
+ </section>
+ </body>
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/mailing_lists.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/mailing_lists.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/mailing_lists.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/mailing_lists.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Mailing Lists</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Hama User List</title>
+ <p>
+ If you use Hama, please subscribe to the Hama user mailing list.<br />
+ The Hama user mailing list is :
+ <a href="mailto:hama-user@incubator.apache.org">hama-user@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-user-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-user-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+
+ <section>
+ <title>Hama Developer List</title>
+ <p>
+ If you'd like to contribute to Hama, please subscribe to the Hama developer mailing list.<br />
+ The Hama developer mailing list is :
+ <a href="mailto:hama-dev@incubator.apache.org">hama-dev@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-dev-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-dev-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+
+ <section>
+ <title>Hama Commit List</title>
+ <p>
+ If you'd like to see changes made in Hama's version control system then subscribe
+ to the Hama commit mailing list.<br />
+ The Hama commit mailing list is :
+ <a href="mailto:hama-commits@incubator.apache.org">hama-commits@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-commits-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-commits-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+ </body>
+
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/privacy_policy.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/privacy_policy.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/privacy_policy.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/privacy_policy.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Privacy Policy</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Privacy Policy</title>
+ <p>
+ Information about your use of this website is collected using
+ server access logs and a tracking cookie.
+ The collected information consists of the following:<br/><br/>
+ </p>
+ <ul>
+ <li>The IP address from which you access the website;</li>
+ <li>The type of browser and operating system you use to access our site;</li>
+ <li>The date and time you access our site;</li>
+ <li>The pages you visit; and</li>
+ <li>The addresses of pages from where you followed a link to our site.</li>
+ </ul>
+ <p><br/><br/>
+ Part of this information is gathered using a tracking cookie set by the
+ <a href="http://www.google.com/analytics/">Google Analytics</a> service
+ and handled by Google as described in their
+ <a href="http://www.google.com/privacy.html">privacy policy</a>.
+ See your browser documentation for instructions on how to disable
+ the cookie if you prefer not to share this data with Google.<br/><br/>
+ We use the gathered information to help us make our site more
+ useful to visitors and to better understand how and when
+ our site is used. We do not track or collect personally
+ identifiable information or associate gathered data
+ with any personally identifying information from other sources.<br/><br/>
+ By using this website, you consent to the collection of this data
+ in the manner and for the purpose described above.
+ </p>
+ </section>
+ </body>
+
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/site.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/site.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/site.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!--
+Forrest site.xml
+
+This file contains an outline of the site's information content. It is used to:
+- Generate the website menus (though these can be overridden - see docs)
+- Provide semantic, location-independent aliases for internal 'site:' URIs, eg
+<link href="site:changes"> links to changes.html (or ../changes.html if in
+ subdir).
+- Provide aliases for external URLs in the external-refs section. Eg, <link
+ href="ext:cocoon"> links to http://xml.apache.org/cocoon/
+
+See http://forrest.apache.org/docs/linking.html for more info.
+-->
+
+<site label="Hama" href="" xmlns="http://apache.org/forrest/linkmap/1.0">
+
+ <docs label="Home">
+ <overview label="Overview" href="index.html" />
+ <whoweare label="Who we are?" href="who_we_are.html" />
+ <privacy label="Privacy Policy" href="privacy_policy.html" />
+ <!--
+ not yet ready things.
+
+ <started label="Getting Started" href="getting_started.html" />
+ <api label="API Docs" href="ext:api/index" />
+ <faq label="FAQ" href="ext:faq" />
+ -->
+ </docs>
+
+ <docs label="Resources">
+ <developers label="Developers" href="developers.html" />
+ <issues label="Issue Tracking" href="issue_tracking.html" />
+ <lists label="Mailing Lists" href="mailing_lists.html" />
+ <irc label="IRC channel" href="irc_channel.html" />
+ </docs>
+
+ <docs label="Related Projects">
+ <hadoop label="Hadoop" href="http://hadoop.apache.org/core/" />
+ <hbase label="Hbase" href="http://hadoop.apache.org/hbase/" />
+ <mahout label="Mahout" href="http://lucene.apache.org/mahout/" />
+ </docs>
+
+ <external-refs>
+ <site href="http://incubator.apache.org/hama/"/>
+ <lists href="http://incubator.apache.org/hama/mailing_lists.html"/>
+ <releases href="http://incubator.apache.org/hama/releases.html">
+ <download href="#Download" />
+ </releases>
+ <wiki href="http://wiki.apache.org/hama" />
+ <faq href="http://wiki.apache.org/hama/FAQ" />
+ <zlib href="http://www.zlib.net/" />
+ <lzo href="http://www.oberhumer.com/opensource/lzo/" />
+ <gzip href="http://www.gzip.org/" />
+ <cygwin href="http://www.cygwin.com/" />
+ <osx href="http://www.apple.com/macosx" />
+ <api href="api/">
+ <started href="overview-summary.html#overview_description" />
+ <index href="index.html" />
+ <org href="org/">
+ <apache href="apache/">
+ <hama href="hama/">
+ </hama>
+ </apache>
+ </org>
+ </api>
+ </external-refs>
+
+</site>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/tabs.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/tabs.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/tabs.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
+ "http://forrest.apache.org/dtd/tab-cocoon-v10.dtd">
+
+<tabs software="Hama"
+ title="Hama"
+ copyright="The Apache Software Foundation"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <!-- The rules are:
+ @dir will always have /index.html added.
+ @href is not modified unless it is root-relative and obviously specifies a
+ directory (ends in '/'), in which case /index.html will be added
+ -->
+
+ <tab label="Home" dir="" />
+ <tab label="Wiki" href="http://wiki.apache.org/hama" />
+
+</tabs>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/who_we_are.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/who_we_are.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/who_we_are.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/content/xdocs/who_we_are.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Who we are</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Active Committers</title>
+
+ <p>Hama's active committers are:</p>
+
+ <table>
+ <tr>
+ <th>username</th>
+ <th>name</th>
+ <th>organization</th>
+ <th>roles</th>
+ <th>timezone</th>
+ </tr>
+ <tr>
+ <td>edwardyoon</td>
+ <td><a href="http://blog.udanax.org/">Edward J. Yoon</a></td>
+ <td>NHN</td>
+ <td></td>
+ <td>+9</td>
+ </tr>
+ <tr>
+ <td>chanwit</td>
+ <td><a href="http://chanwit.blogspot.com/">Chanwit Kaewkasi</a></td>
+ <td>The University of Manchester</td>
+ <td>Groovy</td>
+ <td>+1</td>
+ </tr>
+ <tr>
+ <td>samuel</td>
+ <td>Samuel Guo</td>
+ <td></td>
+ <td></td>
+ <td>+8</td>
+ </tr>
+ </table>
+ </section>
+
+ <section>
+ <title>Mentors</title>
+ <p>Mentors while in incubation include:</p>
+ <ul>
+ <li>Ian Holsman</li>
+ <li>Brett Porter</li>
+ <li>Jeff Eastman</li>
+ </ul>
+ </section>
+
+ <section>
+ <title>Contributors</title>
+ <p>Contributors are:</p>
+ <ul>
+ <li>Soo-kyung Kim, a contributor of Hama logo sketch.</li>
+ <li>Morakot, a contributor of Hama logo paint.</li>
+ </ul>
+ </section>
+
+ </body>
+</document>
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/MapReduce.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/MapReduce.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/MapReduce.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/apache-incubator-hama.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/block.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/block.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/block.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/favicon.ico?rev=813233&view=auto
==============================================================================
(empty)
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_logo.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_logo.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_paint_logo.png
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_paint_logo.png?rev=813233&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/branches/hama-0.19/src/docs/src/documentation/resources/images/hama_paint_logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/branches/hama-0.19/src/docs/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/src/documentation/skinconf.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/src/documentation/skinconf.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/src/documentation/skinconf.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,350 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+
+<!--
+Skin configuration file. This file contains details of your project,
+which will be used to configure the chosen Forrest skin.
+-->
+
+<!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.6-3//EN" "http://forrest.apache.org/dtd/skinconfig-v06-3.dtd">
+<skinconfig>
+ <!-- To enable lucene search add provider="lucene" (default is google).
+ Add box-location="alt" to move the search box to an alternate location
+ (if the skin supports it) and box-location="all" to show it in all
+ available locations on the page. Remove the <search> element to show
+ no search box. @domain will enable sitesearch for the specific domain with google.
+ In other words google will search the @domain for the query string.
+ -->
+
+ <search name="Hama" domain="incubator.apache.org" provider="google"/>
+
+ <!-- Disable the print link? If enabled, invalid HTML 4.0.1 -->
+ <disable-print-link>true</disable-print-link>
+ <!-- Disable the PDF link? -->
+ <disable-pdf-link>false</disable-pdf-link>
+ <!-- Disable the POD link? -->
+ <disable-pod-link>true</disable-pod-link>
+ <!-- Disable the Text link? FIXME: NOT YET IMPLEMENETED. -->
+ <disable-txt-link>true</disable-txt-link>
+ <!-- Disable the xml source link? -->
+ <!-- The xml source link makes it possible to access the xml rendition
+ of the source frim the html page, and to have it generated statically.
+ This can be used to enable other sites and services to reuse the
+ xml format for their uses. Keep this disabled if you don't want other
+ sites to easily reuse your pages.-->
+ <disable-xml-link>true</disable-xml-link>
+
+ <!-- Disable navigation icons on all external links? -->
+ <disable-external-link-image>true</disable-external-link-image>
+
+ <!-- Disable w3c compliance links?
+ Use e.g. align="center" to move the compliance links logos to
+ an alternate location default is left.
+ (if the skin supports it) -->
+ <disable-compliance-links>true</disable-compliance-links>
+
+ <!-- Render mailto: links unrecognisable by spam harvesters? -->
+ <obfuscate-mail-links>false</obfuscate-mail-links>
+
+ <!-- Disable the javascript facility to change the font size -->
+ <disable-font-script>true</disable-font-script>
+
+ <!-- project logo -->
+ <project-name></project-name>
+ <project-description></project-description>
+ <project-url></project-url>
+ <project-logo></project-logo>
+
+ <!-- group logo -->
+ <group-name>Hama</group-name>
+ <group-description></group-description>
+ <group-url>index.html</group-url>
+ <group-logo>images/apache-incubator-hama-white.png</group-logo>
+
+ <!-- optional host logo (e.g. sourceforge logo)
+ default skin: renders it at the bottom-left corner -->
+ <host-url></host-url>
+ <host-logo></host-logo>
+
+ <!-- relative url of a favicon file, normally favicon.ico -->
+ <favicon-url>images/favicon.ico</favicon-url>
+
+ <!-- The following are used to construct a copyright statement -->
+ <year>2008</year>
+ <vendor>The Apache Software Foundation.</vendor>
+ <copyright-link>http://www.apache.org/licenses/</copyright-link>
+
+ <!-- Some skins use this to form a 'breadcrumb trail' of links.
+ Use location="alt" to move the trail to an alternate location
+ (if the skin supports it).
+ Omit the location attribute to display the trail in the default location.
+ Use location="none" to not display the trail (if the skin supports it).
+ For some skins just set the attributes to blank.
+ <trail>
+ <link>
+ </trail>
+ -->
+
+ <trail>
+ <link1 name="Apache" href="http://www.apache.org/" />
+ <link2 name="Incubator" href="http://incubator.apache.org/" />
+ <link3 name="Hama" href="http://incubator.apache.org/hama/" />
+ </trail>
+
+ <!-- Configure the TOC, i.e. the Table of Contents.
+ @max-depth
+ how many "section" levels need to be included in the
+ generated Table of Contents (TOC).
+ @min-sections
+ Minimum required to create a TOC.
+ @location ("page","menu","page,menu", "none")
+ Where to show the TOC.
+ -->
+ <toc max-depth="2" min-sections="1" location="page"/>
+
+ <!-- Heading types can be clean|underlined|boxed -->
+ <headings type="clean"/>
+
+ <!-- The optional feedback element will be used to construct a
+ feedback link in the footer with the page pathname appended:
+ <a href="@href">{@to}</a>
+ <feedback to="webmaster@foo.com"
+ href="mailto:webmaster@foo.com?subject=Feedback " >
+ Send feedback about the website to:
+ </feedback>
+ -->
+ <!--
+ extra-css - here you can define custom css-elements that are
+ a. overriding the fallback elements or
+ b. adding the css definition from new elements that you may have
+ used in your documentation.
+ -->
+ <extra-css>
+ <!--Example of b.
+ To define the css definition of a new element that you may have used
+ in the class attribute of a <p> node.
+ e.g. <p class="quote"/>
+
+ p.quote {
+ margin-left: 2em;
+ padding: .5em;
+ background-color: #f0f0f0;
+ font-family: monospace;
+ }
+ -->
+ #footer a { color: black; }
+ NonBorderTable { border-style: hidden }
+ </extra-css>
+
+ <colors>
+ <!-- These values are used for the generated CSS files. -->
+
+ <!-- Krysalis -->
+<!--
+ <color name="header" value="#FFFFFF"/>
+
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#a5b6c6"/>
+ <color name="subheading" value="#CFDCED"/>
+
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="toolbox" value="#a5b6c6"/>
+ <color name="border" value="#a5b6c6"/>
+
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="dialog" value="#F7F7F7"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+
+ <color name="table" value="#a5b6c6"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#a5b6c6"/>
+
+ <color name="footer" value="#a5b6c6"/>
+-->
+
+ <!-- Forrest -->
+<!--
+ <color name="header" value="#294563"/>
+
+ <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-unselected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+
+ <color name="navstrip" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+
+ <color name="dialog" value="#4a6d8c"/>
+ <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+ <color name="table" value="#7099C5"/>
+ <color name="table-cell" value="#f0f0ff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#CFDCED"/>
+
+ <color name="footer" value="#cedfef"/>
+ <color name="toolbox" value="#4a6d8c"/>
+ <color name="border" value="#294563"/>
+-->
+ <!-- Collabnet -->
+ <!--
+ <color name="header" value="#003366"/>
+ <color name="tab-selected" value="#dddddd" link="#555555" vlink="#555555" hlink="#555555"/>
+ <color name="tab-unselected" value="#999999" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="subtab-selected" value="#cccccc" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#cccccc" link="#555555" vlink="#555555" hlink="#555555"/>
+
+ <color name="heading" value="#003366"/>
+ <color name="subheading" value="#888888"/>
+
+ <color name="navstrip" value="#dddddd" font="#555555"/>
+ <color name="toolbox" value="#dddddd" font="#555555"/>
+ <color name="border" value="#999999"/>
+
+ <color name="menu" value="#ffffff"/>
+ <color name="dialog" value="#eeeeee"/>
+
+ <color name="body" value="#ffffff"/>
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#ffffff"/>
+-->
+ <!-- Lenya using pelt-->
+<!--
+ <color name="header" value="#ffffff"/>
+
+ <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#E5E4D9"/>
+ <color name="subheading" value="#000000"/>
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
+
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
+
+ <color name="border" value="#999999"/>
+ <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" current="#FFCC33" />
+ <color name="menuheading" value="#cfdced" font="#000000" />
+ <color name="searchbox" value="#E5E4D9" font="#000000"/>
+
+ <color name="dialog" value="#CFDCED"/>
+ <color name="body" value="#ffffff" />
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#E5E4D9"/>
+-->
+ </colors>
+
+ <!-- Settings specific to PDF output. -->
+ <pdf>
+ <!--
+ Supported page sizes are a0, a1, a2, a3, a4, a5, executive,
+ folio, legal, ledger, letter, quarto, tabloid (default letter).
+ Supported page orientations are portrait, landscape (default
+ portrait).
+ Supported text alignments are left, right, justify (default left).
+ -->
+ <page size="letter" orientation="portrait" text-align="left"/>
+
+ <!--
+ Margins can be specified for top, bottom, inner, and outer
+ edges. If double-sided="false", the inner edge is always left
+ and the outer is always right. If double-sided="true", the
+ inner edge will be left on odd pages, right on even pages,
+ the outer edge vice versa.
+ Specified below are the default settings.
+ -->
+ <margins double-sided="false">
+ <top>1in</top>
+ <bottom>1in</bottom>
+ <inner>1.25in</inner>
+ <outer>1in</outer>
+ </margins>
+
+ <!--
+ Print the URL text next to all links going outside the file
+ -->
+ <show-external-urls>false</show-external-urls>
+
+ <!--
+ Disable the copyright footer on each page of the PDF.
+ A footer is composed for each page. By default, a "credit" with role=pdf
+ will be used, as explained below. Otherwise a copyright statement
+ will be generated. This latter can be disabled.
+ -->
+ <disable-copyright-footer>false</disable-copyright-footer>
+ </pdf>
+
+ <!-- Credits are typically rendered as a set of small clickable
+ images in the page footer.
+ Use box-location="alt" to move the credit to an alternate location
+ (if the skin supports it).
+ -->
+ <credits>
+ <credit box-location="alt">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ <image>images/built-with-forrest-button.png</image>
+ <width>88</width>
+ <height>31</height>
+ </credit>
+ <!-- A credit with @role="pdf" will be used to compose a footer
+ for each page in the PDF, using either "name" or "url" or both.
+ -->
+ <!--
+ <credit role="pdf">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ </credit>
+ -->
+ </credits>
+
+</skinconfig>
Added: incubator/hama/branches/hama-0.19/src/docs/status.xml
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/docs/status.xml?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/docs/status.xml (added)
+++ incubator/hama/branches/hama-0.19/src/docs/status.xml Thu Sep 10 05:32:52 2009
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ 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.
+-->
+<status>
+
+ <developers>
+ <person name="Joe Bloggs" email="joe@joescompany.org" id="JB" />
+ <!-- Add more people here -->
+ </developers>
+
+ <changes>
+ <!-- Add new releases here -->
+ <release version="0.1" date="unreleased">
+ <!-- Some action types have associated images. By default, images are
+ defined for 'add', 'fix', 'remove', 'update' and 'hack'. If you add
+ src/documentation/resources/images/<foo>.jpg images, these will
+ automatically be used for entries of type <foo>. -->
+
+ <action dev="JB" type="add" context="admin">
+ Initial Import
+ </action>
+ <!-- Sample action:
+ <action dev="JB" type="fix" due-to="Joe Contributor"
+ due-to-email="joec@apache.org" fixes-bug="123">
+ Fixed a bug in the Foo class.
+ </action>
+ -->
+ </release>
+ </changes>
+
+ <todo>
+ <actions priority="high">
+ <action context="docs" dev="JB">
+ Customize this template project with your project's details. This
+ TODO list is generated from 'status.xml'.
+ </action>
+ <action context="docs" dev="JB">
+ Add lots of content. XML content goes in
+ <code>src/documentation/content/xdocs</code>, or wherever the
+ <code>${project.xdocs-dir}</code> property (set in
+ <code>forrest.properties</code>) points.
+ </action>
+ <action context="feedback" dev="JB">
+ Mail <link
+ href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link>
+ with feedback.
+ </action>
+ </actions>
+ <!-- Add todo items. @context is an arbitrary string. Eg:
+ <actions priority="high">
+ <action context="code" dev="SN">
+ </action>
+ </actions>
+ <actions priority="medium">
+ <action context="docs" dev="open">
+ </action>
+ </actions>
+ -->
+ </todo>
+
+</status>
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/AbstractExample.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/AbstractExample.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/AbstractExample.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/AbstractExample.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,52 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.hama.HamaConfiguration;
+
+public abstract class AbstractExample {
+ public static final HamaConfiguration conf = new HamaConfiguration();
+ public static List<String> ARGS;
+
+ public static void parseArgs(String[] args) {
+ List<String> other_args = new ArrayList<String>();
+ for (int i = 0; i < args.length; ++i) {
+ try {
+ if ("-m".equals(args[i])) {
+ conf.setNumMapTasks(Integer.parseInt(args[++i]));
+ } else if ("-r".equals(args[i])) {
+ conf.setNumReduceTasks(Integer.parseInt(args[++i]));
+ } else {
+ other_args.add(args[i]);
+ }
+ } catch (NumberFormatException except) {
+ System.out.println("ERROR: Integer expected instead of " + args[i]);
+ } catch (ArrayIndexOutOfBoundsException except) {
+ System.out.println("ERROR: Required parameter missing from "
+ + args[i - 1]);
+ }
+ }
+
+ ARGS = other_args;
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/ExampleDriver.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/ExampleDriver.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/ExampleDriver.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/ExampleDriver.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,39 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import org.apache.hadoop.util.ProgramDriver;
+
+public class ExampleDriver {
+
+ public static void main(String[] args) {
+ ProgramDriver pgd = new ProgramDriver();
+ try {
+ pgd.addClass("rand", RandomMatrix.class, "Generate matrix with random elements.");
+ pgd.addClass("add", MatrixAddition.class, "Mat-Mat addition.");
+ pgd.addClass("mult", MatrixMultiplication.class, "Mat-Mat multiplication.");
+ pgd.addClass("multfiles", FileMatrixBlockMult.class, "file matrices multiplication.");
+ pgd.addClass("norm", MatrixNorm.class, "Maximum absolute row sum of matrix");
+ pgd.driver(args);
+ } catch (Throwable e) {
+ e.printStackTrace();
+ }
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/FileMatrixBlockMult.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/FileMatrixBlockMult.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/FileMatrixBlockMult.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/FileMatrixBlockMult.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,161 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.io.IOException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.hbase.HColumnDescriptor;
+import org.apache.hadoop.hbase.HTableDescriptor;
+import org.apache.hadoop.hbase.client.HBaseAdmin;
+import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.io.DoubleWritable;
+import org.apache.hadoop.io.IntWritable;
+import org.apache.hadoop.io.MapWritable;
+import org.apache.hadoop.mapred.FileInputFormat;
+import org.apache.hadoop.mapred.JobClient;
+import org.apache.hadoop.mapred.JobConf;
+import org.apache.hadoop.mapred.OutputCollector;
+import org.apache.hadoop.mapred.Reporter;
+import org.apache.hadoop.mapred.SequenceFileInputFormat;
+import org.apache.hama.Constants;
+import org.apache.hama.DenseMatrix;
+import org.apache.hama.DenseVector;
+import org.apache.hama.HamaConfiguration;
+import org.apache.hama.algebra.BlockMultiplyMap;
+import org.apache.hama.algebra.BlockMultiplyReduce;
+import org.apache.hama.io.BlockID;
+import org.apache.hama.io.BlockWritable;
+import org.apache.hama.mapred.CollectBlocksMap;
+import org.apache.hama.mapred.CollectBlocksMapReduceBase;
+import org.apache.hama.util.JobManager;
+import org.apache.hama.util.RandomVariable;
+
+public class FileMatrixBlockMult extends AbstractExample {
+ final static Log LOG = LogFactory.getLog(FileMatrixBlockMult.class.getName());
+ private static int BLOCKSIZE;
+ private static int ROWS;
+ private static int COLUMNS;
+
+ /**
+ * Collect blocks from sequence file,
+ */
+ public static class MyMapper extends CollectBlocksMapReduceBase implements
+ CollectBlocksMap<IntWritable, MapWritable> {
+ private MapWritable value;
+
+ @Override
+ public void map(IntWritable key, MapWritable value,
+ OutputCollector<BlockID, MapWritable> output, Reporter reporter)
+ throws IOException {
+ int startColumn, endColumn, blkRow = key.get() / mBlockRowSize, i = 0;
+ this.value = value;
+
+ do {
+ startColumn = i * mBlockColSize;
+ endColumn = startColumn + mBlockColSize - 1;
+ if (endColumn >= mColumns) // the last sub vector
+ endColumn = mColumns - 1;
+ output.collect(new BlockID(blkRow, i), subVector(key.get(), startColumn, endColumn));
+
+ i++;
+ } while (endColumn < (mColumns - 1));
+ }
+
+ private MapWritable subVector(int row, int i0, int i1) {
+ DenseVector res = new DenseVector();
+ res.setRow(row);
+
+ for (int i = i0; i <= i1; i++) {
+ res.set(i, ((DoubleWritable) this.value.get(new IntWritable(i))).get());
+ }
+
+ return res.getEntries();
+ }
+ }
+
+ /**
+ * @param a the path of matrix A
+ * @param b the path of matrix B
+ * @return the result C
+ * @throws IOException
+ */
+ private static DenseMatrix matMult(Path a, Path b) throws IOException {
+ HamaConfiguration conf = new HamaConfiguration();
+ HBaseAdmin admin = new HBaseAdmin(conf);
+ String collectionTable = "collect_" + RandomVariable.randMatrixPath();
+ HTableDescriptor desc = new HTableDescriptor(collectionTable);
+ desc.addFamily(new HColumnDescriptor(Bytes.toBytes(Constants.BLOCK)));
+ admin.createTable(desc);
+
+ collectBlocksFromFile(a, true, collectionTable, conf);
+ collectBlocksFromFile(b, false, collectionTable, conf);
+
+ DenseMatrix result = new DenseMatrix(conf, ROWS, COLUMNS);
+ JobConf jobConf = new JobConf(conf);
+ jobConf.setJobName("multiplication MR job : " + result.getPath());
+
+ BlockMultiplyMap.initJob(collectionTable, BlockMultiplyMap.class,
+ BlockID.class, BlockWritable.class, jobConf);
+ BlockMultiplyReduce.initJob(result.getPath(), BlockMultiplyReduce.class,
+ jobConf);
+
+ JobManager.execute(jobConf, result);
+
+ return result;
+ }
+
+ public static void main(String[] args) throws IOException {
+ if (args.length < 5) {
+ System.out
+ .println("multfiles [-m maps] [-r reduces] <seqfile1> <seqfile1> <blocks> <rows> <columns>");
+ System.exit(-1);
+ } else {
+ parseArgs(args);
+ }
+
+ Path a = new Path(ARGS.get(0));
+ Path b = new Path(ARGS.get(1));
+
+ BLOCKSIZE = Integer.parseInt(ARGS.get(2));
+ // You should know dimensions
+ ROWS = Integer.parseInt(ARGS.get(3));
+ COLUMNS = Integer.parseInt(ARGS.get(4));
+
+ DenseMatrix result = matMult(a, b);
+ System.out.println("result: " + result.getRows() + " by "
+ + result.getColumns());
+ }
+
+ private static void collectBlocksFromFile(Path path, boolean b,
+ String collectionTable, HamaConfiguration conf) throws IOException {
+ JobConf jobConf = new JobConf(conf);
+ jobConf.setJobName("Blocking MR job" + path);
+
+ jobConf.setMapperClass(MyMapper.class);
+ jobConf.setInputFormat(SequenceFileInputFormat.class);
+ FileInputFormat.addInputPath(jobConf, path);
+
+ MyMapper.initJob(collectionTable, b, BLOCKSIZE, ROWS, COLUMNS, jobConf);
+ JobClient.runJob(jobConf);
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixAddition.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixAddition.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixAddition.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixAddition.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,54 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.io.IOException;
+
+import org.apache.hama.DenseMatrix;
+import org.apache.hama.Matrix;
+
+public class MatrixAddition extends AbstractExample {
+ public static void main(String[] args) throws IOException {
+ if (args.length < 2) {
+ System.out
+ .println("add [-m maps] [-r reduces] <matrix A> <matrix B> [alpha]");
+ System.exit(-1);
+ } else {
+ parseArgs(args);
+ }
+
+ String matrixA = ARGS.get(0);
+ String matrixB = ARGS.get(1);
+
+ DenseMatrix a = new DenseMatrix(conf, matrixA, false);
+ DenseMatrix b = new DenseMatrix(conf, matrixB, false);
+
+ Matrix c;
+ if (ARGS.size() > 2) {
+ System.out.println("C = "+ Double.parseDouble(ARGS.get(2)) +" * B + A");
+ c = a.add(Double.parseDouble(ARGS.get(2)), b);
+ } else {
+ System.out.println("C = A + B");
+ c = a.add(b);
+ }
+
+ c.close();
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixMultiplication.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixMultiplication.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixMultiplication.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixMultiplication.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,68 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.io.IOException;
+
+import org.apache.hama.DenseMatrix;
+import org.apache.hama.HamaAdmin;
+import org.apache.hama.HamaAdminImpl;
+import org.apache.hama.Matrix;
+import org.apache.hama.SparseMatrix;
+
+public class MatrixMultiplication extends AbstractExample {
+ public static void main(String[] args) throws IOException {
+ if (args.length < 2) {
+ System.out
+ .println("mult [-m maps] [-r reduces] <matrix A> <matrix B> [blocks]");
+ System.exit(-1);
+ } else {
+ parseArgs(args);
+ }
+
+ String matrixA = ARGS.get(0);
+ String matrixB = ARGS.get(1);
+
+ HamaAdmin admin = new HamaAdminImpl(conf);
+ Matrix a = admin.getMatrix(matrixA);
+ Matrix b = admin.getMatrix(matrixB);
+
+ if (!a.getType().equals(b.getType())) {
+ System.out.println(a.getType() + " != " + b.getType());
+ System.exit(-1);
+ }
+
+ Matrix c;
+ if (a.getType().equals("SparseMatrix")) {
+ c = ((SparseMatrix) a).mult(b);
+ } else {
+ if (ARGS.size() > 2) {
+ c = ((DenseMatrix) a).mult(b, Integer.parseInt(ARGS.get(2)));
+ } else {
+ c = ((DenseMatrix) a).mult(b);
+ }
+ }
+
+ for (int i = 0; i < 2; i++) {
+ System.out.println("c(" + 0 + ", " + i + ") : " + c.get(0, i));
+ }
+ System.out.println("...");
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixNorm.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixNorm.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixNorm.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/MatrixNorm.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,55 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.io.IOException;
+
+import org.apache.hama.HamaAdmin;
+import org.apache.hama.HamaAdminImpl;
+import org.apache.hama.Matrix;
+import org.apache.hama.Matrix.Norm;
+
+public class MatrixNorm extends AbstractExample {
+ public static void main(String[] args) throws IOException {
+ if (args.length < 1) {
+ System.out.println("norm [-m maps] [-r reduces] <matrix name> <type>");
+ System.out.println("arguments: type - one | infinity | frobenius | maxvalue");
+ System.exit(-1);
+ } else {
+ parseArgs(args);
+ }
+
+ HamaAdmin admin = new HamaAdminImpl(conf);
+ Matrix a = admin.getMatrix(ARGS.get(0));
+ if(ARGS.get(1).equalsIgnoreCase("one")) {
+ System.out.println("The maximum absolute column sum of matrix '" + ARGS.get(0)
+ + "' is " + a.norm(Norm.One));
+ } else if(ARGS.get(1).equalsIgnoreCase("infinity")) {
+ System.out.println("The maximum absolute row sum of matrix '" + ARGS.get(0)
+ + "' is " + a.norm(Norm.Infinity));
+ } else if(ARGS.get(1).equalsIgnoreCase("frobenius")) {
+ System.out.println("The root of sum of squares of matrix '" + ARGS.get(0)
+ + "' is " + a.norm(Norm.Frobenius));
+ } else {
+ System.out.println("The max absolute cell value of matrix '" + ARGS.get(0)
+ + "' is " + a.norm(Norm.Maxvalue));
+ }
+ }
+}
Added: incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/RandomMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/RandomMatrix.java?rev=813233&view=auto
==============================================================================
--- incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/RandomMatrix.java (added)
+++ incubator/hama/branches/hama-0.19/src/examples/org/apache/hama/examples/RandomMatrix.java Thu Sep 10 05:32:52 2009
@@ -0,0 +1,53 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * 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.
+ */
+package org.apache.hama.examples;
+
+import java.io.IOException;
+
+import org.apache.hama.DenseMatrix;
+import org.apache.hama.Matrix;
+import org.apache.hama.SparseMatrix;
+
+public class RandomMatrix extends AbstractExample {
+
+ public static void main(String[] args) throws IOException {
+ if (args.length < 3) {
+ System.out
+ .println("rand [-m maps] [-r reduces] <rows> <columns> <density> <matrix_name>");
+ System.out
+ .println("ex) rand -m 10 -r 10 2000 2000 30.5% matrixA");
+ System.exit(-1);
+ } else {
+ parseArgs(args);
+ }
+
+ int row = Integer.parseInt(ARGS.get(0));
+ int column = Integer.parseInt(ARGS.get(1));
+ double percent = Double.parseDouble(ARGS.get(2).substring(0, ARGS.get(2).length()-1));
+
+ Matrix a;
+ if(percent == 100)
+ a = DenseMatrix.random_mapred(conf, row, column);
+ else
+ a = SparseMatrix.random_mapred(conf, row, column, percent);
+
+ a.save(ARGS.get(3));
+ }
+}