Re: HBase failing to restart in single-user mode

2015-05-19 Thread Esteban Gutierrez
The randomshit is generated per user. /var/folders has multiple subdirectories and each one contains subdirs of the users. Also there are some rules under /etc/defaults/periodic.conf and /etc/periodic/daily/110.clean-tmps that define how frequently the tmp directories are cleaned so its rare people

Re: HBase failing to restart in single-user mode

2015-05-19 Thread Nick Dimiduk
On Tue, May 19, 2015 at 4:45 PM, tsuna wrote: > On Tue, May 19, 2015 at 11:27 AM, Esteban Gutierrez > wrote: > > Something that works for me is to set manually > > -Djava.io.tmpdir=/User/esteban/tmp in the jvm arguments, otherwise Mac > OS > > X will use /var/folders/c2//T for TMPDIR causing al

Re: HBase failing to restart in single-user mode

2015-05-19 Thread tsuna
On Mon, May 18, 2015 at 10:07 PM, Nick Dimiduk wrote: > Wait. Benoit, you mean restart the laptop or stop/start HBase? I agree that > contents of /tmp are not stable across system reboot, across stop/start of > HBase process there should be no problems. Should. I mean restart HBase. I almost nev

Re: HBase failing to restart in single-user mode

2015-05-19 Thread Esteban Gutierrez
Something that works for me is to set manually -Djava.io.tmpdir=/User/esteban/tmp in the jvm arguments, otherwise Mac OS X will use /var/folders/c2//T for TMPDIR causing all kind of weird issues. You could also set TMPDIR to point to another location but you will have to remember that all the time

Re: HBase failing to restart in single-user mode

2015-05-18 Thread Nick Dimiduk
Wait. Benoit, you mean restart the laptop or stop/start HBase? I agree that contents of /tmp are not stable across system reboot, across stop/start of HBase process there should be no problems. Should. For what it's worth, on the Mac and local mode testing, I usually use $HBASE_HOME/data. This is

Re: HBase failing to restart in single-user mode

2015-05-18 Thread anil gupta
Hi Benoit, I think you need to move the directory out of "/tmp" and give it a shot. /tmp/hbase-${user.name} /zk will get cleaned up during restart. ~Anil On Mon, May 18, 2015 at 9:45 PM, tsuna wrote: > I added this to hbase-site.xml: > > > hbase.zookeeper.property.dataDir > /tmp/hbase-${u

Re: HBase failing to restart in single-user mode

2015-05-18 Thread tsuna
I added this to hbase-site.xml: hbase.zookeeper.property.dataDir /tmp/hbase-${user.name}/zk Didn’t change anything. Once I kill/shutdown HBase, it won’t come back up. On Mon, May 18, 2015 at 1:14 AM, Viral Bajaria wrote: > Same for me, I had faced similar issues especially on my virtual

Re: HBase failing to restart in single-user mode

2015-05-18 Thread Viral Bajaria
Same for me, I had faced similar issues especially on my virtual machines since I would restart them more often than my host machine. Moving ZK from /tmp which could get cleared on reboots fixed the issue for me. Thanks, Viral On Sun, May 17, 2015 at 10:39 PM, Lars George wrote: > I noticed s

Re: HBase failing to restart in single-user mode

2015-05-17 Thread Lars George
I noticed similar ZK related issues but those went away after changing the ZK directory to a permanent directory along with the HBase root directory. Both point now to a location in my home folder and restarts work fine now. Not much help but wanted to at least state that. Lars Sent from my

HBase failing to restart in single-user mode

2015-05-17 Thread tsuna
Hi all, For testing on my laptop (OSX with JDK 1.7.0_45) I usually build the latest version from branch-1.0 and use the following config: hbase.rootdir file:///tmp/hbase-${user.name} hbase.online.schema.update.enable true zookeeper.session.timeout 30 hbase.zookeeper.prope