Re: Review Request 42313: Allow schemes in HDFS URI fetcher plugin to be configurable.

2016-01-14 Thread haosdent huang


> On Jan. 14, 2016, 6:46 p.m., Jie Yu wrote:
> > src/uri/fetchers/hadoop.hpp, line 44
> > 
> >
> > Since you have a default value, this should be non optional.

Let me discard this one. Should be this patch 
https://reviews.apache.org/r/42314/diff/.


- haosdent


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42313/#review114536
---


On Jan. 14, 2016, 6:35 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42313/
> ---
> 
> (Updated Jan. 14, 2016, 6:35 p.m.)
> 
> 
> Review request for mesos, Adam B and Jie Yu.
> 
> 
> Bugs: MESOS-4375
> https://issues.apache.org/jira/browse/MESOS-4375
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Allow schemes in HDFS URI fetcher plugin to be configurable.
> 
> 
> Diffs
> -
> 
>   src/uri/fetchers/hadoop.hpp 066568487dd3d219f87d12cd0fc82113d3a2a28e 
>   src/uri/fetchers/hadoop.cpp 69da5b5ad3c4d085d73ffbeca7c146e421b5dbc1 
> 
> Diff: https://reviews.apache.org/r/42313/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 42313: Allow schemes in HDFS URI fetcher plugin to be configurable.

2016-01-14 Thread Jie Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42313/#review114531
---

Ship it!



src/uri/fetchers/hadoop.hpp (line 43)


This flag will be exposed as agent flags in the future. So let's add more 
context in the naming. Not yours, can you also rename 'hadoop' to 
'hadoop_client'.

```
hadoop_client;
hadoop_client_supported_schemes;
```



src/uri/fetchers/hadoop.cpp (lines 59 - 66)


Can you do the following:
```
vector schemes = strings::tokenize(...);
return set(schmes.begin(), schmes.end());
```


- Jie Yu


On Jan. 14, 2016, 6:35 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42313/
> ---
> 
> (Updated Jan. 14, 2016, 6:35 p.m.)
> 
> 
> Review request for mesos, Adam B and Jie Yu.
> 
> 
> Bugs: MESOS-4375
> https://issues.apache.org/jira/browse/MESOS-4375
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Allow schemes in HDFS URI fetcher plugin to be configurable.
> 
> 
> Diffs
> -
> 
>   src/uri/fetchers/hadoop.hpp 066568487dd3d219f87d12cd0fc82113d3a2a28e 
>   src/uri/fetchers/hadoop.cpp 69da5b5ad3c4d085d73ffbeca7c146e421b5dbc1 
> 
> Diff: https://reviews.apache.org/r/42313/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 42313: Allow schemes in HDFS URI fetcher plugin to be configurable.

2016-01-14 Thread Jie Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42313/#review114536
---



src/uri/fetchers/hadoop.hpp (line 44)


Since you have a default value, this should be non optional.


- Jie Yu


On Jan. 14, 2016, 6:35 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42313/
> ---
> 
> (Updated Jan. 14, 2016, 6:35 p.m.)
> 
> 
> Review request for mesos, Adam B and Jie Yu.
> 
> 
> Bugs: MESOS-4375
> https://issues.apache.org/jira/browse/MESOS-4375
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Allow schemes in HDFS URI fetcher plugin to be configurable.
> 
> 
> Diffs
> -
> 
>   src/uri/fetchers/hadoop.hpp 066568487dd3d219f87d12cd0fc82113d3a2a28e 
>   src/uri/fetchers/hadoop.cpp 69da5b5ad3c4d085d73ffbeca7c146e421b5dbc1 
> 
> Diff: https://reviews.apache.org/r/42313/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>