tree: 65864b6e9b2befb7342e9118863a4ae41d1e606f [path history] [tgz]
  1. package/
  2. src/
  3. appConfig-default.json
  4. LICENSE.txt
  5. metainfo.xml
  6. NOTICE.txt
  7. pom.xml
  9. resources-default.json

Apache Tomcat

Basic instructions on using the Apache Tomcat app-package.


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


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/


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


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.