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 2011/05/14 22:00:30 UTC
Issues with local-regionservers.sh
Hi,
I tried to start a few more local region servers using the new
local-regionservers.sh script, but it failed simply printing the usage
instructions. I fiddled a bit and found the order of the values is
wrong in the daemon script. Here is what I changed to make it work:
--- bin/hbase-daemon.sh (revision 1101351)
+++ bin/hbase-daemon.sh (working copy)
@@ -143,7 +143,7 @@
echo "`ulimit -a`" >> $loglog 2>&1
nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
--config "${HBASE_CONF_DIR}" \
- $command $startStop "$@" > "$logout" 2>&1 < /dev/null &
+ $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
echo $! > $pid
sleep 1; head "$logout"
;;
But I sort of assume this is not really the solution as you cannot
pass anything else in then to a class. How is this supposed to work?
Does it work for you?
Lars
Re: Issues with local-regionservers.sh
Posted by Stack <st...@duboce.net>.
On Wed, May 18, 2011 at 12:03 AM, Lars George <la...@gmail.com> wrote:
> Oh looksee here
>
> https://issues.apache.org/jira/browse/HBASE-3833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028332#comment-13028332
>
> No wonder it works for fb :)
>
> So we need to also swap this, while making sure it has no negative
> influence, or fix otherwise. Creating issue.
>
Thanks Lars. I remember that comment now. Yes, I'm afraid the
swapping of order will break other stuff (maybe it won't).
St.Ack
Re: Issues with local-regionservers.sh
Posted by Lars George <la...@gmail.com>.
Oh looksee here
https://issues.apache.org/jira/browse/HBASE-3833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028332#comment-13028332
No wonder it works for fb :)
So we need to also swap this, while making sure it has no negative
influence, or fix otherwise. Creating issue.
On Mon, May 16, 2011 at 9:38 PM, Stack <st...@duboce.net> wrote:
> Right. It looks broke. Can you change local-regionservers.sh so it
> passes args to hbase-daemon.sh in right order?
> St.Ack
>
> On Sat, May 14, 2011 at 1:00 PM, Lars George <la...@gmail.com> wrote:
>> Hi,
>>
>> I tried to start a few more local region servers using the new
>> local-regionservers.sh script, but it failed simply printing the usage
>> instructions. I fiddled a bit and found the order of the values is
>> wrong in the daemon script. Here is what I changed to make it work:
>>
>> --- bin/hbase-daemon.sh (revision 1101351)
>> +++ bin/hbase-daemon.sh (working copy)
>> @@ -143,7 +143,7 @@
>> echo "`ulimit -a`" >> $loglog 2>&1
>> nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
>> --config "${HBASE_CONF_DIR}" \
>> - $command $startStop "$@" > "$logout" 2>&1 < /dev/null &
>> + $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
>> echo $! > $pid
>> sleep 1; head "$logout"
>> ;;
>>
>>
>> But I sort of assume this is not really the solution as you cannot
>> pass anything else in then to a class. How is this supposed to work?
>> Does it work for you?
>>
>> Lars
>>
>
Re: Issues with local-regionservers.sh
Posted by Stack <st...@duboce.net>.
Right. It looks broke. Can you change local-regionservers.sh so it
passes args to hbase-daemon.sh in right order?
St.Ack
On Sat, May 14, 2011 at 1:00 PM, Lars George <la...@gmail.com> wrote:
> Hi,
>
> I tried to start a few more local region servers using the new
> local-regionservers.sh script, but it failed simply printing the usage
> instructions. I fiddled a bit and found the order of the values is
> wrong in the daemon script. Here is what I changed to make it work:
>
> --- bin/hbase-daemon.sh (revision 1101351)
> +++ bin/hbase-daemon.sh (working copy)
> @@ -143,7 +143,7 @@
> echo "`ulimit -a`" >> $loglog 2>&1
> nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
> --config "${HBASE_CONF_DIR}" \
> - $command $startStop "$@" > "$logout" 2>&1 < /dev/null &
> + $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
> echo $! > $pid
> sleep 1; head "$logout"
> ;;
>
>
> But I sort of assume this is not really the solution as you cannot
> pass anything else in then to a class. How is this supposed to work?
> Does it work for you?
>
> Lars
>