Closed keith-turner closed 4 years ago
The default proxy-env.sh
could hopefully be as simple as follows.
CONF_DIR=$(readlink -f ./conf)
LIB_DIR=../lib
CLASSPATH="$CONF_DIR:$LIB_DIR/*:$(accumulo classpath)"
The accumulo-proxy
script could do something like the following.
#!/bin/bash
BIN_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $BIN_DIR/..
. conf/env.sh
java org.apache.accumulo.proxy.Proxy conf/proxy.properties "${@}"
This is all untested, just trying to make this a little more concrete.
Actually building the tarball would be done via the maven assembly plugin. Accumulo and Fluo use this build their tarballs.
A tarball would also include LICENSE/NOTICE/README files (just mentioning for completeness). And, should also contain the *.thrift
files and instructions on how to generate language-specific bindings.
@mjwall, are you still working on this? If not, I would like to work on it.
@mjwall, are you still working on this? If not, I would like to work on it.
Feel free @mikewalch
I think it would be useful if the build created a tarball containing at least the following items. This would make it easy for a user to run the proxy.
The source for the scripts and configuration could be placed in
src/main/scripts
andsrc/main/config
in this repo.