[
https://issues.apache.org/jira/browse/METRON-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16574059#comment-16574059
]
ASF GitHub Bot commented on METRON-1725:
----------------------------------------
Github user mmiklavc commented on a diff in the pull request:
https://github.com/apache/metron/pull/1153#discussion_r208773887
--- Diff:
metron-platform/metron-pcap-backend/src/test/java/org/apache/metron/pcap/query/PcapCliTest.java
---
@@ -112,7 +120,24 @@ public void
runs_fixed_pcap_filter_job_with_default_argument_list() throws Excep
return new TypeSafeMatcher<Map<K, V>>() {
@Override
protected boolean matchesSafely(Map<K, V> item) {
- return item.entrySet().containsAll(map.entrySet());
+ for(K key: map.keySet()) {
+ if (key.equals(PcapOptions.HADOOP_CONF.getKey())) {
+ Configuration itemConfiguration = (Configuration)
item.get(PcapOptions.HADOOP_CONF.getKey());
+ Map<String, Object> mapConfiguration = (Map<String, Object>)
map.get(PcapOptions.HADOOP_CONF.getKey());
+ for(String setting: mapConfiguration.keySet()) {
+ if
(!mapConfiguration.get(setting).equals(itemConfiguration.get(setting, ""))) {
+ return false;
+ }
+ }
+ } else {
+ V itemValue = item.get(key);
+ V mapValue = map.get(key);
+ if (itemValue != null ? !itemValue.equals(mapValue) : mapValue
== null) {
--- End diff --
Should this be `!(mapValue == null)`?
**Similarly stated:**
```
if (itemValue == null ? mapValue == null : itemValue.equals(mapValue)) {
return true;
}
```
If both values are null, it should return `true`, I would expect.
> Add ability to specify YARN queue for pcap jobs
> -----------------------------------------------
>
> Key: METRON-1725
> URL: https://issues.apache.org/jira/browse/METRON-1725
> Project: Metron
> Issue Type: Sub-task
> Reporter: Ryan Merriman
> Assignee: Ryan Merriman
> Priority: Major
>
> There should be a way to configure which YARN queue a pcap query job is
> submitted to. This option should be available for both the CLI and REST.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)