You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Lars George <la...@gmail.com> on 2017/07/14 10:55:03 UTC

Ident String

Hi,

Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
`hbase.id.str` as a command line parameter to the daemon. But I cannot
find where that is used. Could someone point me in the right
direction?

Cheers,
Lars

Re: Ident String

Posted by Ted Yu <yu...@gmail.com>.
When there're two (or more) region server instances running on the same
machine, the ident str can be used to distinguish the instances.

There may be other scenarios where the ident str is used.

Cheers

On Fri, Jul 14, 2017 at 3:55 AM, Lars George <la...@gmail.com> wrote:

> Hi,
>
> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
> `hbase.id.str` as a command line parameter to the daemon. But I cannot
> find where that is used. Could someone point me in the right
> direction?
>
> Cheers,
> Lars
>

Re: Ident String

Posted by Lars George <la...@gmail.com>.
Don't think it is necessary, does not to any harm. 

Sent from my iPhone

> On 21. Jul 2017, at 00:10, Stack <st...@duboce.net> wrote:
> 
>> On Thu, Jul 20, 2017 at 9:20 PM, Lars George <la...@gmail.com> wrote:
>> 
>> Ah ok, I missed that HBASE_IDENT_STR is used to personalize the log and
>> pid file names. Hadoop does the same, so that makes sense. But the
>> -Dhbase.id.str is not used, neither is it in Hadoop. No worries, just
>> wanted to see if anyone had an idea if that was ever used. Does not seem to
>> be the case.
>> 
>> 
> Should we remove it then boss?
> St.Ack
> 
> 
> 
>> Cheers,
>> Lars
>> 
>> Sent from my iPad
>> 
>>> On 19. Jul 2017, at 22:42, Lars George <la...@gmail.com> wrote:
>>> 
>>> It dates back to Hadoop:
>>> 
>>> https://github.com/apache/hbase/commit/24b065cc91f7bcdab25fc363469965
>> 7ac2f27104
>>> 
>>> See this https://github.com/apache/hadoop/blame/trunk/hadoop-
>> common-project/hadoop-common/src/main/conf/hadoop-env.sh#L202
>>> 
>>> It is used there for logs (according to the comment, haven't checked if
>> it really does). Are we doing that? Will check...
>>> 
>>> 
>>> Sent from my iPad
>>> 
>>>> On 19. Jul 2017, at 16:43, Stack <st...@duboce.net> wrote:
>>>> 
>>>> It shows when you do a long processing listing. It is a convention from
>>>> hadoop. It does similar. Here's a few example snippets Lars:
>>>> 
>>>> For hbase master process listing, you'll find this in the long line...:
>>>> -Dproc_master
>>>> 
>>>> Etc:
>>>> 
>>>> -Dproc_zookeeper
>>>> 
>>>> -Dproc_resourcemanager
>>>> 
>>>> St.Ack
>>>> 
>>>> 
>>>>> On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com>
>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
>>>>> `hbase.id.str` as a command line parameter to the daemon. But I cannot
>>>>> find where that is used. Could someone point me in the right
>>>>> direction?
>>>>> 
>>>>> Cheers,
>>>>> Lars
>>>>> 
>> 

Re: Ident String

Posted by Stack <st...@duboce.net>.
On Thu, Jul 20, 2017 at 9:20 PM, Lars George <la...@gmail.com> wrote:

> Ah ok, I missed that HBASE_IDENT_STR is used to personalize the log and
> pid file names. Hadoop does the same, so that makes sense. But the
> -Dhbase.id.str is not used, neither is it in Hadoop. No worries, just
> wanted to see if anyone had an idea if that was ever used. Does not seem to
> be the case.
>
>
Should we remove it then boss?
St.Ack



> Cheers,
> Lars
>
> Sent from my iPad
>
> > On 19. Jul 2017, at 22:42, Lars George <la...@gmail.com> wrote:
> >
> > It dates back to Hadoop:
> >
> > https://github.com/apache/hbase/commit/24b065cc91f7bcdab25fc363469965
> 7ac2f27104
> >
> > See this https://github.com/apache/hadoop/blame/trunk/hadoop-
> common-project/hadoop-common/src/main/conf/hadoop-env.sh#L202
> >
> > It is used there for logs (according to the comment, haven't checked if
> it really does). Are we doing that? Will check...
> >
> >
> > Sent from my iPad
> >
> >> On 19. Jul 2017, at 16:43, Stack <st...@duboce.net> wrote:
> >>
> >> It shows when you do a long processing listing. It is a convention from
> >> hadoop. It does similar. Here's a few example snippets Lars:
> >>
> >> For hbase master process listing, you'll find this in the long line...:
> >> -Dproc_master
> >>
> >> Etc:
> >>
> >> -Dproc_zookeeper
> >>
> >> -Dproc_resourcemanager
> >>
> >> St.Ack
> >>
> >>
> >>> On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com>
> wrote:
> >>>
> >>> Hi,
> >>>
> >>> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
> >>> `hbase.id.str` as a command line parameter to the daemon. But I cannot
> >>> find where that is used. Could someone point me in the right
> >>> direction?
> >>>
> >>> Cheers,
> >>> Lars
> >>>
>

