You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Jeff Kubina <je...@gmail.com> on 2017/07/07 23:46:36 UTC

Format for attributes with no value

When setting an attribute with no value of a mesos-agent is the colon
needed, optional, or must it be omitted? It's not clear from the
documentation. For example, which line or lines below are correct?

att1:val1;att2;att3:val3

att1:val1;att2:;att3:val3

Re: Format for attributes with no value

Posted by Jeff Kubina <je...@gmail.com>.
https://issues.apache.org/jira/browse/MESOS-7824

-- 
Jeff Kubina
410-988-4436


On Fri, Jul 14, 2017 at 9:03 AM, James Peach <jo...@gmail.com> wrote:

>
> > On Jul 13, 2017, at 1:41 PM, Jeff Kubina <je...@gmail.com> wrote:
> >
> > I want to know the format for an empty attribute in the list format for
> the mesos-slave --attributes option. If I have an attribute, say key2, with
> no value would it be "mesos-slave --attributes
> key1:value1;key2;key3:value3" or "mesos-slave --attributes
> key1:value1;key2:;key3:value3 or does it not matter?
>
> As I said before, I don't think there is a way to have an empty attribute
> value.
>
> $ sudo /opt/mesos/agent "--attributes=key1:value1;key2:;key3:value3"
> ...
> F0714 06:16:49.332021 16167 attributes.cpp:145] Invalid attribute
> key:value pair 'key2:'
>
> $ sudo /opt/mesos/agent "--attributes=key1:value1;key2;key3:value3"
> ...
> F0714 06:17:58.916723 16297 attributes.cpp:145] Invalid attribute
> key:value pair 'key2'
>
> Please file a bug at https://issues.apache.org/jira/projects/MESOS
>
> >
> > --
> > Jeff Kubina
> > 410-988-4436
> >
> >
> > On Tue, Jul 11, 2017 at 5:20 AM, Oeg Bizz <oe...@yahoo.com> wrote:
> > James,
> >   If you need an empty attribute as default for mesos, just create an
> empty file with the '?' in front of it and save it in the
> /etc/mesos-<master or slave> directory.  For instance, if you want to
> enable authentication and want to pass the --authenticate attribute then
> create an empty file called
> > /etc/mesos-master/?authenticate.
> >
> > Not sure if that is what you meant with your question,
> >
> > Oscar
> >
> >
> > On Tuesday, July 11, 2017, 12:53:37 AM EDT, James Peach <
> jorgar@gmail.com> wrote:
> >
> >
> >
> > > On Jul 7, 2017, at 4:46 PM, Jeff Kubina <je...@gmail.com> wrote:
> > >
> > > When setting an attribute with no value of a mesos-agent is the colon
> needed, optional, or must it be omitted? It's not clear from the
> documentation. For example, which line or lines below are correct?
> > >
> > > att1:val1;att2;att3:val3
> > >
> > > att1:val1;att2:;att3:val3
> >
> >
> > I don't see a way to express an empty attribute at all :(
> >
>
>

Re: Format for attributes with no value

Posted by James Peach <jo...@gmail.com>.
> On Jul 13, 2017, at 1:41 PM, Jeff Kubina <je...@gmail.com> wrote:
> 
> I want to know the format for an empty attribute in the list format for the mesos-slave --attributes option. If I have an attribute, say key2, with no value would it be "mesos-slave --attributes key1:value1;key2;key3:value3" or "mesos-slave --attributes key1:value1;key2:;key3:value3 or does it not matter?

As I said before, I don't think there is a way to have an empty attribute value. 

$ sudo /opt/mesos/agent "--attributes=key1:value1;key2:;key3:value3"
...
F0714 06:16:49.332021 16167 attributes.cpp:145] Invalid attribute key:value pair 'key2:'

$ sudo /opt/mesos/agent "--attributes=key1:value1;key2;key3:value3"
...
F0714 06:17:58.916723 16297 attributes.cpp:145] Invalid attribute key:value pair 'key2'

Please file a bug at https://issues.apache.org/jira/projects/MESOS

