This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import csv | |
| def merge_dict_with_csv(dict_a, csv_file_path): | |
| """ | |
| Replace keys in dictA with values from CSV and add any new keys from CSV to dictA. | |
| Args: | |
| dict_a: Dictionary to be updated | |
| csv_file_path: Path to CSV file with keys in column 1 and values in column 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsb_release -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2015-01-09 15:52:59,854][DEBUG][action.admin.indices.create] [perfgen04 1] [logaggr-2015.01.09] failed to create | |
| org.elasticsearch.index.mapper.MapperParsingException: mapping [test] | |
| at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:386) | |
| at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:328) | |
| at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153) | |
| at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
| at java.lang.Thread.run(Thread.java:722) | |
| Caused by: java.lang.IllegalArgumentException: Invalid format: [ISO8601]: Illegal pattern component: I | |
| at org.elasticsearch.common.joda.Joda.forPattern(Joda.java:160) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2015-01-06 22:53:43,124 DEBUG [org.apache.camel.impl.DefaultComponentResolver] (default task-1) Found component: direct in registry: null | |
| 2015-01-06 22:53:43,125 DEBUG [org.apache.camel.impl.DefaultComponentResolver] (default task-1) Found component: direct via type: org.apache.camel.component.direct.DirectComponent via: META-INF/services/org/apache/camel/component/direct | |
| 2015-01-06 22:53:43,126 DEBUG [org.apache.camel.management.DefaultManagementAgent] (default task-1) Registered MBean with ObjectName: org.apache.camel:context=camel-3,type=components,name="direct" | |
| 2015-01-06 22:53:43,126 DEBUG [org.apache.camel.impl.DefaultComponent] (default task-1) Creating endpoint uri=[direct://start], path=[start] | |
| 2015-01-06 22:53:43,126 DEBUG [org.apache.camel.cdi.CdiCamelContext] (default task-1) direct://start converted to endpoint: Endpoint[direct://start] by component: org.apache.camel.component.direct.DirectComponent@40f840ed | |
| 2015-01-06 22:53:43,129 DEBUG [org.apache.camel.component.direct.DirectProducer] (default |