tree: 576bd78c03f880e174ec8d2f0496ffb9ee4e073d [path history] [tgz]
  1. LICENSE.txt
  2. NOTICE.txt
  3. README.md
  4. appConfig-default.json
  5. metainfo.xml
  6. package/
  7. pom.xml
  8. resources-default.json
  9. src/
app-packages/tomcat/README.md

Apache Tomcat

Basic instructions on using the Apache Tomcat app-package.

Build

Check out the appropriate branch of slider, and build the project, providing the necessary profile activation for the Tomcat app package. You probably also want to skip tests. This will place zip file in app-packages/tomcat/target that will be used later.

mvn clean package -DskipTests -Ptomcat-app-package

Installation

The Tomcat application package is distributed as a zip archive. Use the slider install command to install it into HDFS for use. You must also provide an identifying name (such as “tomcat”).

slider package --install --name tomcat --package path/to/slider-tomcat-app-package-0.91.0-incubating-SNAPSHOT.zip

Configuration

Copy appConfig-default.json and resources-default.json. By default, these files will create one instance of Tomcat using a dynamic port provided by Slider.

In the copied appConfig.json, make sure you set application.def and java_home to the correct values. Feel free to adjust the memory usage as well.

Create a Slider cluster

Use the appConfig.json and resources.json file to create a Slider cluster now. The name of the cluster is user defined and must be unique: this example uses “tomcat1”

slider create tomcat1 --template path/to/appConfig.json --resources path/to/resources.json

Verify

Check the Slider Application Master page on the Hadoop YARN status page. You should see the application running and without failures. The address of the Tomcat servers will be listed as exports on the AppMaster's web UI.