fixed env path bug preventing startup of dist, now working fine starting up voldemort
This commit is contained in:
parent
c809eac23f
commit
4a798881e6
2 changed files with 8 additions and 7 deletions
|
|
@ -13,7 +13,7 @@ import java.net.{URL, URLClassLoader}
|
|||
/**
|
||||
* @author <a href="http://jonasboner.com">Jonas Bonér</a>
|
||||
*/
|
||||
class Boot extends Logging {
|
||||
object Boot extends Logging {
|
||||
|
||||
/**
|
||||
* Assumes that the AKKA_HOME directory is set with /config, /classes and /lib beneath it holding files and jars.
|
||||
|
|
@ -24,13 +24,14 @@ class Boot extends Logging {
|
|||
* $AKKA_HOME/lib
|
||||
* $AKKA_HOME/config
|
||||
*/
|
||||
def main(args: Array[String]) = {
|
||||
val HOME = System.getProperty("AKKA_HOME", "..")
|
||||
def main(args: Array[String]): Unit = {
|
||||
// TODO: read from env rather than jvm variables
|
||||
val HOME = System.getProperty("AKKA_HOME", ".")
|
||||
val CLASSES = HOME + "/classes"
|
||||
val LIB = HOME + "/lib"
|
||||
val CONFIG = HOME + "/config"
|
||||
|
||||
log.info("Bootstrapping Akka server from AKKA_HOME=" + HOME)
|
||||
log.info("Bootstrapping Akka server from AKKA_HOME=%s", HOME)
|
||||
|
||||
val libs = for (f <- new File(LIB).listFiles().toArray.toList.asInstanceOf[List[File]]) yield f.toURL
|
||||
val urls = new File(CLASSES).toURL :: libs
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import javax.management.JMException
|
|||
object Kernel extends Logging {
|
||||
|
||||
val SERVER_URL = "localhost"
|
||||
val HOME = System.getProperty("AKKA_HOME", "..")
|
||||
val HOME = System.getProperty("AKKA_HOME", ".")
|
||||
|
||||
val JERSEY_SERVER_URL = "http://" + SERVER_URL + "/"
|
||||
val JERSEY_SERVER_PORT = 9998
|
||||
|
|
@ -43,7 +43,7 @@ object Kernel extends Logging {
|
|||
val ZOO_KEEPER_SERVER_URL = SERVER_URL
|
||||
val ZOO_KEEPER_SERVER_PORT = 9898
|
||||
|
||||
def main(args: Array[String]) = {
|
||||
def main(args: Array[String]): Unit = {
|
||||
//startZooKeeper
|
||||
startVoldemort
|
||||
//val threadSelector = startJersey
|
||||
|
|
@ -66,7 +66,7 @@ object Kernel extends Logging {
|
|||
val config = VoldemortConfig.loadFromVoldemortHome(HOME)
|
||||
val server = new VoldemortServer(config)
|
||||
server.start
|
||||
log.info("Replicated persistent storage server started at s%", VOLDEMORT_SERVER_URL + ":" + VOLDEMORT_SERVER_PORT)
|
||||
log.info("Replicated persistent storage server started at %s", VOLDEMORT_SERVER_URL + ":" + VOLDEMORT_SERVER_PORT)
|
||||
}
|
||||
|
||||
// private[akka] def startZooKeeper = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue