You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by pradeepchanumolu <pr...@gmail.com> on 2017/09/21 05:57:02 UTC
Ignite Context : java.lang.NoSuchMethodError:
org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded
Hitting the following exception when starting the Ignite context.
Here is the snippet of the code. Also double checked that no other curator
jars are present in the class path except from the one from ignite.
Here are the versions I am using.
Apache Ignite : 2.2.0
Apache Spark: 2.1.0
Can someone help with this error? Thanks !!
Also I am hitting this error only when I try to launch IgniteContext. When I
try to launch Ignite in client mode (Ignite.start()) I don't hit this error.
In both cases I use TcpDiscoveryZookeeperIpFinder as ipFinder.
17/09/20 22:47:08 ERROR internal.IgniteKernal: Got exception while starting
(will rollback startup routine).
java.lang.NoSuchMethodError:
org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded()Lorg/apache/curator/framework/api/ProtectACLCreateModePathAndBytesable;
at
org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.internalRegisterService(ServiceDiscoveryImpl.java:222)
at
org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.registerService(ServiceDiscoveryImpl.java:188)
at
org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder.registerAddresses(TcpDiscoveryZookeeperIpFinder.java:237)
at
org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinderAdapter.initializeLocalAddresses(TcpDiscoveryIpFinderAdapter.java:61)
at
org.apache.ignite.spi.discovery.tcp.TcpDiscoveryImpl.registerLocalNodeAddress(TcpDiscoveryImpl.java:317)
at
org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:341)
at
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1834)
at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:842)
at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1786)
at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:978)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1896)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1648)
at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1076)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:596)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:536)
at org.apache.ignite.Ignition.getOrStart(Ignition.java:414)
at
org.apache.ignite.spark.IgniteContext.ignite(IgniteContext.scala:143)
at
org.apache.ignite.spark.IgniteContext$$anonfun$1.apply(IgniteContext.scala:54)
at
org.apache.ignite.spark.IgniteContext$$anonfun$1.apply(IgniteContext.scala:54)
at
org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$29.apply(RDD.scala:925)
at
org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$29.apply(RDD.scala:925)
at
org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1944)
at
org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1944)
at
org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
at org.apache.spark.scheduler.Task.run(Task.scala:99)
at
org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite Context : java.lang.NoSuchMethodError: org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded
Posted by Denis Mekhanikov <dm...@gmail.com>.
Make sure that all dependencies are present in classpath during execution.
In your case you need curator-framework:2.9.1 library.
You should either add jars of these libraries to --jars option of
spark-submit command, add needed dependencies to Spark configuration, or
build an uber-jar that will contain all libraries that are required for
execution and submit this jar.
I'm not a Spark expert, so I can't tell, which way is commonly used.
Hope this helps.
Denis
чт, 21 сент. 2017 г. в 21:45, pradeepchanumolu <pr...@gmail.com>:
> Thanks Denis for looking into the problem.
>
> Here are the dependencies from my build.sbt file
>
> lazy val Versions = new {
> val igniteVersion = "2.2.0"
> }
>
> libraryDependencies ++= Seq(
> "org.apache.ignite" % "ignite-core" % Versions.igniteVersion,
> "org.apache.ignite" % "ignite-spring" % Versions.igniteVersion,
> "org.apache.ignite" % "ignite-zookeeper" % Versions.igniteVersion,
> "org.apache.ignite" % "ignite-spark" % Versions.igniteVersion
> exclude ("org.scalatest", "scalatest_2.10")
> exclude ("com.twitter", "chill_2.10")
> exclude ("org.apache.spark", "spark-unsafe_2.10")
> exclude ("org.apache.spark", "spark-tags_2.10"),
> "org.apache.ignite" % "ignite-clients" % Versions.igniteVersion
> )
>
> I am using spark-submit command to launch the job.
>
> command:
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Ignite Context : java.lang.NoSuchMethodError:
org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded
Posted by pradeepchanumolu <pr...@gmail.com>.
Thanks Denis for looking into the problem.
Here are the dependencies from my build.sbt file
lazy val Versions = new {
val igniteVersion = "2.2.0"
}
libraryDependencies ++= Seq(
"org.apache.ignite" % "ignite-core" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-spring" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-zookeeper" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-spark" % Versions.igniteVersion
exclude ("org.scalatest", "scalatest_2.10")
exclude ("com.twitter", "chill_2.10")
exclude ("org.apache.spark", "spark-unsafe_2.10")
exclude ("org.apache.spark", "spark-tags_2.10"),
"org.apache.ignite" % "ignite-clients" % Versions.igniteVersion
)
I am using spark-submit command to launch the job.
command:
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite Context : java.lang.NoSuchMethodError:
org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded
Posted by pradeepchanumolu <pr...@gmail.com>.
Thanks Denis for looking into the problem.
Here are the dependencies from my build.sbt file
val Versions = new {
val igniteVersion = "2.2.0"
}
libraryDependencies ++= Seq(
"org.apache.ignite" % "ignite-core" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-spring" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-zookeeper" % Versions.igniteVersion,
"org.apache.ignite" % "ignite-spark" % Versions.igniteVersion
exclude ("org.scalatest", "scalatest_2.10")
exclude ("com.twitter", "chill_2.10")
exclude ("org.apache.spark", "spark-unsafe_2.10")
exclude ("org.apache.spark", "spark-tags_2.10"),
"org.apache.ignite" % "ignite-clients" % Versions.igniteVersion
)
I am using spark-submit command to launch the job.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite Context : java.lang.NoSuchMethodError: org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded
Posted by Denis Mekhanikov <dm...@gmail.com>.
Hi!
Apparently you have some problem with classpath. Looks like version of
Apache Curator used in runtime differs from the one used during compilation.
It will be easier to say what is wrong if you provide your pom.xml
Denis
чт, 21 сент. 2017 г. в 8:57, pradeepchanumolu <pr...@gmail.com>:
> Hitting the following exception when starting the Ignite context.
>
> Here is the snippet of the code. Also double checked that no other curator
> jars are present in the class path except from the one from ignite.
>
> Here are the versions I am using.
> Apache Ignite : 2.2.0
> Apache Spark: 2.1.0
>
> Can someone help with this error? Thanks !!
>
> Also I am hitting this error only when I try to launch IgniteContext. When
> I
> try to launch Ignite in client mode (Ignite.start()) I don't hit this
> error.
> In both cases I use TcpDiscoveryZookeeperIpFinder as ipFinder.
>
> 17/09/20 22:47:08 ERROR internal.IgniteKernal: Got exception while starting
> (will rollback startup routine).
> java.lang.NoSuchMethodError:
>
> org.apache.curator.framework.api.CreateBuilder.creatingParentContainersIfNeeded()Lorg/apache/curator/framework/api/ProtectACLCreateModePathAndBytesable;
> at
>
> org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.internalRegisterService(ServiceDiscoveryImpl.java:222)
> at
>
> org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.registerService(ServiceDiscoveryImpl.java:188)
> at
>
> org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder.registerAddresses(TcpDiscoveryZookeeperIpFinder.java:237)
> at
>
> org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinderAdapter.initializeLocalAddresses(TcpDiscoveryIpFinderAdapter.java:61)
> at
>
> org.apache.ignite.spi.discovery.tcp.TcpDiscoveryImpl.registerLocalNodeAddress(TcpDiscoveryImpl.java:317)
> at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:341)
> at
>
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1834)
> at
>
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
> at
>
> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:842)
> at
>
> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1786)
> at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:978)
> at
>
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1896)
> at
>
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1648)
> at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1076)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:596)
> at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:536)
> at org.apache.ignite.Ignition.getOrStart(Ignition.java:414)
> at
> org.apache.ignite.spark.IgniteContext.ignite(IgniteContext.scala:143)
> at
>
> org.apache.ignite.spark.IgniteContext$$anonfun$1.apply(IgniteContext.scala:54)
> at
>
> org.apache.ignite.spark.IgniteContext$$anonfun$1.apply(IgniteContext.scala:54)
> at
>
> org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$29.apply(RDD.scala:925)
> at
>
> org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$29.apply(RDD.scala:925)
> at
>
> org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1944)
> at
>
> org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1944)
> at
> org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
> at org.apache.spark.scheduler.Task.run(Task.scala:99)
> at
> org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>