keith-turner edited a comment on issue #1084: URL: https://github.com/apache/fluo/issues/1084#issuecomment-635021790
@flyingcanopy here are complete instructions that should take you from a clean Ubuntu 18.04 instance to running the test. ```bash # From https://github.com/apache/fluo-uno/blob/master/docs/ubuntu1804.md sudo apt update sudo apt install -y openjdk-11-jdk maven git openssh-server wget libxml2-utils make g++ libsnappy1v5 ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa ssh-keyscan -H localhost >> ~/.ssh/known_hosts cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys sed -i '/# for examples/a export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' ~/.bashrc export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mkdir fluo-1084 cd fluo-1084 # Get software sources, would want to include your fluo changes git clone https://github.com/apache/fluo.git git clone https://github.com/apache/fluo-examples.git git clone https://github.com/apache/fluo-uno.git # patch stress to work with latest fluo cd fluo-examples git checkout -b update-for-200 git pull https://github.com/keith-turner/fluo-examples.git fluo-130-update cd .. #build Fluo Snapshot version cd fluo # Since we are working with unreleased version of Fluo, need to install it to local # maven repo. This makes it available for stresso later mvn clean install -PskipQA # Use Uno to setup Fluo’s deps cd ../fluo-uno # edit conf/uno.conf and set FLUO_REPO to fluo source dir. This will cause # fetch below to build a fluo tar ball. sed -i "s:#export FLUO_REPO=/path/to/fluo:export FLUO_REPO=/home/ubuntu/fluo-1084/fluo:g" conf/uno.conf # download software ./bin/uno fetch fluo # run software ./bin/uno setup fluo # set env vars, this helps stresso find Fluo and Accumulo setup in previous step source <(./bin/uno env) # Run stresso cd ../fluo-examples/stresso cp conf/env.sh.example conf/env.sh ./bin/build.sh mkdir -p logs # change MAPS, REDUCES, and SPLITS to 3. This will make things run # faster on a single node. nano conf/env.sh fluo init -a stresso -p conf/fluo-app.properties fluo oracle -a stresso &> logs/oracle.log & fluo worker -a stresso &> logs/worker.log & ./bin/run-test.sh # kill oracle and worker process started earlier kill %1 %2 # remove stresso fluo app fluo remove -a stresso # run test again if needed fluo init -a stresso -p conf/fluo-app.properties fluo oracle -a stresso &> logs/oracle.log & fluo worker -a stresso &> logs/worker.log & # TODO edit splits to speed up test ./bin/run-test.sh ``` One easy way to get a clean Ubuntu 18.04 instance is to use [multipass](https://multipass.run/). The following command will start up a clean ubuntu 18.04 instance using multipass to run the commands above. ```bash multipass launch -n stresso -m 8G -c 4 -d 16G bionic multipass shell stresso ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
