Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class Main {
BK_OPTS.addOption("z", "zkserver", true, "Zookeeper Server");
BK_OPTS.addOption("m", "zkledgerpath", true, "Zookeeper ledgers root path");
BK_OPTS.addOption("p", "bookieport", true, "bookie port exported");
BK_OPTS.addOption("hp", "httpport", true, "bookie http port exported");
BK_OPTS.addOption("j", "journal", true, "bookie journal directory");
Option indexDirs = new Option ("i", "indexdirs", true, "bookie index directories");
indexDirs.setArgs(10);
Expand Down Expand Up @@ -173,6 +174,13 @@ private static ServerConfiguration parseArgs(String[] args)
conf.setBookiePort(iPort.intValue());
}

if (cmdLine.hasOption("httpport")) {
String sPort = cmdLine.getOptionValue("httpport");
log.info("Get cmdline http port: {}", sPort);
Integer iPort = Integer.parseInt(sPort);
conf.setHttpServerPort(iPort.intValue());
}

if (cmdLine.hasOption('j')) {
String sJournalDir = cmdLine.getOptionValue('j');
log.info("Get cmdline journal dir: {}", sJournalDir);
Expand Down