git clone git@github.com:allwefantasy/streamingpro.git
cd streamingpro export MLSQL_SPARK_VERSION=2.4 ./dev/package.sh
你会在如下目录发现一个jar包:
streamingpro-mlsql/target/streamingpro-mlsql-spark_2.4-1.2.0-SNAPSHOT.jar
大概280多M。 接着手动创建一个发型包:
export VERSION=1.2.0-SNAPSHOT mkdir -p /tmp/mlsql-server/libs cp streamingpro-mlsql/target/streamingpro-mlsql-spark_2.4-${VERSION}.jar /tmp/mlsql-server/libs cp dev/start-local.sh /tmp/mlsql-server cd /tmp/mlsql-server export SPARK_HOME=~/Softwares/spark-2.4.0-bin-hadoop2.7 ./start-local.sh
这个时候可以访问 127.0.0.1:9003了;
cluster 和engine在同一个项目里。
cd streamingpro cd streamingpro-cluster/ export MLSQL_CLUSTER_VERSION=${MLSQL_CLUSTER_VERSION:-1.2.0-SNAPSHOT} mvn -DskipTests -Pcluster-shade -am -pl streamingpro-cluster clean package
编译完成后,在target 目录会有如下文件:
export VERSION=1.2.0-SNAPSHOT target/streamingpro-cluster-${VERSION}.jar
创建MySQL数据库,根据 src/main/resources/db.sql
创建对应的库表。数据库名字为mslql-cluster.
现在,创建一个发行版:
export VERSION=1.2.0-SNAPSHOT mkdir -p /tmp/mlsql-cluster/ cp target/streamingpro-cluster-${VERSION}.jar /tmp/mlsql-cluster/ cp dev/mlsql-cluster-docker/start.sh /tmp/mlsql-cluster ##修改application.docker.yml 数据库地址和密码 cp dev/mlsql-cluster-docker/application.docker.yml /tmp/mlsql-cluster cd /tmp/mlsql-cluster export MLSQL_CLUSTER_CONFIG_FILE=application.docker.yml export MLSQL_CLUSTER_JAR=streamingpro-cluster-${VERSION}.jar ./start.sh
这个时候查看 127.0.0.1:8080是否可以访问。
git clone git@github.com:allwefantasy/mlsql-api-console.git
mvn clean package -Pshade
这个时候在target目录有个文件:
export VERSION=1.2.0-SNAPSHOT target/mlsql-api-console-${VERSION}.jar
创建MySQL数据库,根据 src/main/resources/db.sql
创建对应的库表。数据库名字为mslql-console.
创建发型包
export VERSION=1.2.0-SNAPSHOT cd mlsql-api-console mkdir -p /tmp/mlsql-console/ cp target/mlsql-api-console-${VERSION}.jar /tmp/mlsql-console/ cp dev/docker/start.sh /tmp/mlsql-console/ ## 修改配置文件数据库地址,账号和密码 cp dev/docker/application.docker.yml /tmp/mlsql-console/ cd /tmp/mlsql-console/ export MLSQL_CONSOLE_JAR="mlsql-api-console-${VERSION}.jar" export MLSQL_CLUSTER_URL=http://127.0.0.1:8080 export MY_URL=http://127.0.0.1:9002 ## mac下请换目录 export USER_HOME=/home/users ## 是否开启权限控制 export ENABLE_AUTH_CENTER=false export MLSQL_CONSOLE_CONFIG_FILE=application.docker.yml ./start.sh
现在可以访问 127.0.0.1:9002了。
git clone git@github.com:allwefantasy/mlsql-web-console.git
npm install npm run build
rm -rf ${MLSQL_CONSOLE_HOME}/src/main/resources/streamingpro/assets/* cp -r build/* ${MLSQL_CONSOLE_HOME}/src/main/resources/streamingpro/assets/*