tree: 29b42b36912b347d2609b50545f1a31ce458abbf [path history] [tgz]
  1. package/
  2. src/
  3. appConfig-default.json
  4. LICENSE.txt
  5. metainfo.xml
  6. NOTICE.txt
  7. pom.xml
  8. README.md
  9. resources-default.json
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 install-package --name tomcat --package path/to/slider-tomcat-app-package-0.72.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. 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.

Until the QuickLinks/exports is resolved for this app package, the port must be determined manually using a tool such as netstat and the pid of the Tomcat process. Sorry.