kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ansel Zandegran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-5788) "IllegalArgumentException: long is not a value type" when running ReassignPartitionsCommand
Date Fri, 25 Aug 2017 10:51:01 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-5788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ansel Zandegran updated KAFKA-5788:
-----------------------------------
    Description: 
*When trying to run ReassignPartitionsCommand with the following statements,*
String[] reassignCmdArgs = { "--reassignment-json-file=" + Paths.get(reassignmentConfigFileName),
							"--zookeeper=" + client.getZookeeperClient().getCurrentConnectionString(), "--execute",
"--throttle="+10000000 };
					logger.debug("Calling ReassignPartitionsCommand with args:{}", Arrays.toString(reassignCmdArgs));
					ReassignPartitionsCommand.main(reassignCmdArgs);


*I get the following error*

2017-08-22 15:57:28 DEBUG ZookeeperBackedAdoptionLogicImpl:320 - Calling ReassignPartitionsCommand
with args:[--reassignment-json-file=partitions-to-move.json.1503417447767, --zookeeper=172.31.14.207:2181,
--execute]
    java.lang.IllegalArgumentException: long is not a value type
    at joptsimple.internal.Reflection.findConverter(Reflection.java:66)
    at joptsimple.ArgumentAcceptingOptionSpec.ofType(ArgumentAcceptingOptionSpec.java:111)
    at kafka.admin.ReassignPartitionsCommand$ReassignPartitionsCommandOptions.<init>(ReassignPartitionsCommand.scala:301)
    at kafka.admin.ReassignPartitionsCommand$.validateAndParseArgs(ReassignPartitionsCommand.scala:236)
    at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:34)
    at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scala)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.reassignPartitionToLocalBroker(ZookeeperBackedAdoptionLogicImpl.java:321)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.adoptRemotePartition(ZookeeperBackedAdoptionLogicImpl.java:267)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.run(ZookeeperBackedAdoptionLogicImpl.java:118)

  was:
*When trying to run ReassignPartitionsCommand with the following statements,.*
String[] reassignCmdArgs = { "--reassignment-json-file=" + Paths.get(reassignmentConfigFileName),
							"--zookeeper=" + client.getZookeeperClient().getCurrentConnectionString(), "--execute",
"--throttle="+10000000 };
					logger.debug("Calling ReassignPartitionsCommand with args:{}", Arrays.toString(reassignCmdArgs));
					ReassignPartitionsCommand.main(reassignCmdArgs);


*I get the following error*

2017-08-22 15:57:28 DEBUG ZookeeperBackedAdoptionLogicImpl:320 - Calling ReassignPartitionsCommand
with args:[--reassignment-json-file=partitions-to-move.json.1503417447767, --zookeeper=172.31.14.207:2181,
--execute]
    java.lang.IllegalArgumentException: long is not a value type
    at joptsimple.internal.Reflection.findConverter(Reflection.java:66)
    at joptsimple.ArgumentAcceptingOptionSpec.ofType(ArgumentAcceptingOptionSpec.java:111)
    at kafka.admin.ReassignPartitionsCommand$ReassignPartitionsCommandOptions.<init>(ReassignPartitionsCommand.scala:301)
    at kafka.admin.ReassignPartitionsCommand$.validateAndParseArgs(ReassignPartitionsCommand.scala:236)
    at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:34)
    at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scala)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.reassignPartitionToLocalBroker(ZookeeperBackedAdoptionLogicImpl.java:321)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.adoptRemotePartition(ZookeeperBackedAdoptionLogicImpl.java:267)
    at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.run(ZookeeperBackedAdoptionLogicImpl.java:118)


> "IllegalArgumentException: long is not a value type" when running ReassignPartitionsCommand
> -------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5788
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5788
>             Project: Kafka
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.11.0.0
>         Environment: Windows 
>            Reporter: Ansel Zandegran
>
> *When trying to run ReassignPartitionsCommand with the following statements,*
> String[] reassignCmdArgs = { "--reassignment-json-file=" + Paths.get(reassignmentConfigFileName),
> 							"--zookeeper=" + client.getZookeeperClient().getCurrentConnectionString(), "--execute",
"--throttle="+10000000 };
> 					logger.debug("Calling ReassignPartitionsCommand with args:{}", Arrays.toString(reassignCmdArgs));
> 					ReassignPartitionsCommand.main(reassignCmdArgs);
> *I get the following error*
> 2017-08-22 15:57:28 DEBUG ZookeeperBackedAdoptionLogicImpl:320 - Calling ReassignPartitionsCommand
with args:[--reassignment-json-file=partitions-to-move.json.1503417447767, --zookeeper=172.31.14.207:2181,
--execute]
>     java.lang.IllegalArgumentException: long is not a value type
>     at joptsimple.internal.Reflection.findConverter(Reflection.java:66)
>     at joptsimple.ArgumentAcceptingOptionSpec.ofType(ArgumentAcceptingOptionSpec.java:111)
>     at kafka.admin.ReassignPartitionsCommand$ReassignPartitionsCommandOptions.<init>(ReassignPartitionsCommand.scala:301)
>     at kafka.admin.ReassignPartitionsCommand$.validateAndParseArgs(ReassignPartitionsCommand.scala:236)
>     at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:34)
>     at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scala)
>     at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.reassignPartitionToLocalBroker(ZookeeperBackedAdoptionLogicImpl.java:321)
>     at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.adoptRemotePartition(ZookeeperBackedAdoptionLogicImpl.java:267)
>     at rebalancer.core.ZookeeperBackedAdoptionLogicImpl.run(ZookeeperBackedAdoptionLogicImpl.java:118)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message