Skip to content

Commit

Permalink
Updated readme + renamed a file
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew committed Aug 29, 2012
1 parent 890ecd6 commit 01eb4dc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 34 deletions.
22 changes: 21 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,30 @@ Oozie-Web
A pretty, more usable dashboard for Apache Oozie built with Scala, Scalatra, and Twitter Bootstrap


BASIC OVERVIEW
code: src/main/scala
web resources: src/main/webapp
config: src/main/resources


OOZIE VERSIONS
This is built and tested against oozie 2.3.2 from Cloudera's CDH3u3 hadoop distribution.
It has not been tested against oozie 3, nor are there any oozie3 features represented currently.


GETTING STARTED
1) cp src/main/resources/oozie.properties.example src/main/resources/oozie.properties
2) edit oozie.properties with your oozieUrl of choice
3) ./sbt
4) sbt> container:start
5) enjoy the view at localhost:8080
5) enjoy the view at localhost:8080


DEPLOYMENT
We use a simple deployment method which runs JettyLauncher#main
./sbt assembly
java jar target/oozie-web.jar 8080

Currently this requires src/main/webapp to still be on the filesystem
for the jar to find, which isn't ideal, but works for now.
Ideally it would look inside the jar for the files
Original file line number Diff line number Diff line change
Expand Up @@ -153,36 +153,4 @@ class OozieDashboard() extends ScalatraServlet with ScalateSupport {
}


}

// object JettyLauncher {
// def main(args: Array[String]) {
// if (args.size < 2) {
// println.error("usage: ./oozieDash <port> <oozieUrl>")
// return
// }
// val port = args(0).toInt
// val oozie = args(1)
// val server = new Server(port)

// val static = new ResourceHandler()
// static.setResourceBase("core/src/main/scalate/com/foursquare/oozie/dashboard/static")
// static.setDirectoriesListed(false)

// val staticContext = new ContextHandler()
// staticContext.setContextPath("/static");
// staticContext.setHandler(static);

// val root = new ServletContextHandler(ServletContextHandler.SESSIONS)
// root.setContextPath("/")
// root.addServlet(new ServletHolder(new OozieDashboard(oozie)), "/*")
// root.setResourceBase("core/src/main/scalate/com/foursquare/oozie/dashboard")


// val handlers = new HandlerList()
// handlers.setHandlers(Array(staticContext, root))
// server.setHandler(handlers)

// server.start()
// server.join()
// }}
}

0 comments on commit 01eb4dc

Please sign in to comment.