Thanks Ashok for figuring this out. We should update the bash scripts in WHIRR-266. On Dec 31, 2011 4:03 AM, "Akash Ashok" <[email protected]> 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 <[email protected]>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 <[email protected]>wrote: >> >>> >>> On Fri, Dec 30, 2011 at 5:42 AM, Akash Ashok <[email protected]>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 <[email protected]>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 >>>>> <[email protected]>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; >>>>>> >>>>> >>>>> >>>> >>> >> >
