You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by Mark Secrist <ms...@pivotal.io> on 2018/01/02 22:17:45 UTC
Using partition resolver via gfsh command vs XML config
Hi all,
I'm curious why I'd be running into issues using the gfsh command to
create a region using a partition resolver, yet can do so using XML
configuration. I've tried a couple of different combinations.
I have a partition resolver class that is packaged in a JAR file. I tried
the following:
1. Deployed jar file using 'deploy --j' [success], created region using
command 'create region --name=BookOrder --type=PARTITION
--partition-resolver=....' [Failed] - io.pivotal.bookshop.partitions.
CustomerPartitionResolverPartitionResolver is an invalid Partition
Resolver
2. Configured region from gfsh using StringPrefixPartitionResolver for
partition resolver [Success]
3. Un-deployed jar file. Used traditional classpath and XML
configuration [Success]
4. Deployed jar file using 'deploy' [Success] Configure region with
partition resolver in XML file [Success]
If it wasn't for the fact that attempt #2 was successful, I'd believe that
maybe it wasn't possible to use the gfsh command to configure a region with
partition resolver. I'm frankly at a loss to understand why this wouldn't
work.
This is using GemFire 9.2.1 bits by the way...
Thoughts?
--
*Mark Secrist | Director, **Global Education Delivery*
msecrist@pivotal.io
970.214.4567 Mobile
*pivotal.io <http://www.pivotal.io/>*
Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
<http://www.linkedin.com/company/pivotalsoftware> | Facebook
<http://www.facebook.com/pivotalsoftware> | YouTube
<http://www.youtube.com/gopivotal> | Google+
<https://plus.google.com/105320112436428794490>
Re: Using partition resolver via gfsh command vs XML config
Posted by Mark Secrist <ms...@pivotal.io>.
BTW - there is no useful information reported in the log files even with
log level turned to debug.
On Tue, Jan 2, 2018 at 3:56 PM, Mark Secrist <ms...@pivotal.io> wrote:
> Ah, that was scenario 3.5 I guess. I forgot to mention I tried that. To be
> clear - I used --classpath when starting the server to explicitly reference
> the jar file as in step 3. But...when using 'create region' to create the
> region with Partition resolver, I get the same 'Invalid Partition Resolver'
> message.
>
> So, to be clear, I can create the region with my custom partition resolver
> regardless of whether deployed via 'deploy' command or referenced in
> classpath startup of server as long as I use XML. In neither case can I
> create the region with partition resolver using gfsh. However... I can use
> the internal one (the SimpleStringPartitionResolver).
>
> BTW - also just tested against Geode 1.3 and have the exact same behavior.
>
>
>
> On Tue, Jan 2, 2018 at 3:40 PM, Swapnil Bawaskar <sb...@pivotal.io>
> wrote:
>
>> This reminds me of this bug: https://issues.apache.org
>> /jira/browse/GEODE-3460
>> Although, the comment says that the bug is fixed.
>>
>> Can you put the jar on the classpath and then create the region using
>> gfsh to help narrow down if the issue is with deploying the jar?
>>
>> Thanks!
>>
>>
>> On Tue, Jan 2, 2018 at 2:17 PM Mark Secrist <ms...@pivotal.io> wrote:
>>
>>> Hi all,
>>> I'm curious why I'd be running into issues using the gfsh command to
>>> create a region using a partition resolver, yet can do so using XML
>>> configuration. I've tried a couple of different combinations.
>>>
>>> I have a partition resolver class that is packaged in a JAR file. I
>>> tried the following:
>>>
>>> 1. Deployed jar file using 'deploy --j' [success], created region
>>> using command 'create region --name=BookOrder --type=PARTITION
>>> --partition-resolver=....' [Failed] - io.pivotal.bookshop.partitio
>>> ns.CustomerPartitionResolverPartitionResolver is an invalid
>>> Partition Resolver
>>> 2. Configured region from gfsh using StringPrefixPartitionResolver
>>> for partition resolver [Success]
>>> 3. Un-deployed jar file. Used traditional classpath and XML
>>> configuration [Success]
>>> 4. Deployed jar file using 'deploy' [Success] Configure region with
>>> partition resolver in XML file [Success]
>>>
>>> If it wasn't for the fact that attempt #2 was successful, I'd believe
>>> that maybe it wasn't possible to use the gfsh command to configure a region
>>> with partition resolver. I'm frankly at a loss to understand why this
>>> wouldn't work.
>>>
>>> This is using GemFire 9.2.1 bits by the way...
>>>
>>> Thoughts?
>>>
>>> --
>>>
>>> *Mark Secrist | Director, **Global Education Delivery*
>>>
>>> msecrist@pivotal.io
>>>
>>> 970.214.4567 Mobile
>>>
>>> *pivotal.io <http://www.pivotal.io/>*
>>>
>>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
>>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
>>> <http://www.facebook.com/pivotalsoftware> | YouTube
>>> <http://www.youtube.com/gopivotal> | Google+
>>> <https://plus.google.com/105320112436428794490>
>>>
>>
>
>
> --
>
> *Mark Secrist | Director, **Global Education Delivery*
>
> msecrist@pivotal.io
>
> 970.214.4567 Mobile
>
> *pivotal.io <http://www.pivotal.io/>*
>
> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
> <http://www.facebook.com/pivotalsoftware> | YouTube
> <http://www.youtube.com/gopivotal> | Google+
> <https://plus.google.com/105320112436428794490>
>
--
*Mark Secrist | Director, **Global Education Delivery*
msecrist@pivotal.io
970.214.4567 Mobile
*pivotal.io <http://www.pivotal.io/>*
Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
<http://www.linkedin.com/company/pivotalsoftware> | Facebook
<http://www.facebook.com/pivotalsoftware> | YouTube
<http://www.youtube.com/gopivotal> | Google+
<https://plus.google.com/105320112436428794490>
Re: Using partition resolver via gfsh command vs XML config
Posted by Mark Secrist <ms...@pivotal.io>.
I just tested against Geode 1.3 and see the exact same issue as GemFire
9.2.1. In fact, I just tested further by starting locator with the
deployment jar file on the classpath. Now, the create via gfsh works. So,
I'd say both Geode 1.3 and GemFire 9.2.1 are missing this fix.
On Tue, Jan 2, 2018 at 4:11 PM, Jinmei Liao <ji...@pivotal.io> wrote:
> the fix for GEODE-3460 is checked in on Oct 24, 2017. I don't think 9.2.1
> includes that fix.
>
> On Tue, Jan 2, 2018 at 2:56 PM, Mark Secrist <ms...@pivotal.io> wrote:
>
>> Ah, that was scenario 3.5 I guess. I forgot to mention I tried that. To
>> be clear - I used --classpath when starting the server to explicitly
>> reference the jar file as in step 3. But...when using 'create region' to
>> create the region with Partition resolver, I get the same 'Invalid
>> Partition Resolver' message.
>>
>> So, to be clear, I can create the region with my custom partition
>> resolver regardless of whether deployed via 'deploy' command or referenced
>> in classpath startup of server as long as I use XML. In neither case can I
>> create the region with partition resolver using gfsh. However... I can use
>> the internal one (the SimpleStringPartitionResolver).
>>
>> BTW - also just tested against Geode 1.3 and have the exact same behavior.
>>
>>
>>
>> On Tue, Jan 2, 2018 at 3:40 PM, Swapnil Bawaskar <sb...@pivotal.io>
>> wrote:
>>
>>> This reminds me of this bug: https://issues.apache.org
>>> /jira/browse/GEODE-3460
>>> Although, the comment says that the bug is fixed.
>>>
>>> Can you put the jar on the classpath and then create the region using
>>> gfsh to help narrow down if the issue is with deploying the jar?
>>>
>>> Thanks!
>>>
>>>
>>> On Tue, Jan 2, 2018 at 2:17 PM Mark Secrist <ms...@pivotal.io> wrote:
>>>
>>>> Hi all,
>>>> I'm curious why I'd be running into issues using the gfsh command to
>>>> create a region using a partition resolver, yet can do so using XML
>>>> configuration. I've tried a couple of different combinations.
>>>>
>>>> I have a partition resolver class that is packaged in a JAR file. I
>>>> tried the following:
>>>>
>>>> 1. Deployed jar file using 'deploy --j' [success], created region
>>>> using command 'create region --name=BookOrder --type=PARTITION
>>>> --partition-resolver=....' [Failed] - io.pivotal.bookshop.partitio
>>>> ns.CustomerPartitionResolverPartitionResolver is an invalid
>>>> Partition Resolver
>>>> 2. Configured region from gfsh using StringPrefixPartitionResolver
>>>> for partition resolver [Success]
>>>> 3. Un-deployed jar file. Used traditional classpath and XML
>>>> configuration [Success]
>>>> 4. Deployed jar file using 'deploy' [Success] Configure region with
>>>> partition resolver in XML file [Success]
>>>>
>>>> If it wasn't for the fact that attempt #2 was successful, I'd believe
>>>> that maybe it wasn't possible to use the gfsh command to configure a region
>>>> with partition resolver. I'm frankly at a loss to understand why this
>>>> wouldn't work.
>>>>
>>>> This is using GemFire 9.2.1 bits by the way...
>>>>
>>>> Thoughts?
>>>>
>>>> --
>>>>
>>>> *Mark Secrist | Director, **Global Education Delivery*
>>>>
>>>> msecrist@pivotal.io
>>>>
>>>> 970.214.4567 Mobile
>>>>
>>>> *pivotal.io <http://www.pivotal.io/>*
>>>>
>>>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
>>>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
>>>> <http://www.facebook.com/pivotalsoftware> | YouTube
>>>> <http://www.youtube.com/gopivotal> | Google+
>>>> <https://plus.google.com/105320112436428794490>
>>>>
>>>
>>
>>
>> --
>>
>> *Mark Secrist | Director, **Global Education Delivery*
>>
>> msecrist@pivotal.io
>>
>> 970.214.4567 Mobile
>>
>> *pivotal.io <http://www.pivotal.io/>*
>>
>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
>> <http://www.facebook.com/pivotalsoftware> | YouTube
>> <http://www.youtube.com/gopivotal> | Google+
>> <https://plus.google.com/105320112436428794490>
>>
>
>
>
> --
> Cheers
>
> Jinmei
>
--
*Mark Secrist | Director, **Global Education Delivery*
msecrist@pivotal.io
970.214.4567 Mobile
*pivotal.io <http://www.pivotal.io/>*
Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
<http://www.linkedin.com/company/pivotalsoftware> | Facebook
<http://www.facebook.com/pivotalsoftware> | YouTube
<http://www.youtube.com/gopivotal> | Google+
<https://plus.google.com/105320112436428794490>
Re: Using partition resolver via gfsh command vs XML config
Posted by Jinmei Liao <ji...@pivotal.io>.
the fix for GEODE-3460 is checked in on Oct 24, 2017. I don't think 9.2.1
includes that fix.
On Tue, Jan 2, 2018 at 2:56 PM, Mark Secrist <ms...@pivotal.io> wrote:
> Ah, that was scenario 3.5 I guess. I forgot to mention I tried that. To be
> clear - I used --classpath when starting the server to explicitly reference
> the jar file as in step 3. But...when using 'create region' to create the
> region with Partition resolver, I get the same 'Invalid Partition Resolver'
> message.
>
> So, to be clear, I can create the region with my custom partition resolver
> regardless of whether deployed via 'deploy' command or referenced in
> classpath startup of server as long as I use XML. In neither case can I
> create the region with partition resolver using gfsh. However... I can use
> the internal one (the SimpleStringPartitionResolver).
>
> BTW - also just tested against Geode 1.3 and have the exact same behavior.
>
>
>
> On Tue, Jan 2, 2018 at 3:40 PM, Swapnil Bawaskar <sb...@pivotal.io>
> wrote:
>
>> This reminds me of this bug: https://issues.apache.org
>> /jira/browse/GEODE-3460
>> Although, the comment says that the bug is fixed.
>>
>> Can you put the jar on the classpath and then create the region using
>> gfsh to help narrow down if the issue is with deploying the jar?
>>
>> Thanks!
>>
>>
>> On Tue, Jan 2, 2018 at 2:17 PM Mark Secrist <ms...@pivotal.io> wrote:
>>
>>> Hi all,
>>> I'm curious why I'd be running into issues using the gfsh command to
>>> create a region using a partition resolver, yet can do so using XML
>>> configuration. I've tried a couple of different combinations.
>>>
>>> I have a partition resolver class that is packaged in a JAR file. I
>>> tried the following:
>>>
>>> 1. Deployed jar file using 'deploy --j' [success], created region
>>> using command 'create region --name=BookOrder --type=PARTITION
>>> --partition-resolver=....' [Failed] - io.pivotal.bookshop.partitio
>>> ns.CustomerPartitionResolverPartitionResolver is an invalid
>>> Partition Resolver
>>> 2. Configured region from gfsh using StringPrefixPartitionResolver
>>> for partition resolver [Success]
>>> 3. Un-deployed jar file. Used traditional classpath and XML
>>> configuration [Success]
>>> 4. Deployed jar file using 'deploy' [Success] Configure region with
>>> partition resolver in XML file [Success]
>>>
>>> If it wasn't for the fact that attempt #2 was successful, I'd believe
>>> that maybe it wasn't possible to use the gfsh command to configure a region
>>> with partition resolver. I'm frankly at a loss to understand why this
>>> wouldn't work.
>>>
>>> This is using GemFire 9.2.1 bits by the way...
>>>
>>> Thoughts?
>>>
>>> --
>>>
>>> *Mark Secrist | Director, **Global Education Delivery*
>>>
>>> msecrist@pivotal.io
>>>
>>> 970.214.4567 Mobile
>>>
>>> *pivotal.io <http://www.pivotal.io/>*
>>>
>>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
>>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
>>> <http://www.facebook.com/pivotalsoftware> | YouTube
>>> <http://www.youtube.com/gopivotal> | Google+
>>> <https://plus.google.com/105320112436428794490>
>>>
>>
>
>
> --
>
> *Mark Secrist | Director, **Global Education Delivery*
>
> msecrist@pivotal.io
>
> 970.214.4567 Mobile
>
> *pivotal.io <http://www.pivotal.io/>*
>
> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
> <http://www.facebook.com/pivotalsoftware> | YouTube
> <http://www.youtube.com/gopivotal> | Google+
> <https://plus.google.com/105320112436428794490>
>
--
Cheers
Jinmei
Re: Using partition resolver via gfsh command vs XML config
Posted by Mark Secrist <ms...@pivotal.io>.
Ah, that was scenario 3.5 I guess. I forgot to mention I tried that. To be
clear - I used --classpath when starting the server to explicitly reference
the jar file as in step 3. But...when using 'create region' to create the
region with Partition resolver, I get the same 'Invalid Partition Resolver'
message.
So, to be clear, I can create the region with my custom partition resolver
regardless of whether deployed via 'deploy' command or referenced in
classpath startup of server as long as I use XML. In neither case can I
create the region with partition resolver using gfsh. However... I can use
the internal one (the SimpleStringPartitionResolver).
BTW - also just tested against Geode 1.3 and have the exact same behavior.
On Tue, Jan 2, 2018 at 3:40 PM, Swapnil Bawaskar <sb...@pivotal.io>
wrote:
> This reminds me of this bug: https://issues.apache.
> org/jira/browse/GEODE-3460
> Although, the comment says that the bug is fixed.
>
> Can you put the jar on the classpath and then create the region using gfsh
> to help narrow down if the issue is with deploying the jar?
>
> Thanks!
>
>
> On Tue, Jan 2, 2018 at 2:17 PM Mark Secrist <ms...@pivotal.io> wrote:
>
>> Hi all,
>> I'm curious why I'd be running into issues using the gfsh command to
>> create a region using a partition resolver, yet can do so using XML
>> configuration. I've tried a couple of different combinations.
>>
>> I have a partition resolver class that is packaged in a JAR file. I
>> tried the following:
>>
>> 1. Deployed jar file using 'deploy --j' [success], created region
>> using command 'create region --name=BookOrder --type=PARTITION
>> --partition-resolver=....' [Failed] - io.pivotal.bookshop.partitions.
>> CustomerPartitionResolverPartitionResolver is an invalid Partition
>> Resolver
>> 2. Configured region from gfsh using StringPrefixPartitionResolver
>> for partition resolver [Success]
>> 3. Un-deployed jar file. Used traditional classpath and XML
>> configuration [Success]
>> 4. Deployed jar file using 'deploy' [Success] Configure region with
>> partition resolver in XML file [Success]
>>
>> If it wasn't for the fact that attempt #2 was successful, I'd believe
>> that maybe it wasn't possible to use the gfsh command to configure a region
>> with partition resolver. I'm frankly at a loss to understand why this
>> wouldn't work.
>>
>> This is using GemFire 9.2.1 bits by the way...
>>
>> Thoughts?
>>
>> --
>>
>> *Mark Secrist | Director, **Global Education Delivery*
>>
>> msecrist@pivotal.io
>>
>> 970.214.4567 Mobile
>>
>> *pivotal.io <http://www.pivotal.io/>*
>>
>> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
>> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
>> <http://www.facebook.com/pivotalsoftware> | YouTube
>> <http://www.youtube.com/gopivotal> | Google+
>> <https://plus.google.com/105320112436428794490>
>>
>
--
*Mark Secrist | Director, **Global Education Delivery*
msecrist@pivotal.io
970.214.4567 Mobile
*pivotal.io <http://www.pivotal.io/>*
Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
<http://www.linkedin.com/company/pivotalsoftware> | Facebook
<http://www.facebook.com/pivotalsoftware> | YouTube
<http://www.youtube.com/gopivotal> | Google+
<https://plus.google.com/105320112436428794490>
Re: Using partition resolver via gfsh command vs XML config
Posted by Swapnil Bawaskar <sb...@pivotal.io>.
This reminds me of this bug:
https://issues.apache.org/jira/browse/GEODE-3460
Although, the comment says that the bug is fixed.
Can you put the jar on the classpath and then create the region using gfsh
to help narrow down if the issue is with deploying the jar?
Thanks!
On Tue, Jan 2, 2018 at 2:17 PM Mark Secrist <ms...@pivotal.io> wrote:
> Hi all,
> I'm curious why I'd be running into issues using the gfsh command to
> create a region using a partition resolver, yet can do so using XML
> configuration. I've tried a couple of different combinations.
>
> I have a partition resolver class that is packaged in a JAR file. I tried
> the following:
>
> 1. Deployed jar file using 'deploy --j' [success], created region
> using command 'create region --name=BookOrder --type=PARTITION
> --partition-resolver=....' [Failed]
> - io.pivotal.bookshop.partitions.CustomerPartitionResolverPartitionResolver
> is an invalid Partition Resolver
> 2. Configured region from gfsh using StringPrefixPartitionResolver for
> partition resolver [Success]
> 3. Un-deployed jar file. Used traditional classpath and XML
> configuration [Success]
> 4. Deployed jar file using 'deploy' [Success] Configure region with
> partition resolver in XML file [Success]
>
> If it wasn't for the fact that attempt #2 was successful, I'd believe that
> maybe it wasn't possible to use the gfsh command to configure a region with
> partition resolver. I'm frankly at a loss to understand why this wouldn't
> work.
>
> This is using GemFire 9.2.1 bits by the way...
>
> Thoughts?
>
> --
>
> *Mark Secrist | Director, **Global Education Delivery*
>
> msecrist@pivotal.io
>
> 970.214.4567 Mobile
>
> *pivotal.io <http://www.pivotal.io/>*
>
> Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn
> <http://www.linkedin.com/company/pivotalsoftware> | Facebook
> <http://www.facebook.com/pivotalsoftware> | YouTube
> <http://www.youtube.com/gopivotal> | Google+
> <https://plus.google.com/105320112436428794490>
>