> 
> -- 
> Jeff Kubina
> 410-988-4436
> 
> 
> On Tue, Jul 11, 2017 at 5:20 AM, Oeg Bizz <oe...@yahoo.com> wrote:
> James,
>   If you need an empty attribute as default for mesos, just create an empty file with the '?' in front of it and save it in the /etc/mesos-<master or slave> directory.  For instance, if you want to enable authentication and want to pass the --authenticate attribute then create an empty file called 
> /etc/mesos-master/?authenticate.
> 
> Not sure if that is what you meant with your question,
> 
> Oscar
> 
> 
> On Tuesday, July 11, 2017, 12:53:37 AM EDT, James Peach <jo...@gmail.com> wrote:
> 
> 
> 
> > On Jul 7, 2017, at 4:46 PM, Jeff Kubina <je...@gmail.com> wrote:
> > 
> > When setting an attribute with no value of a mesos-agent is the colon needed, optional, or must it be omitted? It's not clear from the documentation. For example, which line or lines below are correct?
> > 
> > att1:val1;att2;att3:val3
> > 
> > att1:val1;att2:;att3:val3
> 
> 
> I don't see a way to express an empty attribute at all :(
> 


Re: Format for attributes with no value

Posted by Jeff Kubina <je...@gmail.com>.
I want to know the format for an empty attribute in the list format for the
mesos-slave --attributes option. If I have an attribute, say key2, with no
value would it be "mesos-slave --attributes key1:value1;key2;key3:value3"
or "mesos-slave --attributes key1:value1;key2:;key3:value3 or does it not
matter?

-- 
Jeff Kubina
410-988-4436


On Tue, Jul 11, 2017 at 5:20 AM, Oeg Bizz <oe...@yahoo.com> wrote:

> James,
>   If you need an empty attribute as default for mesos, just create an
> empty file with the '?' in front of it and save it in the
> /etc/mesos-<master or slave> directory.  For instance, if you want to
> enable authentication and want to pass the --authenticate attribute then
> create an empty file called
> /etc/mesos-master/?authenticate.
>
> Not sure if that is what you meant with your question,
>
> Oscar
>
>
> On Tuesday, July 11, 2017, 12:53:37 AM EDT, James Peach <jo...@gmail.com>
> wrote:
>
>
>
> > On Jul 7, 2017, at 4:46 PM, Jeff Kubina <je...@gmail.com> wrote:
> >
> > When setting an attribute with no value of a mesos-agent is the colon
> needed, optional, or must it be omitted? It's not clear from the
> documentation. For example, which line or lines below are correct?
> >
> > att1:val1;att2;att3:val3
> >
> > att1:val1;att2:;att3:val3
>
>
> I don't see a way to express an empty attribute at all :(
>

Re: Format for attributes with no value

Posted by Oeg Bizz <oe...@yahoo.com>.
James,  If you need an empty attribute as default for mesos, just create an empty file with the '?' in front of it and save it in the /etc/mesos-<master or slave> directory.  For instance, if you want to enable authentication and want to pass the --authenticate attribute then create an empty file called /etc/mesos-master/?authenticate.
Not sure if that is what you meant with your question,
Oscar

On Tuesday, July 11, 2017, 12:53:37 AM EDT, James Peach <jo...@gmail.com> wrote:


> On Jul 7, 2017, at 4:46 PM, Jeff Kubina <je...@gmail.com> wrote:
> 
> When setting an attribute with no value of a mesos-agent is the colon needed, optional, or must it be omitted? It's not clear from the documentation. For example, which line or lines below are correct?
> 
> att1:val1;att2;att3:val3
> 
> att1:val1;att2:;att3:val3

I don't see a way to express an empty attribute at all :(

Re: Format for attributes with no value

Posted by James Peach <jo...@gmail.com>.
> On Jul 7, 2017, at 4:46 PM, Jeff Kubina <je...@gmail.com> wrote:
> 
> When setting an attribute with no value of a mesos-agent is the colon needed, optional, or must it be omitted? It's not clear from the documentation. For example, which line or lines below are correct?
> 
> att1:val1;att2;att3:val3
> 
> att1:val1;att2:;att3:val3

I don't see a way to express an empty attribute at all :(