Re: Ident String

Posted by Lars George <la...@gmail.com>.
Ah ok, I missed that HBASE_IDENT_STR is used to personalize the log and pid file names. Hadoop does the same, so that makes sense. But the -Dhbase.id.str is not used, neither is it in Hadoop. No worries, just wanted to see if anyone had an idea if that was ever used. Does not seem to be the case.

Cheers,
Lars

Sent from my iPad

> On 19. Jul 2017, at 22:42, Lars George <la...@gmail.com> wrote:
> 
> It dates back to Hadoop:
> 
> https://github.com/apache/hbase/commit/24b065cc91f7bcdab25fc3634699657ac2f27104
> 
> See this https://github.com/apache/hadoop/blame/trunk/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh#L202
> 
> It is used there for logs (according to the comment, haven't checked if it really does). Are we doing that? Will check...
> 
> 
> Sent from my iPad
> 
>> On 19. Jul 2017, at 16:43, Stack <st...@duboce.net> wrote:
>> 
>> It shows when you do a long processing listing. It is a convention from
>> hadoop. It does similar. Here's a few example snippets Lars:
>> 
>> For hbase master process listing, you'll find this in the long line...:
>> -Dproc_master
>> 
>> Etc:
>> 
>> -Dproc_zookeeper
>> 
>> -Dproc_resourcemanager
>> 
>> St.Ack
>> 
>> 
>>> On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
>>> `hbase.id.str` as a command line parameter to the daemon. But I cannot
>>> find where that is used. Could someone point me in the right
>>> direction?
>>> 
>>> Cheers,
>>> Lars
>>> 

Re: Ident String

Posted by Lars George <la...@gmail.com>.
It dates back to Hadoop:

https://github.com/apache/hbase/commit/24b065cc91f7bcdab25fc3634699657ac2f27104

See this https://github.com/apache/hadoop/blame/trunk/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh#L202

It is used there for logs (according to the comment, haven't checked if it really does). Are we doing that? Will check...


Sent from my iPad

> On 19. Jul 2017, at 16:43, Stack <st...@duboce.net> wrote:
> 
> It shows when you do a long processing listing. It is a convention from
> hadoop. It does similar. Here's a few example snippets Lars:
> 
> For hbase master process listing, you'll find this in the long line...:
> -Dproc_master
> 
> Etc:
> 
> -Dproc_zookeeper
> 
> -Dproc_resourcemanager
> 
> St.Ack
> 
> 
>> On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com> wrote:
>> 
>> Hi,
>> 
>> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
>> `hbase.id.str` as a command line parameter to the daemon. But I cannot
>> find where that is used. Could someone point me in the right
>> direction?
>> 
>> Cheers,
>> Lars
>> 

Re: Ident String

Posted by Lars George <la...@gmail.com>.
Thanks Stack, but you are talking about something else methinks. I know of the "-Dproc_<process name>" convention. What I am asking about is different, it is settable by the user in the hbase-env.sh and is added to the command line as "-Dhbase.id.str=...". I have no idea who is using it and why. Makes sense?

Sent from my iPad

> On 19. Jul 2017, at 16:43, Stack <st...@duboce.net> wrote:
> 
> It shows when you do a long processing listing. It is a convention from
> hadoop. It does similar. Here's a few example snippets Lars:
> 
> For hbase master process listing, you'll find this in the long line...:
> -Dproc_master
> 
> Etc:
> 
> -Dproc_zookeeper
> 
> -Dproc_resourcemanager
> 
> St.Ack
> 
> 
>> On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com> wrote:
>> 
>> Hi,
>> 
>> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
>> `hbase.id.str` as a command line parameter to the daemon. But I cannot
>> find where that is used. Could someone point me in the right
>> direction?
>> 
>> Cheers,
>> Lars
>> 

Re: Ident String

Posted by Stack <st...@duboce.net>.
It shows when you do a long processing listing. It is a convention from
hadoop. It does similar. Here's a few example snippets Lars:

For hbase master process listing, you'll find this in the long line...:
-Dproc_master

Etc:

-Dproc_zookeeper

-Dproc_resourcemanager

St.Ack


On Fri, Jul 14, 2017 at 11:55 AM, Lars George <la...@gmail.com> wrote:

> Hi,
>
> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
> `hbase.id.str` as a command line parameter to the daemon. But I cannot
> find where that is used. Could someone point me in the right
> direction?
>
> Cheers,
> Lars
>

Re: Ident String

Posted by Lars George <la...@gmail.com>.
Bueller? Anyone?

:)

On Fri, Jul 14, 2017 at 12:55 PM, Lars George <la...@gmail.com> wrote:
> Hi,
>
> Was coming across `HBASE_IDENT_STR` (in hbase-env.sh) which sets
> `hbase.id.str` as a command line parameter to the daemon. But I cannot
> find where that is used. Could someone point me in the right
> direction?
>
> Cheers,
> Lars