Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/metron/pull/946#discussion_r176512233
  
    --- Diff: 
metron-platform/metron-elasticsearch/src/main/java/org/apache/metron/elasticsearch/utils/ElasticsearchUtils.java
 ---
    @@ -107,32 +113,94 @@ public static String getBaseIndexName(String 
indexName) {
         return parts[0];
       }
     
    -  public static TransportClient getClient(Map<String, Object> 
globalConfiguration, Map<String, String> optionalSettings) {
    +  /**
    +   * Instantiates an Elasticsearch client based on es.client.class, if 
set. Defaults to
    +   * org.elasticsearch.transport.client.PreBuiltTransportClient.
    +   *
    +   * @param globalConfiguration Metron global config
    +   * @return
    +   */
    +  public static TransportClient getClient(Map<String, Object> 
globalConfiguration) {
    +    Set<String> customESSettings = new HashSet<>();
    +    customESSettings.addAll(Arrays.asList("es.client.class", 
"es.xpack.username", "es.xpack.password.file"));
    --- End diff --
    
    What is this `customEsSettings` map intended to do?  It seems to be used to 
exclude certain properties?  We probably need at least a comment or better 
naming to describe this.  Me no follow.


---

Reply via email to