Which jars really need the hbase-site, core-site, and hdfs-site
configuration files injected? Currently Solr, Elasticsearch, Pcap and
Parsers all do. I can’t reason why those are the particular ones that need
them though.
- name: Add *-site.xml files to topology jars
shell: "cd {{ item.config_path }} && jar -uf {{ metron_directory
}}/lib/{{ item.jar_name }} {{ item.file_name }}"
with_items:
- { config_path: "{{ hbase_config_path }}", file_name:
"hbase-site.xml", jar_name: "{{ metron_solr_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"core-site.xml", jar_name: "{{ metron_solr_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"hdfs-site.xml", jar_name: "{{ metron_solr_jar_name }}, }
- { config_path: "{{ hbase_config_path }}", file_name:
"hbase-site.xml", jar_name: "{{ metron_elasticsearch_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"core-site.xml", jar_name: "{{ metron_elasticsearch_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"hdfs-site.xml", jar_name: "{{ metron_elasticsearch_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"core-site.xml", jar_name: "{{ metron_pcap_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"hdfs-site.xml", jar_name: "{{ metron_pcap_jar_name }}" }
- { config_path: "{{ hbase_config_path }}", file_name:
"hbase-site.xml", jar_name: "{{ metron_parsers_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"core-site.xml", jar_name: "{{ metron_parsers_jar_name }}" }
- { config_path: "{{ hdfs_config_path }}", file_name:
"hdfs-site.xml", jar_name: "{{ metron_parsers_jar_name }}" }