This repository has been archived by the owner on May 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from jhlch/docs
Use reflow for maven site.
- Loading branch information
Showing
13 changed files
with
944 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ pom.xml.next | |
release.properties | ||
*.iml | ||
.idea/ | ||
dependency-reduced-pom.xml | ||
dependency-reduced-pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Contribute | ||
|
||
* [Issues](https://github.com/OryxProject/oryx/issues/) | ||
* [Fork on GitHub](https://github.com/OryxProject/oryx/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Javadoc | ||
======= | ||
|
||
See project [javadoc](http://oryxproject.github.io/oryx/apidocs/index.html). | ||
|
||
Bundled Serving Layer Apps | ||
========================== | ||
|
||
Oryx bundles several end-to-end applications, including a Serving Layer with REST endpoints. | ||
The bundled app endpoints are: | ||
|
||
Collaborative filtering / Recommendation | ||
---------------------------------------- | ||
|
||
* [`/recommend`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Recommend.html) | ||
* [`/recommendToMany`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/RecommendToMany.html) | ||
* [`/recommendToAnonymous`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/RecommendToAnonymous.html) | ||
* [`/similarity`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Similarity.html) | ||
* [`/similarityToItem`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/SimilarityToItem.html) | ||
* [`/knownItems`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/KnownItems.html) | ||
* [`/estimate`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Estimate.html) | ||
* [`/estimateForAnonymous`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/EstimateForAnonymous.html) | ||
* [`/because`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Because.html) | ||
* [`/mostSurprising`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/MostSurprising.html) | ||
* [`/popularRepresentativeItems`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/PopularRepresentativeItems.html) | ||
* [`/mostPopularItems`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/MostPopularItems.html) | ||
* [`/mostActiveUsers`] (http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/MostActiveUsers.html) | ||
* [`/item/allIDs`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/AllItemIDs.html) | ||
* [`/ready`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Ready.html) | ||
* [`/pref`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Preference.html) | ||
* [`/ingest`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/als/Ingest.html) | ||
|
||
Classification / Regression | ||
--------------------------- | ||
|
||
* [`/predict`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/rdf/Predict.html) | ||
* [`/classificationDistribution`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/rdf/ClassificationDistribution.html) | ||
* [`/train`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/rdf/Train.html) | ||
|
||
Clustering | ||
---------- | ||
|
||
* [`/assign`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/kmeans/Assign.html) | ||
* [`/distanceToNearest`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/kmeans/DistanceToNearest.html) | ||
* [`/add`](http://oryxproject.github.io/oryx/apidocs/com/cloudera/oryx/app/serving/kmeans/Add.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Tests show errors, but still pass? | ||
|
||
[This issue](https://github.com/OryxProject/oryx/issues/73) catalogs the problem. These seem | ||
to be ignorable errors that are attributable to the fact that a Zookeeper and Kafka process | ||
are started and stopped rapidly. Although this is done cleanly with some built-in waiting, it | ||
does not seem sufficient. | ||
|
||
There is likely a better answer but exceptions shown in the issue above can be ignored. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
This will only be of interest to the project's maintainers! | ||
|
||
# Prerequisites | ||
|
||
This process requires that you have created a file called, for example, `private-settings.xml` which contains authentication credentials for pushing to the distribution repository. Example: | ||
|
||
``` | ||
<?xml version="1.0"?> | ||
<settings> | ||
<servers> | ||
<server> | ||
<id>oryx.repo</id> | ||
<username>snapshots</username> | ||
<password>...</password> | ||
</server> | ||
<server> | ||
<id>oryx.snapshots.repo</id> | ||
<username>snapshots</username> | ||
<password>...</password> | ||
</server> | ||
</servers> | ||
</settings> | ||
``` | ||
|
||
It also requires that you have the GPG key that is written into the project POM, and that you know its passphrase. | ||
|
||
# Releasing Maven Artifacts | ||
|
||
1. Clone `master` from the repo: | ||
`git clone https://github.com/OryxProject/oryx.git` | ||
|
||
1. If this is a fresh checkout, optionally configure your user name and email for use with git commits, if not already set globally: | ||
`git config user.name "Your Name"` | ||
`git config user.email "Your Email"` | ||
|
||
1. Double-check that tests pass and packaging succeeds first: | ||
`mvn clean package` | ||
|
||
1. Check for problems or errors first with `-DdryRun`. Consider skipping the (lengthy) tests in these steps with `-DskipTests` if they've been run already. To avoid answering the same question many times, the release and new development versions can be supplied on the command line: | ||
`mvn -Darguments="-DskipTests" -DdryRun -DreleaseVersion=... -DdevelopmentVersion=... release:prepare` | ||
|
||
1. Repeat the above without `-DdryRun`. | ||
|
||
1. Now perform the release. This will require the `gpg` passphrase for the GPG signing key specified in `pom.xml`: | ||
`mvn -s private-settings.xml -Darguments="-DskipTests -Dgpg.passphrase=..." release:perform` | ||
|
||
# Releasing Binaries | ||
|
||
1. To get the latest changes and tags post-build, `git pull --tags` | ||
1. Checkout the build tag for this build with `git checkout tags/...` | ||
1. `mvn -DskipTests clean package` | ||
1. Assembled binaries appear at `oryx-serving/target/oryx-serving-....jar` and likewise for `speed` and `batch` | ||
1. Navigate to the Github release that was just created, at `https://github.com/OryxProject/oryx/releases/tag/...` | ||
1. Edit the title to something more meaningful like `Oryx x.y.z` | ||
1. Paste brief release notes into the description, including a link to resolved issues for the associated milestone, usually of the form `https://github.com/OryxProject/oryx/issues?q=milestone%3A...+is%3Aclosed` | ||
1. Attach the Batch, Speed, and Serving layer binaries and save the updated release. | ||
|
||
# Updating the Site | ||
|
||
1. Using the repo above, checkout the release tag: `git checkout -f tags/...` | ||
1. `mvn clean site:site site:stage` | ||
1. In another location, checkout the site branch into a new directory `oryx-gh-pages`: | ||
`git clone -b gh-pages https://github.com/OryxProject/oryx.git oryx-gh-pages` | ||
You may need to set `user.name` and `user.email` as above if it's a fresh clone. | ||
1. `rm -r .../oryx-gh-pages/*` | ||
1. `cp -r target/staging/* .../oryx-gh-pages/` | ||
1. `cd .../oryx-gh-pages` | ||
1. `git add -A .` | ||
1. `git commit -m "Update site for ..."` | ||
1. `git push origin gh-pages` | ||
1. In a minute, check your work at http://oryxproject.github.io/oryx/ | ||
1. Optionally delete the repo cloned above if no longer needed. |
Oops, something went wrong.