You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Jean-Marc Spaggiari <je...@spaggiari.org> on 2012/11/12 14:38:52 UTC

About -D parameters

Hi,

I'm building a MapReduce and I have some question about the -D parameters.

Re: About -D parameters

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Oh! I see!

Super, thanks a lot for all this information! Very clear to me now!

Thanks,

JM

2012/11/12, Shrijeet Paliwal <sh...@rocketfuel.com>:
> Inline.
>
> On Mon, Nov 12, 2012 at 5:45 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
>> Oups, sorry about that :( Pressed the send button to quickly :(
>>
>> So, question is.
>>
>> On the RowCounter MapReduce we can pass
>> "-Dhbase.client.scanner.caching=100". But I'm not able to find
>> anywhere where it's parsed
>>
>
> Its done by Hadoop's
> GenericOptionsParser<https://github.com/apache/hadoop-common/blob/branch-0.20.203/src/core/org/apache/hadoop/util/GenericOptionsParser.java>
>  .
>
>
>>
>> I only found that on the HTable and it's read from the configuration.
>>
>> On my MapReduce I want something like hbase.client.putbuffer.size to
>> send puts 10 by 10 or 100 by 100 to HBase. So my questions are:
>> 1) Do I simply need to do something like
>> configuration.getInt("hbase.client.putbuffer.size", 1); to get this
>> parameter on the code and configuration will take care of it?
>>
>
> If you have used GenericOptionsParser in your code and the order of
> arguments is correct [bin/hadoop command [genericOptions] [commandOptions]]
> , then it will work.
>
>
>> 2) Is there a naming convention for those kind of parameters?
>>
>
> One that is consistent and meaningful. Hadoop's Configuration class does
> not enforce any convention on its own.
>
>>
>> Thanks,
>>
>> JM
>>
>> 2012/11/12, Jean-Marc Spaggiari <je...@spaggiari.org>:
>> > Hi,
>> >
>> > I'm building a MapReduce and I have some question about the -D
>> parameters.
>> >
>>
>

Re: About -D parameters

Posted by Shrijeet Paliwal <sh...@rocketfuel.com>.
Inline.

On Mon, Nov 12, 2012 at 5:45 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Oups, sorry about that :( Pressed the send button to quickly :(
>
> So, question is.
>
> On the RowCounter MapReduce we can pass
> "-Dhbase.client.scanner.caching=100". But I'm not able to find
> anywhere where it's parsed
>

Its done by Hadoop's
GenericOptionsParser<https://github.com/apache/hadoop-common/blob/branch-0.20.203/src/core/org/apache/hadoop/util/GenericOptionsParser.java>
 .


>
> I only found that on the HTable and it's read from the configuration.
>
> On my MapReduce I want something like hbase.client.putbuffer.size to
> send puts 10 by 10 or 100 by 100 to HBase. So my questions are:
> 1) Do I simply need to do something like
> configuration.getInt("hbase.client.putbuffer.size", 1); to get this
> parameter on the code and configuration will take care of it?
>

If you have used GenericOptionsParser in your code and the order of
arguments is correct [bin/hadoop command [genericOptions] [commandOptions]]
, then it will work.


> 2) Is there a naming convention for those kind of parameters?
>

One that is consistent and meaningful. Hadoop's Configuration class does
not enforce any convention on its own.

>
> Thanks,
>
> JM
>
> 2012/11/12, Jean-Marc Spaggiari <je...@spaggiari.org>:
> > Hi,
> >
> > I'm building a MapReduce and I have some question about the -D
> parameters.
> >
>

Re: About -D parameters

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Oups, sorry about that :( Pressed the send button to quickly :(

So, question is.

On the RowCounter MapReduce we can pass
"-Dhbase.client.scanner.caching=100". But I'm not able to find
anywhere where it's parsed

I only found that on the HTable and it's read from the configuration.

On my MapReduce I want something like hbase.client.putbuffer.size to
send puts 10 by 10 or 100 by 100 to HBase. So my questions are:
1) Do I simply need to do something like
configuration.getInt("hbase.client.putbuffer.size", 1); to get this
parameter on the code and configuration will take care of it?
2) Is there a naming convention for those kind of parameters?

Thanks,

JM

2012/11/12, Jean-Marc Spaggiari <je...@spaggiari.org>:
> Hi,
>
> I'm building a MapReduce and I have some question about the -D parameters.
>