You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Calvin Lei <ck...@gmail.com> on 2013/10/12 22:55:46 UTC
Getting None.get exception when running kafka-reassign-partitions.sh
Checked the json file and everything seems normal. When I run the script
and I got the error:
Partitions reassignment failed due to None.get
java.util.NoSuchElementException: None.get
at scala.None$.get (Option.scala:185)
my json file:
{partitions":
[{"topic": "topicA", "partition": 0}]
}
thanks in advance,
Cal
Re: Getting None.get exception when running kafka-reassign-partitions.sh
Posted by Jun Rao <ju...@gmail.com>.
Could you try the latest 0.8 branch? I think it's fixed there already.
Thanks,
Jun
On Wed, Oct 16, 2013 at 7:34 PM, Calvin Lei <ck...@gmail.com> wrote:
> Thanks Jun! The sample json returned from the -help of the script is out of
> date.
>
>
> On Sun, Oct 13, 2013 at 5:10 PM, Jun Rao <ju...@gmail.com> wrote:
>
> > Are you trying to feed the json file to the --manual-assignment-json-file
> > option? If so, you need to specify the replicas (see the description of
> the
> > option for details).
> >
> > Thanks,
> >
> > Jun
> >
> >
> > On Sun, Oct 13, 2013 at 8:02 AM, Calvin Lei <ck...@gmail.com> wrote:
> >
> > > Yes.
> > >
> > > Partitions reassignment failed due to None.get
> > > java.util.NoSuchElementException: None.get
> > > at scala.None$.get (Option.scala:185)
> > > at scala.None$.get (Option.scala:183)
> > > at
> kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> > > (ZkUtils.scala:571)
> > > at
> kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> > > (ZkUtils.scala:568)
> > > at scala.collections.LinearSeqOptimied$class.foreach
> > > (LinearSeqOptimized.scala:61)
> > > at scala.collection.immutable.List.foreach (List.scala:45)
> > > at kafka.utils.ZkUtils$.parsePartitionReassignmentData
> > > (ZkUtils.scala:568)
> > > at kafka.admin.ReassignPartitionsCommand$.main
> > > (ReassignPartitionsCommand.scala:58)
> > > at kafka.admin.ReassignPartitionsCommand.main
> > > (ReassignPartitionsCommand.scala)
> > >
> > > thanks,
> > > Cal
> > >
> > >
> > > On Sun, Oct 13, 2013 at 2:54 AM, Neha Narkhede <
> neha.narkhede@gmail.com
> > > >wrote:
> > >
> > > > Can you please send the full stack trace?
> > > >
> > > > Thanks,
> > > > Neha
> > > > On Oct 12, 2013 1:56 PM, "Calvin Lei" <ck...@gmail.com> wrote:
> > > >
> > > > > Checked the json file and everything seems normal. When I run the
> > > script
> > > > > and I got the error:
> > > > >
> > > > > Partitions reassignment failed due to None.get
> > > > > java.util.NoSuchElementException: None.get
> > > > > at scala.None$.get (Option.scala:185)
> > > > >
> > > > > my json file:
> > > > >
> > > > > {partitions":
> > > > > [{"topic": "topicA", "partition": 0}]
> > > > > }
> > > > >
> > > > >
> > > > > thanks in advance,
> > > > > Cal
> > > > >
> > > >
> > >
> >
>
Re: Getting None.get exception when running kafka-reassign-partitions.sh
Posted by Calvin Lei <ck...@gmail.com>.
Thanks Jun! The sample json returned from the -help of the script is out of
date.
On Sun, Oct 13, 2013 at 5:10 PM, Jun Rao <ju...@gmail.com> wrote:
> Are you trying to feed the json file to the --manual-assignment-json-file
> option? If so, you need to specify the replicas (see the description of the
> option for details).
>
> Thanks,
>
> Jun
>
>
> On Sun, Oct 13, 2013 at 8:02 AM, Calvin Lei <ck...@gmail.com> wrote:
>
> > Yes.
> >
> > Partitions reassignment failed due to None.get
> > java.util.NoSuchElementException: None.get
> > at scala.None$.get (Option.scala:185)
> > at scala.None$.get (Option.scala:183)
> > at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> > (ZkUtils.scala:571)
> > at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> > (ZkUtils.scala:568)
> > at scala.collections.LinearSeqOptimied$class.foreach
> > (LinearSeqOptimized.scala:61)
> > at scala.collection.immutable.List.foreach (List.scala:45)
> > at kafka.utils.ZkUtils$.parsePartitionReassignmentData
> > (ZkUtils.scala:568)
> > at kafka.admin.ReassignPartitionsCommand$.main
> > (ReassignPartitionsCommand.scala:58)
> > at kafka.admin.ReassignPartitionsCommand.main
> > (ReassignPartitionsCommand.scala)
> >
> > thanks,
> > Cal
> >
> >
> > On Sun, Oct 13, 2013 at 2:54 AM, Neha Narkhede <neha.narkhede@gmail.com
> > >wrote:
> >
> > > Can you please send the full stack trace?
> > >
> > > Thanks,
> > > Neha
> > > On Oct 12, 2013 1:56 PM, "Calvin Lei" <ck...@gmail.com> wrote:
> > >
> > > > Checked the json file and everything seems normal. When I run the
> > script
> > > > and I got the error:
> > > >
> > > > Partitions reassignment failed due to None.get
> > > > java.util.NoSuchElementException: None.get
> > > > at scala.None$.get (Option.scala:185)
> > > >
> > > > my json file:
> > > >
> > > > {partitions":
> > > > [{"topic": "topicA", "partition": 0}]
> > > > }
> > > >
> > > >
> > > > thanks in advance,
> > > > Cal
> > > >
> > >
> >
>
Re: Getting None.get exception when running kafka-reassign-partitions.sh
Posted by Jun Rao <ju...@gmail.com>.
Are you trying to feed the json file to the --manual-assignment-json-file
option? If so, you need to specify the replicas (see the description of the
option for details).
Thanks,
Jun
On Sun, Oct 13, 2013 at 8:02 AM, Calvin Lei <ck...@gmail.com> wrote:
> Yes.
>
> Partitions reassignment failed due to None.get
> java.util.NoSuchElementException: None.get
> at scala.None$.get (Option.scala:185)
> at scala.None$.get (Option.scala:183)
> at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> (ZkUtils.scala:571)
> at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
> (ZkUtils.scala:568)
> at scala.collections.LinearSeqOptimied$class.foreach
> (LinearSeqOptimized.scala:61)
> at scala.collection.immutable.List.foreach (List.scala:45)
> at kafka.utils.ZkUtils$.parsePartitionReassignmentData
> (ZkUtils.scala:568)
> at kafka.admin.ReassignPartitionsCommand$.main
> (ReassignPartitionsCommand.scala:58)
> at kafka.admin.ReassignPartitionsCommand.main
> (ReassignPartitionsCommand.scala)
>
> thanks,
> Cal
>
>
> On Sun, Oct 13, 2013 at 2:54 AM, Neha Narkhede <neha.narkhede@gmail.com
> >wrote:
>
> > Can you please send the full stack trace?
> >
> > Thanks,
> > Neha
> > On Oct 12, 2013 1:56 PM, "Calvin Lei" <ck...@gmail.com> wrote:
> >
> > > Checked the json file and everything seems normal. When I run the
> script
> > > and I got the error:
> > >
> > > Partitions reassignment failed due to None.get
> > > java.util.NoSuchElementException: None.get
> > > at scala.None$.get (Option.scala:185)
> > >
> > > my json file:
> > >
> > > {partitions":
> > > [{"topic": "topicA", "partition": 0}]
> > > }
> > >
> > >
> > > thanks in advance,
> > > Cal
> > >
> >
>
Re: Getting None.get exception when running kafka-reassign-partitions.sh
Posted by Calvin Lei <ck...@gmail.com>.
Yes.
Partitions reassignment failed due to None.get
java.util.NoSuchElementException: None.get
at scala.None$.get (Option.scala:185)
at scala.None$.get (Option.scala:183)
at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
(ZkUtils.scala:571)
at kafka.utils.ZkUtils$$anonfun$parsePartitionReassignmentData$1.apply
(ZkUtils.scala:568)
at scala.collections.LinearSeqOptimied$class.foreach
(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach (List.scala:45)
at kafka.utils.ZkUtils$.parsePartitionReassignmentData
(ZkUtils.scala:568)
at kafka.admin.ReassignPartitionsCommand$.main
(ReassignPartitionsCommand.scala:58)
at kafka.admin.ReassignPartitionsCommand.main
(ReassignPartitionsCommand.scala)
thanks,
Cal
On Sun, Oct 13, 2013 at 2:54 AM, Neha Narkhede <ne...@gmail.com>wrote:
> Can you please send the full stack trace?
>
> Thanks,
> Neha
> On Oct 12, 2013 1:56 PM, "Calvin Lei" <ck...@gmail.com> wrote:
>
> > Checked the json file and everything seems normal. When I run the script
> > and I got the error:
> >
> > Partitions reassignment failed due to None.get
> > java.util.NoSuchElementException: None.get
> > at scala.None$.get (Option.scala:185)
> >
> > my json file:
> >
> > {partitions":
> > [{"topic": "topicA", "partition": 0}]
> > }
> >
> >
> > thanks in advance,
> > Cal
> >
>
Re: Getting None.get exception when running kafka-reassign-partitions.sh
Posted by Neha Narkhede <ne...@gmail.com>.
Can you please send the full stack trace?
Thanks,
Neha
On Oct 12, 2013 1:56 PM, "Calvin Lei" <ck...@gmail.com> wrote:
> Checked the json file and everything seems normal. When I run the script
> and I got the error:
>
> Partitions reassignment failed due to None.get
> java.util.NoSuchElementException: None.get
> at scala.None$.get (Option.scala:185)
>
> my json file:
>
> {partitions":
> [{"topic": "topicA", "partition": 0}]
> }
>
>
> thanks in advance,
> Cal
>