accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <david.medin...@gmail.com>
Subject Re: jodoc update (MAC in Docker)
Date Wed, 17 Dec 2014 03:26:59 GMT
I removed my jodoc image, then repeated your steps. I did not run into
the NullPointerException. I'll email you privately to see if we can
find more details.

On Mon, Dec 15, 2014 at 11:51 PM, Matthew Dailey
<matthew.dailey1@gmail.com> wrote:
> David,
>
> I tried out your last example for running MAC as a daemon, but the container
> kept failing with exit code 1.  I tried it as interactive, and see I got a
> NPE.  Here's how I tried to run it, and what the output was:
>
> [matt@matttoshiba ~]$ cat mini-acc.sh
> #!/bin/bash
>
> # copied from d. medinets' email
> export WORKDIR=~/my-miniaccumulo-cluster
> rm -rf $WORKDIR/*
> mkdir -p $WORKDIR
> sudo docker run \
>     -v $WORKDIR:/accumulo \
>     -e TSERVER_COUNT=20 \
>     -e ACCUMULO_SCHEMA=D4M \
>     -e JAVA_USER=${USER} \
>     -e MONITOR_PORT=20001 \
>     -e ZOOKEEPER_PORT=20000 \
>     -i \
>     --rm \
>     --net=host \
>     -t medined/jodoc \
>     /bin/bash
> [matt@matttoshiba ~]$ ./mini-acc.sh
> root@matttoshiba:/# ./startup.sh
> Exception in thread "main" java.lang.NullPointerException
>     at
> org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl.initialize(MiniAccumuloConfigImpl.java:100)
>     at
> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.<init>(MiniAccumuloClusterImpl.java:339)
>     at com.codebits.jodoc.Application.main(Application.java:39)
>
> Do you see anything wrong with how I went about this?
>
> Thanks,
> Matt
>
>
> On Sun, Dec 14, 2014 at 6:20 PM, David Medinets <david.medinets@gmail.com>
> wrote:
>>
>> You can start a MAC with one command if you use Docker. Could using
>> Accumulo get any easier?
>>
>> docker run \
>>   -e JAVA_USER=${USER} \
>>   -e MONITOR_PORT=20001 \
>>   -e ZOOKEEPER_PORT=20000 \
>>   -d \
>>   --net=host \
>>   -t medined/jodoc
>>
>> This command downloads a 300MB image from Docker Hub.
>>
>> If you want more control, you can mount a host directory as a volume
>> in the instance and change the TServer count. After the MAC starts up,
>> you can easily look into the conf directory to check settings. You
>> could also examine any .rf files that are created.
>>
>> export WORKDIR=~/my-miniaccumulo-cluster
>> rm -rf $WORKDIR/*
>> mkdir -p $WORKDIR
>> docker run \
>>   -v $WORKDIR:/accumulo \
>>   -e TSERVER_COUNT=20 \
>>   -e JAVA_USER=${USER} \
>>   -e MONITOR_PORT=20001 \
>>   -e ZOOKEEPER_PORT=20000 \
>>   -d \
>>   --net=host \
>>   -t medined/jodoc
>>
>> There is one more feature. If you specify the ACCUMULO_SCHEMA as D4M
>> those tables will be created and pre-split for you:
>>
>> export WORKDIR=~/my-miniaccumulo-cluster
>> rm -rf $WORKDIR/*
>> mkdir -p $WORKDIR
>> docker run \
>>   -v $WORKDIR:/accumulo \
>>   -e TSERVER_COUNT=20 \
>>   -e ACCUMULO_SCHEMA=D4M \
>>   -e JAVA_USER=${USER} \
>>   -e MONITOR_PORT=20001 \
>>   -e ZOOKEEPER_PORT=20000 \
>>   -d \
>>   --net=host \
>>   -t medined/jodoc

Mime
View raw message