Repository: ambari Updated Branches: refs/heads/trunk 97d9b0595 -> ef823d6a8
AMBARI-20502 - Configuration Markdown Not Properly Parsed By Some Editors (jonathanhurley) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ef823d6a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ef823d6a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ef823d6a Branch: refs/heads/trunk Commit: ef823d6a83e0502c0a885945538fb17ac3e0503e Parents: 97d9b05 Author: Jonathan Hurley <[email protected]> Authored: Mon Mar 20 11:40:12 2017 -0400 Committer: Jonathan Hurley <[email protected]> Committed: Mon Mar 20 14:53:41 2017 -0400 ---------------------------------------------------------------------- ambari-server/docs/configuration/index.md | 6 ++++-- .../org/apache/ambari/server/configuration/Configuration.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ef823d6a/ambari-server/docs/configuration/index.md ---------------------------------------------------------------------- diff --git a/ambari-server/docs/configuration/index.md b/ambari-server/docs/configuration/index.md index 7a7f3b9..90865b6 100644 --- a/ambari-server/docs/configuration/index.md +++ b/ambari-server/docs/configuration/index.md @@ -314,7 +314,7 @@ The following are the properties which can be used to configure Ambari. ## Baseline Values As the size of a cluster grows, some of the default property values may no longer be sufficient. The below tables offer recommendations on the values of some configuration properties based on the size and usage of the cluster. -####Alerts & Notifications +#### Alerts & Notifications | Property Name | 10 Hosts | ~50 Hosts | ~100 Hosts | 500+ Hosts | | --- | --- | --- | --- | --- | | alerts.execution.scheduler.threadpool.size.core | 2 | 2 | 4 | 4 | @@ -323,13 +323,15 @@ As the size of a cluster grows, some of the default property values may no longe | alerts.cache.enabled | false | false | false | true | | alerts.cache.flush.interval | 10 | 10 | 10 | 10 | | alerts.cache.size | 50000 | 50000 | 100000 | 100000 | -####Jetty API & Agent Thread Pools + +#### Jetty API & Agent Thread Pools | Property Name | 10 Hosts | ~50 Hosts | ~100 Hosts | 500+ Hosts | | --- | --- | --- | --- | --- | | client.threadpool.size.max | 25 | 35 | 50 | 65 | | agent.threadpool.size.max | 25 | 35 | 75 | 100 | + <a name="db-persistence"></a> ## Database And Persistence In addition to the static database connection properties, it's possible to supply custom properties for both EclipseLink and the database driver through `ambari.properties`. http://git-wip-us.apache.org/repos/asf/ambari/blob/ef823d6a/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java b/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java index 20431f6..79c5d12 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java @@ -4352,7 +4352,7 @@ public class Configuration { } Properties blacklistProperties = new Properties(); String blacklistFile = getAmbariBlacklistFile(); - propertiesToMask = new HashSet<String>(); + propertiesToMask = new HashSet<>(); if(blacklistFile != null) { File propertiesMaskFile = new File(blacklistFile); InputStream inputStream = null; @@ -5652,7 +5652,7 @@ public class Configuration { // now write out specific groupings StringBuilder baselineBuffer = new StringBuilder(1024); for( ConfigurationGrouping grouping : ConfigurationGrouping.values() ){ - baselineBuffer.append("####" + grouping); + baselineBuffer.append("#### " + grouping); baselineBuffer.append(System.lineSeparator()); baselineBuffer.append("| Property Name | "); @@ -5687,6 +5687,8 @@ public class Configuration { baselineBuffer.append(System.lineSeparator()); } + + baselineBuffer.append(System.lineSeparator()); } // replace the tokens in the markdown template and write out the final MD file
