Repository: ambari Updated Branches: refs/heads/branch-feature-AMBARI-20502 fd75adfad -> 50067f8b3
AMBARI-20502 - Configuration Markdown Not Property 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/50067f8b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/50067f8b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/50067f8b Branch: refs/heads/branch-feature-AMBARI-20502 Commit: 50067f8b3eff208d4de2738c763e5c7b53d40ff4 Parents: fd75adf Author: Jonathan Hurley <[email protected]> Authored: Mon Mar 20 11:40:12 2017 -0400 Committer: Jonathan Hurley <[email protected]> Committed: Mon Mar 20 11:40:12 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/50067f8b/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/50067f8b/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
