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/slider-tomcat-app-package-0.91.0-incubating-SNAPSHOT.zip
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
java_home to the correct values. Feel free to adjust the memory usage as well.
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.