whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Savu <savu.and...@gmail.com>
Subject Re: Whirr to restart a cluster
Date Sat, 31 Dec 2011 08:44:38 GMT
Do you want to take the lead on this one?
On Dec 31, 2011 10:16 AM, "Andrei Savu" <savu.andrei@gmail.com> wrote:

> Thanks Ashok for figuring this out. We should update the bash scripts in
> WHIRR-266.
> On Dec 31, 2011 4:03 AM, "Akash Ashok" <thehellmaker@gmail.com> wrote:
>
>> Got it working. ( All stop and start should be run as hadoop user )
>> 1. Change the password of hadoop user ( sudo passwd hadoop )
>> 2. Create hadoop home directories ( from ec2-user  as sudo and give
>> hadoop user permissions )
>> 3. ssh-keygen ( With empty passphrases )
>> 4. copy authorized_keys  of ec2-user to /home/hadoop/.ssh
>>
>> Enjoy:
>> /usr/local/hbase-<version>/bin/hbase-daemons.sh stop master
>> /usr/local/hbase-<version>/bin/hbase-daemons.sh start master
>>
>> Cheers,
>> Akash A
>>
>> On Sat, Dec 31, 2011 at 7:14 AM, Akash Ashok <thehellmaker@gmail.com>wrote:
>>
>>> yeah I've gone through this before but then SSH has an issue
>>> hbase-daemons.sh stop master
>>> Permission denied (publickey).
>>>
>>> Thus I couldn't stop it manually
>>>
>>> Cheers,
>>> Akash A
>>>
>>>
>>>
>>> On Fri, Dec 30, 2011 at 11:31 AM, Andrei Savu <savu.andrei@gmail.com>wrote:
>>>
>>>>
>>>> On Fri, Dec 30, 2011 at 5:42 AM, Akash Ashok <thehellmaker@gmail.com>wrote:
>>>>
>>>>> :( :(
>>>>> Are these mostly scripting changes ? I am not well versed with the
>>>>> code base of Whirr. But If you could point me to the right place I could
>>>>> take this up for HBase. Should I file a JIRA ?
>>>>>
>>>>
>>>> Yes - mostly scripting.
>>>>
>>>> We are tracking progress in WHIRR-266:
>>>> https://issues.apache.org/jira/browse/WHIRR-266
>>>>
>>>>
>>>>>
>>>>> Cheers,
>>>>> Akash A
>>>>>
>>>>> On Thu, Dec 29, 2011 at 3:03 PM, Andrei Savu <savu.andrei@gmail.com>wrote:
>>>>>
>>>>>> We are working on this for 0.8.0. See:
>>>>>> https://issues.apache.org/jira/browse/WHIRR-421
>>>>>>
>>>>>> This feature is not yet available for HBase but it should be by the
>>>>>> time we make the release.
>>>>>>
>>>>>> Also check the following file:
>>>>>>
>>>>>> https://github.com/andreisavu/whirr/blob/trunk/services/hbase/src/main/resources/functions/configure_hbase.sh
>>>>>>
>>>>>> I think this code snippet is relevant for you:
>>>>>>
>>>>>>
>>>>>> function start_hbase_daemon() {
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>   if which dpkg &> /dev/null; then
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>     AS_HADOOP="su -s /bin/bash - hadoop -c"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>   elif which rpm &> /dev/null; then
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>     AS_HADOOP="/sbin/runuser -s /bin/bash - hadoop -c"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>   fi
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>   $AS_HADOOP "$HBASE_HOME/bin/hbase-daemon.sh start $1"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> *
>>>>>> *
>>>>>>
>>>>>> -- Andrei Savu / andreisavu.ro
>>>>>>
>>>>>>
>>>>>> On Thu, Dec 29, 2011 at 4:21 AM, Akash Ashok <thehellmaker@gmail.com>wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>> Is there any way i can restart hbase cluster using whirr ? Meaning
>>>>>>> to say I dnt wanna destroy and re-create the cluster but just
to start and
>>>>>>> stop so that I dnt lose my data on that those instances..
>>>>>>>
>>>>>>> If I login to those instances and try to stop and start it says
pid
>>>>>>> file is not found and hbase is not running. So I presume whirr
starts and
>>>>>>> stop with specific config which are places at different locations
?
>>>>>>>
>>>>>>> Cheers
>>>>>>> Akash A;
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>

Mime
View raw message