Re: Using ZooCache in unit tests

2014-06-11 Thread Bill Havanki
Add a static setZooCacheFactory() method to Tables. Then you can set a mock ZooCacheFactory instance and inject a mock ZooCache. On Wed, Jun 11, 2014 at 8:21 PM, Mike Drob wrote: > I tried passing a MockInstance and a mock(Instance.class) higher in the > call chain, but it still tried to pull i

Re: Using ZooCache in unit tests

2014-06-11 Thread Mike Drob
I tried passing a MockInstance and a mock(Instance.class) higher in the call chain, but it still tried to pull information out of them to make the call. Explicitly mocking that call might work, but I thought there was some issue with PowerMock and Java 7 that existed when mocking static methods? O

Re: Using ZooCache in unit tests

2014-06-11 Thread William Slacum
What about mocking that call? On Wed, Jun 11, 2014 at 8:09 PM, Mike Drob wrote: > When writing unit tests, I indirectly call code that invokes > {{Tables.getZooCache(Instance)}} which sets up a connection to a zookeeper. > However, there is not a server running, so this end up looping forever >

Using ZooCache in unit tests

2014-06-11 Thread Mike Drob
When writing unit tests, I indirectly call code that invokes {{Tables.getZooCache(Instance)}} which sets up a connection to a zookeeper. However, there is not a server running, so this end up looping forever until my test times out. It looks like my options are... 1) Make it an IT that uses MAC, s

Re: Deploying SNAPSHOTs to nexus

2014-06-11 Thread Billie Rinaldi
I think snapshots are okay. This link [1] on release distribution says there is also a dev release area for things like snapshots and release candidates. So I would imagine maven snapshots are okay too, as long as we're deploying to the snapshots repo and not the releases repo. We just aren't al

Re: Deploying SNAPSHOTs to nexus

2014-06-11 Thread Josh Elser
Finally found a job that does deploy SNAPSHOTs https://builds.apache.org/view/All/job/Hadoop-trunk-Commit I'm guessing that the way they're executing things source's some environment variable that has the sensitive bits to deploy. On 6/11/14, 2:25 PM, Josh Elser wrote: On http://www.apache.o

Re: Make accumulo shell easy to use.

2014-06-11 Thread Vicky Kak
I did not said that we have to set the env variable in bootstrap_conf.sh but to get the accumuo shell running after the fresh build we have to run bootstrap_config.sh for the first time. I can set the environment variable in the ~.bashrc. I checked it again now! On Wed, Jun 11, 2014 at 11:16 PM

Re: Deploying SNAPSHOTs to nexus

2014-06-11 Thread Josh Elser
On http://www.apache.org/dev/repository-faq.html They call out deploying a SNAPSHOT as long as the PMC is ok with it, but they also mention Maven 1 which, I believe, is older than me. I don't think that deploying artifacts to the snapshots area of Nexus equates to an official release, but tha

Re: Make accumulo shell easy to use.

2014-06-11 Thread Mike Drob
Yes, you will need to have HADOOP_PREFIX and ZOOKEEPER_HOME set, although not necessarily in bootstrap_config.sh -- I think you can just set them in your shell (like in .bashrc) and expect things to work. On Wed, Jun 11, 2014 at 1:44 PM, Vicky Kak wrote: > To get it fixed I have to run $ACCUMUL

Re: Make accumulo shell easy to use.

2014-06-11 Thread Vicky Kak
To get it fixed I have to run $ACCUMULO_HOME/bin/bootstrap_config.sh and then setting these env variables 1) HADOOP_PREFIX 2) ZOOKEPER_HOME So everytime I build accumulo from source I have set the ACCUMULO_HOME and then run the bootstrap-config.sh and finally have the env variables set for HADOO

Make accumulo shell easy to use.

2014-06-11 Thread Vicky Kak
Hi Guys, Every time I am building the accumulo the distribution would get created and when I run the accumulo shell I get information on console like this *** Accumulo is not properly configured. Try running $ACCUMULO_HO

Re: Review Request 22458: ACCUMULO-2891 check for masters file before grep

2014-06-11 Thread Alex Moundalexis
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22458/#review45386 --- Ship it! Ship It! - Alex Moundalexis On June 11, 2014, 2:20 p.m.

Re: Review Request 22458: ACCUMULO-2891 check for masters file before grep

2014-06-11 Thread Bill Havanki
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22458/#review45384 --- Ship it! Ship It! - Bill Havanki On June 11, 2014, 10:20 a.m., M

Re: Deploying SNAPSHOTs to nexus

2014-06-11 Thread Christopher
I don't know for sure about what was done in the past, but we should consider the ASF policy about not making non releases generally available to non devs before we make this change. Can try to find link to policy later. Before we released 1.6.0, I got a request to upload some new 1.6.0-SNAPSHOT ja

Review Request 22458: ACCUMULO-2891 check for masters file before grep

2014-06-11 Thread Mike Drob
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22458/ --- Review request for accumulo and Alex Moundalexis. Bugs: ACCUMULO-2891 https

Re: Review Request 22437: ACCUMULO-2887 - ObservableConfiguration

2014-06-11 Thread Eric Newton
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22437/#review45374 --- Ship it! Ship It! - Eric Newton On June 10, 2014, 8:12 p.m., Bil

Re: Review Request 22437: ACCUMULO-2887 - ObservableConfiguration

2014-06-11 Thread keith
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22437/#review45373 --- Ship it! Ship It! - kturner On June 10, 2014, 8:12 p.m., Bill Ha

Re: Zookeeper on Docker

2014-06-11 Thread Mike Drob
You might try directing this to dev@zookeeper.a.o and see what they think. On Jun 10, 2014 4:17 PM, "David Medinets" wrote: > https://github.com/medined/docker-zookeeper - It seems like this project > starts a three-node zookeeper ensemble and a web-based application to view > the contents of the

The Haskell Tax

2014-06-11 Thread David Medinets
http://michaelochurch.wordpress.com/2014/06/06/why-programmers-cant-make-any-money-dimensionality-and-the-eternal-haskell-tax/ - This is a long article but I'll pull out something that has personally affected me: "Related to this is the Fundamental Hypocrisy of Employers, a factor that makes it da