mikewalch closed pull request #961: Adding empty lines on the properties to 
make it easier to parse
URL: https://github.com/apache/fluo/pull/961
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/modules/core/src/main/java/org/apache/fluo/core/impl/VisibilityCache.java 
b/modules/core/src/main/java/org/apache/fluo/core/impl/VisibilityCache.java
index eeb16934..4d75fbd2 100644
--- a/modules/core/src/main/java/org/apache/fluo/core/impl/VisibilityCache.java
+++ b/modules/core/src/main/java/org/apache/fluo/core/impl/VisibilityCache.java
@@ -49,7 +49,8 @@ public int weigh(Bytes key, ColumnVisibility vis) {
 
   VisibilityCache(FluoConfiguration conf) {
     visCache = CacheBuilder.newBuilder()
-        
.expireAfterAccess(FluoConfigurationImpl.getVisibilityCacheTimeout(conf, 
TimeUnit.MILLISECONDS),
+        .expireAfterAccess(
+            FluoConfigurationImpl.getVisibilityCacheTimeout(conf, 
TimeUnit.MILLISECONDS),
             TimeUnit.MILLISECONDS)
         
.maximumWeight(FluoConfigurationImpl.getVisibilityCacheSize(conf)).weigher(new 
VisWeigher())
         .concurrencyLevel(10).build();
diff --git a/modules/distribution/src/main/config/fluo-app.properties 
b/modules/distribution/src/main/config/fluo-app.properties
index 54d41ee6..8a1110a9 100644
--- a/modules/distribution/src/main/config/fluo-app.properties
+++ b/modules/distribution/src/main/config/fluo-app.properties
@@ -22,14 +22,17 @@
 
 ## Application properties
 ## ----------------------
-## Specifies an observer provider.  This should be the name of a class that
+## Specifies an observer provider. This should be the name of a class that
 ## implements org.apache.fluo.api.observer.ObserverProvider.
 #fluo.observer.provider=com.foo.AppObserverProvider
+
 ## Observer jars in this directory are copied to the DFS (specified by 
fluo.dfs.root) during initialization. 
 ## If this property is set, fluo.observer.jars.url should not be set.
 #fluo.observer.init.dir=/path/to/observer/jars/
+
 ## Observer jars are retreived from this URL. If set, fluo.observer.init.dir 
should not be set.
 #fluo.observer.jars.url=hdfs://localhost:8020/path/to/observer/jars/
+
 ## Properties with a prefix of fluo.app.* can easily be retrieved by a Fluo
 ## application running on any node in the cluster.
 #fluo.app.key1=val1
@@ -43,14 +46,19 @@ fluo.dfs.root=hdfs://localhost:8020/fluo
 ## -------------------
 ## Accumulo instance to connect to
 fluo.accumulo.instance=
+
 ## Accumulo table to initialize
 fluo.accumulo.table=\${fluo.connection.application.name}
+
 ## Accumulo user
 fluo.accumulo.user=
+
 ## Accumulo password
 fluo.accumulo.password=
+
 ## Accumulo zookeepers
 #fluo.accumulo.zookeepers=localhost
+
 ## Optional - List of jars to provide to Accumulo. If not set, Fluo will find 
jars on classpath.
 #fluo.accumulo.jars=/path/to/a.jar,/path/to/b.jar
 
@@ -66,10 +74,11 @@ fluo.accumulo.password=
 
 ## Loader properties
 ## -----------------
-## Number of threads each loader runs.  Can set to zero for no threads, thread
-## adding Loader will execute.  Must also set fluo.loader.queue.size to zero
+## Number of threads each loader runs. Can set to zero for no threads, thread
+## adding Loader will execute. Must also set fluo.loader.queue.size to zero
 ## when setting this to zero.
 #fluo.loader.num.threads=10
+
 ## Queue size of loader
 #fluo.loader.queue.size=10
 
diff --git a/modules/distribution/src/main/config/fluo-conn.properties 
b/modules/distribution/src/main/config/fluo-conn.properties
index 36a39b49..3f98e4ee 100644
--- a/modules/distribution/src/main/config/fluo-conn.properties
+++ b/modules/distribution/src/main/config/fluo-conn.properties
@@ -15,22 +15,25 @@
 # Fluo Connection properties
 ############################
 
-# NOTE - All properties that have a default are set with it.  Uncomment
+# NOTE - All properties that have a default are set with it. Uncomment
 # a property if you want to use a value different than the default. 
 # Properties that have no default are uncommented and must be set by
 # the user.
 
 ## Zookeeper connection string specifying host and chroot where Fluo stores 
data.
 ## A chroot directory suffix must be specified but doesn't need to be named
-## '/fluo'.  If not specified, a Fluo application cannot be initialized.
+## '/fluo'. If not specified, a Fluo application cannot be initialized.
 #fluo.connection.zookeepers=localhost/fluo
+
 ## Zookeeper timeout
 #fluo.connection.zookeeper.timeout=30000
+
 ## Connection retry timeout (in milliseconds). Set to -1 to retry forever.
 #fluo.connection.retry.timeout.ms=-1
+
 ## Set this property before initialization and Fluo will lock down all 
zookeeper
-## using this secret.  After initialization, the same secret must always be
-## supplied for any connection or services.  If not set, then all data in
-## zookeeper will be world readable.  It's a good idea to set this property.
+## using this secret. After initialization, the same secret must always be
+## supplied for any connection or services. If not set, then all data in
+## zookeeper will be world readable. It's a good idea to set this property.
 ## Could use the command : head -c 9 /dev/random | base64
 #fluo.connection.zookeeper.secret=
diff --git a/modules/distribution/src/main/config/fluo.properties.deprecated 
b/modules/distribution/src/main/config/fluo.properties.deprecated
index 4bec6aaf..324f0223 100644
--- a/modules/distribution/src/main/config/fluo.properties.deprecated
+++ b/modules/distribution/src/main/config/fluo.properties.deprecated
@@ -28,22 +28,29 @@
 # -----------------
 # Fluo application name
 fluo.client.application.name=
+
 # Zookeeper connection string specifying host and chroot where Fluo stores 
data.
 # A chroot directory suffix must be specified but doesn't need to be named
 # '/fluo'.  If not specified, a Fluo application cannot be initialized.
 # Interpolation (i.e \${fluo.client.accumulo.zookeepers}/fluo) can be used
 # when setting this to reuse Accumulo's zookeeper connection string.
 #fluo.client.zookeeper.connect=localhost/fluo
+
 # Zookeeper timeout
 #fluo.client.zookeeper.timeout=30000
+
 # Accumulo instance to connect to
 fluo.client.accumulo.instance=
+
 # Accumulo user
 fluo.client.accumulo.user=
+
 # Accumulo password
 fluo.client.accumulo.password=
+
 # Accumulo zookeepers
 #fluo.client.accumulo.zookeepers=localhost
+
 # Client retry timeout (in milliseconds). Set to -1 to retry forever.
 #fluo.client.retry.timeout.ms=-1
 
@@ -51,8 +58,10 @@ fluo.client.accumulo.password=
 # ----------------
 # Accumulo table to initialize
 fluo.admin.accumulo.table=\${fluo.client.application.name}
+
 # HDFS root path. Should match 'fs.defaultFS' property in Hadoop's 
core-site.xml
 fluo.admin.hdfs.root=hdfs://localhost:10000
+
 # Fluo uses iterators within Accumulo tablet servers, therefore Accumulo per
 # table classpath need to be configured with a comma seperated list of uris
 # where Accumulo can find Fluo jars.  These jars should be reachable from
@@ -83,6 +92,7 @@ 
fluo.admin.accumulo.classpath=\${fluo.admin.hdfs.root}/fluo/lib/fluo-api-${proje
 # adding Loader will execute.  Must also set fluo.loader.queue.size to zero
 # when setting this to zero.
 #fluo.loader.num.threads=10
+
 # Queue size of loader
 #fluo.loader.queue.size=10
 
@@ -90,18 +100,23 @@ 
fluo.admin.accumulo.classpath=\${fluo.admin.hdfs.root}/fluo/lib/fluo-api-${proje
 # ----------------
 # Number of oracle yarn instances
 #fluo.yarn.oracle.instances=1
+
 # Max memory of Oracle yarn containers (in MB)
 #fluo.yarn.oracle.max.memory.mb=512
+
 # Number of oracle virtual cores
 #fluo.yarn.oracle.num.cores=1
+
 # Number of worker yarn instances
 #fluo.yarn.worker.instances=1
+
 # Max memory of worker YARN containers (in MB). If YARN is killing worker 
processes consider
 # increasing twill.java.reserved.memory.mb (which defaults to 200 and is set 
in yarn-site.xml).
 # The twill.java.reserved.memory.mb config determines the gap between the YARN 
memory limit set
 # below and the java -Xmx setting.  For example, if max memory is 1024 and 
twill reserved memory
 # is 200, the java -Xmx setting will be 1024-200 = 824 MB.
 #fluo.yarn.worker.max.memory.mb=1024
+
 # Number of worker virtual cores
 #fluo.yarn.worker.num.cores=1
 
@@ -142,6 +157,7 @@ 
fluo.admin.accumulo.classpath=\${fluo.admin.hdfs.root}/fluo/lib/fluo-api-${proje
 # -------------------
 # Path to directory where MiniFluo stores its data
 
#fluo.mini.data.dir=\${env:FLUO_HOME}/apps/\${fluo.client.application.name}/mini
+
 # Indicates if MiniFluo should start a MiniAccumulo cluster
 #fluo.mini.start.accumulo=true
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to