#!/bin/sh

# preserve current working directory
cd `dirname $0`/..
BASE=`pwd`

LIBCLASSPATH=`echo $BASE/lib/*.jar | tr ' ' ':'`
export CLASSPATH=$LIBCLASSPATH:$BASE/conf

if [ "$LOG_CONFIG" = "" ]; then
LOG_CONFIG="$BASE/conf/log4j.xml"
fi

[ -n "$LOGROOT"] && LOGROOT="log"

JAVA_OPTS="-Xmx512m -Dlog4j.config=$LOG_CONFIG -DlogRoot=log -DlogLevel=ERROR"

java $JAVA_OPTS com.alibaba.doris.client.tools.datamaker.NodeDataMakerTool $*

#usage: nodeDataMaker -ip 127.0.0.1 -port 9001 -vn 1000 -kp 101:kkk -vp vvv -s 0 -e 1000 -c 5 -p true