From 2540b151c69d22fa9247d430967c99573d0bb8bb Mon Sep 17 00:00:00 2001 From: cstella Date: Wed, 8 Feb 2017 15:08:35 -0500 Subject: [PATCH] Fixing threat intel to use the proper command --- metron-deployment/roles/metron_streaming/defaults/main.yml | 2 +- metron-deployment/roles/metron_streaming/tasks/threat_intel.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metron-deployment/roles/metron_streaming/defaults/main.yml b/metron-deployment/roles/metron_streaming/defaults/main.yml index 5cab9e4dee..b9b34fe2f8 100644 --- a/metron-deployment/roles/metron_streaming/defaults/main.yml +++ b/metron-deployment/roles/metron_streaming/defaults/main.yml @@ -67,7 +67,7 @@ pcap_hdfs_path: "/apps/metron/pcap" geo_hdfs_path: "/apps/metron/geo/default" threat_intel_bulk_load: True -threat_intel_bin: "{{ metron_directory }}/bin/threatintel_bulk_load.sh" +threat_intel_bin: "{{ metron_directory }}/bin/flatfile_loader.sh" threat_intel_work_dir: /tmp/ti_bulk threat_intel_csv_filename: "threat_ip.csv" threat_intel_csv_filepath: "{{ threat_intel_csv_filename }}" diff --git a/metron-deployment/roles/metron_streaming/tasks/threat_intel.yml b/metron-deployment/roles/metron_streaming/tasks/threat_intel.yml index f1b75344c3..a1aa237020 100644 --- a/metron-deployment/roles/metron_streaming/tasks/threat_intel.yml +++ b/metron-deployment/roles/metron_streaming/tasks/threat_intel.yml @@ -37,7 +37,7 @@ command: "hdfs dfs -put -f {{ threat_intel_work_dir }}/{{ threat_intel_csv_filename }} ." - name: Run Threat Intel Bulk Load - shell: "{{ threat_intel_bin }} -f t --table {{threatintel_hbase_table}} -e {{ threat_intel_work_dir }}/extractor.json -i /user/root && touch {{ threat_intel_work_dir }}/loaded" + shell: "{{ threat_intel_bin }} -c t -t {{threatintel_hbase_table}} -e {{ threat_intel_work_dir }}/extractor.json -i /user/root -m MR && touch {{ threat_intel_work_dir }}/loaded" args: creates: "{{ threat_intel_work_dir }}/loaded"