-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added files to configure zookeeper and its config file inside the con…
…tainer
- Loading branch information
1 parent
c1722ff
commit f0130ae
Showing
9 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
roq-simulation/src/main/resources/zkConfig/configuration.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
<xsl:output method="html"/> | ||
<xsl:template match="configuration"> | ||
<html> | ||
<body> | ||
<table border="1"> | ||
<tr> | ||
<td>name</td> | ||
<td>value</td> | ||
<td>description</td> | ||
</tr> | ||
<xsl:for-each select="property"> | ||
<tr> | ||
<td><a name="{name}"><xsl:value-of select="name"/></a></td> | ||
<td><xsl:value-of select="value"/></td> | ||
<td><xsl:value-of select="description"/></td> | ||
</tr> | ||
</xsl:for-each> | ||
</table> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
</xsl:stylesheet> | ||
|
50 changes: 50 additions & 0 deletions
50
roq-simulation/src/main/resources/zkConfig/log4j.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# ZooKeeper Logging Configuration | ||
# | ||
|
||
# Format is "<default threshold> (, <appender>)+ | ||
|
||
# DEFAULT: console appender only | ||
log4j.rootLogger=DEBUG | ||
|
||
# Example with rolling log file | ||
#log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE | ||
|
||
# Example with rolling log file and tracing | ||
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE | ||
|
||
# | ||
# Log INFO level and above messages to the console | ||
# | ||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender | ||
log4j.appender.CONSOLE.Threshold=${zookeeper.console.threshold} | ||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
# | ||
# Add ROLLINGFILE to rootLogger to get log file output | ||
# Log DEBUG level and above messages to a log file | ||
log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender | ||
log4j.appender.ROLLINGFILE.Threshold=${zookeeper.log.threshold} | ||
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/${zookeeper.log.file} | ||
|
||
# Max log file size of 10MB | ||
log4j.appender.ROLLINGFILE.MaxFileSize=10MB | ||
# uncomment the next line to limit number of backup files | ||
#log4j.appender.ROLLINGFILE.MaxBackupIndex=10 | ||
|
||
log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
|
||
# | ||
# Add TRACEFILE to rootLogger to get log file output | ||
# Log DEBUG level and above messages to a log file | ||
log4j.appender.TRACEFILE=org.apache.log4j.FileAppender | ||
log4j.appender.TRACEFILE.Threshold=TRACE | ||
log4j.appender.TRACEFILE.File=${zookeeper.tracelog.dir}/${zookeeper.tracelog.file} | ||
|
||
log4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout | ||
### Notice we are including log4j's NDC here (%x) | ||
log4j.appender.TRACEFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L][%x] - %m%n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tickTime=1000 | ||
dataDir=/var/zookeeper | ||
clientPort=2181 | ||
initLimit=3 | ||
syncLimit=2 | ||
server.1=localhost:2888:3888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters