Skip to content

Instantly share code, notes, and snippets.

View gianm's full-sized avatar

Gian Merlino gianm

  • Imply
  • San Francisco, CA
View GitHub Profile
@gianm
gianm / gist:10141960
Created April 8, 2014 15:23
Storm ZK patches
--- a/storm-core/project.clj
+++ b/storm-core/project.clj
@@ -8,7 +8,7 @@
[storm/libthrift7 "0.7.0-2"
:exclusions [org.slf4j/slf4j-api]]
[clj-time "0.4.1"]
- [com.netflix.curator/curator-framework "1.0.1"
+ [com.netflix.curator/curator-framework "1.2.3"
:exclusions [log4j/log4j]]
[backtype/jzmq "2.1.0"]

Dependencies

"ch.qos.logback" % "logback-core" % "1.1.2",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"org.slf4j" % "log4j-over-slf4j" % "1.7.6",
"org.slf4j" % "jul-to-slf4j" % "1.7.6"

logback.xml

Dependencies

  "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.0.2",
  "org.apache.logging.log4j" % "log4j-1.2-api" % "2.0.2",
  "org.apache.logging.log4j" % "log4j-api" % "2.0.2",
  "org.apache.logging.log4j" % "log4j-core" % "2.0.2"

log4j2.xml

/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
Gians-MacBook-Pro:druid gian$ cat de.json
{
"queryType":"topN",
"dataSource":"wikipedia2",
"intervals":"2015-09-13T17:01Z/PT3M",
"granularity":"minute",
"dimension":"language",
"threshold":100,
"metric":"count",
"aggregations":[
Found one Java-level deadlock:
=============================
"qtp925672150-81":
waiting to lock monitor 0x00007fd948006778 (object 0x00000000800fdb98, a java.lang.Class),
which is held by "qtp925672150-62"
"qtp925672150-62":
waiting to lock monitor 0x00007fd948009218 (object 0x00000000807329e8, a java.util.HashMap),
which is held by "main"
"main":
waiting to lock monitor 0x00007fd948006778 (object 0x00000000800fdb98, a java.lang.Class),
dataSources:
- spec:
dataSchema:
dataSource: metrics
parser:
type: string
parseSpec:
format: json
timestampSpec:
column: timestamp
{
"intervals": [
"1992-01-01T00:00:00.000+00:00/1999-01-01T00:00:00.000+00:00"
],
"aggregations": [
{
"type": "doubleSum",
"name": "l_quantity",
"fieldName": "l_quantity"
}
/*
* Copyright 2016 Imply Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software