Return-Path: X-Original-To: apmail-storm-dev-archive@minotaur.apache.org Delivered-To: apmail-storm-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D082D10058 for ; Wed, 5 Feb 2014 19:18:51 +0000 (UTC) Received: (qmail 28226 invoked by uid 500); 5 Feb 2014 19:18:51 -0000 Delivered-To: apmail-storm-dev-archive@storm.apache.org Received: (qmail 28171 invoked by uid 500); 5 Feb 2014 19:18:50 -0000 Mailing-List: contact dev-help@storm.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@storm.incubator.apache.org Delivered-To: mailing list dev@storm.incubator.apache.org Received: (qmail 28035 invoked by uid 99); 5 Feb 2014 19:18:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 19:18:49 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Feb 2014 19:18:48 +0000 Received: (qmail 24565 invoked by uid 99); 5 Feb 2014 19:18:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 19:18:16 +0000 Date: Wed, 5 Feb 2014 19:18:16 +0000 (UTC) From: "Jethro Bakker (JIRA)" To: dev@storm.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STORM-173) use "-c " command to define Number config value will generate ClassCastException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STORM-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892447#comment-13892447 ] Jethro Bakker commented on STORM-173: ------------------------------------- Robert, check the first comment of STORM-72 it contains a simple check for numbers. > use "-c " command to define Number config value will generate ClassCastException > -------------------------------------------------------------------------------- > > Key: STORM-173 > URL: https://issues.apache.org/jira/browse/STORM-173 > Project: Apache Storm (Incubating) > Issue Type: Bug > Reporter: caofangkun > Priority: Minor > > storm -c topology.workers=3 -c storm.zookeeper.root=/storm/cluster001 jar ./storm-starter-0.0.1-SNAPSHOT.jar storm.starter.WordCountTopology2 WordCountTopology2 > Will generate SerConf like this : > Submitting topology WordCountTopology2 in distributed mode with conf {"storm.zookeeper.root":"\/storm\/cluster001","topology.workers":"3","topology.debug":true} > but "topology.workers":"3" is wrong and should be "topology.workers":3 > And can find errors in $STOMR_HOME/logs/nimbus.log as following: > 2013-12-10 11:18:44 o.a.t.s.TNonblockingServer [ERROR] Unexpected exception while invoking! > java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number > at backtype.storm.thrift$mk_plain_component_common.doInvoke(thrift.clj:93) ~[storm-core-0.9.0-rc2.jar:na] > at clojure.lang.RestFn.invoke(RestFn.java:494) ~[clojure-1.4.0.jar:na] > at backtype.storm.thrift$mk_bolt_spec_STAR_.doInvoke(thrift.clj:158) ~[storm-core-0.9.0-rc2.jar:na] > at clojure.lang.RestFn.invoke(RestFn.java:573) ~[clojure-1.4.0.jar:na] > at backtype.storm.daemon.common$add_acker_BANG_.invoke(common.clj:183) ~[storm-core-0.9.0-rc2.jar:na] > at backtype.storm.daemon.common$system_topology_BANG_.invoke(common.clj:280) ~[storm-core-0.9.0-rc2.jar:na] > at backtype.storm.daemon.nimbus$fn__5822$exec_fn__1273__auto__$reify__5835.submitTopologyWithOpts(nimbus.clj:931) ~[storm-core-0.9.0-rc2.jar:na] > at backtype.storm.daemon.nimbus$fn__5822$exec_fn__1273__auto__$reify__5835.submitTopology(nimbus.clj:949) ~[storm-core-0.9.0-rc2.jar:na] > at backtype.storm.generated.Nimbus$Processor$submitTopology.getResult(Nimbus.java:1223) ~[storm-core-0.9.0-rc2.jar:na] > at backtype.storm.generated.Nimbus$Processor$submitTopology.getResult(Nimbus.java:1211) ~[storm-core-0.9.0-rc2.jar:na] > at org.apache.thrift7.ProcessFunction.process(ProcessFunction.java:32) ~[libthrift7-0.7.0-2.jar:0.7.0-2] > at org.apache.thrift7.TBaseProcessor.process(TBaseProcessor.java:34) ~[libthrift7-0.7.0-2.jar:0.7.0-2] > at org.apache.thrift7.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:632) ~[libthrift7-0.7.0-2.jar:0.7.0-2] > at org.apache.thrift7.server.THsHaServer$Invocation.run(THsHaServer.java:201) [libthrift7-0.7.0-2.jar:0.7.0-2] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37] > at java.lang.Thread.run(Thread.java:662) [na:1.6.0_37] -- This message was sent by Atlassian JIRA (v6.1.5#6160)