Re: Format for attributes with no value

2017-07-24 Thread Jeff Kubina
https://issues.apache.org/jira/browse/MESOS-7824

-- 
Jeff Kubina
410-988-4436


On Fri, Jul 14, 2017 at 9:03 AM, James Peach  wrote:

>
> > On Jul 13, 2017, at 1:41 PM, Jeff Kubina  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  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- 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 <
> jor...@gmail.com> wrote:
> >
> >
> >
> > > On Jul 7, 2017, at 4:46 PM, Jeff Kubina  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

2017-07-14 Thread James Peach

> On Jul 13, 2017, at 1:41 PM, Jeff Kubina  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  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- 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  
> wrote:
> 
> 
> 
> > On Jul 7, 2017, at 4:46 PM, Jeff Kubina  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

2017-07-13 Thread Jeff Kubina
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  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- 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 
> wrote:
>
>
>
> > On Jul 7, 2017, at 4:46 PM, Jeff Kubina  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

2017-07-11 Thread Oeg Bizz
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- 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  
wrote:


> On Jul 7, 2017, at 4:46 PM, Jeff Kubina  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

2017-07-10 Thread James Peach

> On Jul 7, 2017, at 4:46 PM, Jeff Kubina  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 :(

Format for attributes with no value

2017-07-07 Thread Jeff Kubina
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