Method not found exception when using "tranquility"

173 views
Skip to first unread message

luo...@conew.com

unread,
Jun 12, 2015, 4:39:16 AM6/12/15
to druid...@googlegroups.com
Hi, All
I want use "tranquility" to ingest the data into druid through storm.
But when I start the topology, there are always some exceptions:
2015-06-12 16:32:27 b.s.d.executor [ERROR]
java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.<init>(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)V
at org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29) ~[stormjar.jar:na]
at org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:154) ~[stormjar.jar:na]
at org.apache.curator.HandleHolder$1.getZooKeeper(HandleHolder.java:94) ~[stormjar.jar:na]
at org.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55) ~[stormjar.jar:na]
at org.apache.curator.ConnectionState.reset(ConnectionState.java:219) ~[stormjar.jar:na]
at org.apache.curator.ConnectionState.start(ConnectionState.java:103) ~[stormjar.jar:na]
at org.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:190) ~[stormjar.jar:na]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:256) ~[stormjar.jar:na]
at MyBeamFactory.makeBeam(MyBeamFactory.java:28) ~[stormjar.jar:na]
at com.metamx.tranquility.storm.BeamBolt.prepare(BeamBolt.scala:55) ~[stormjar.jar:na]
at backtype.storm.daemon.executor$eval3918$fn__3919$fn__3931.invoke(executor.clj:689) ~[na:na]
at backtype.storm.util$async_loop$fn__384.invoke(util.clj:431) ~[na:na]
at clojure.lang.AFn.run(AFn.java:24) [clojure-1.4.0.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]

It seems there is package conflicts, could somebody help me?

The druid version used is "0.7.1", zookeeper version used is "3.4.6".
And the package version of tranquility is "0.4.2"

Here is the pom I used as blew:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>druid-storm-ingest-test</groupId>
<artifactId>druid-storm-ingest-test</artifactId>
<version>1.0-SNAPSHOT</version>

<build>
<plugins>
<!-- any other plugins -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.metamx</groupId>
<artifactId>tranquility_2.10</artifactId>
<version>0.4.2</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>0.9.1-incubating</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.6</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.7</version>
</dependency>


</dependencies>

<repositories>
<repository>
<id>pub-libs-releases-local</id>
<name>pub-libs-releases-local</name>
<url>https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local/</url>
</repository>
<repository>
<id>jboss-public</id>
<name>jboss-public</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>repo1maven2</id>
<name>repo1maven2</name>
<url>http://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>maven2</id>
<name>maven2</name>
<url>http://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>
</project>

Fangjin Yang

unread,
Jun 12, 2015, 9:08:02 PM6/12/15
to druid...@googlegroups.com, luo...@conew.com

luo...@conew.com

unread,
Jun 16, 2015, 12:34:02 PM6/16/15
to druid...@googlegroups.com, luo...@conew.com
Thanks, Fangjin,this exception fix now

在 2015年6月13日星期六 UTC+8上午9:08:02,Fangjin Yang写道:
Reply all
Reply to author
Forward
0 new messages