c i w
c i [
c i <
apk add tzdata
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/Shanghai" > /etc/timezone
date -R # Verify that it's working properly
- Get the nebula cluster's metaD ports
$ docker port nebula-docker-compose_metad0_1 | grep ^9559
9559/tcp -> 0.0.0.0:49189
$ docker port nebula-docker-compose_metad1_1 | grep ^9559
9559/tcp -> 0.0.0.0:49190
$ docker port nebula-docker-compose_metad2_1 | grep ^9559
9559/tcp -> 0.0.0.0:49188
use
-k
tear down in each testsuite
# install dependencies like gflag,lz4, etc... referring to ref:2.
# e.g. ubuntu
sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
git clone git@github.com:facebook/rocksdb.git
git checkout 6.15.fb # as in nebula 2.6.0 , check on /opt/vesoft/third-party/3.0/include/rocksdb/version.h
cd rocksdb
cmake -DWITH_LZ4=ON -DWITH_ZLIB=ON -DWITH_SNAPPY=ON
make ldb -j 64 # specify your thread number here
How I built this nebula-algorithm-2.6.1-patched-domain-name.jar ./*
:
- Checkout vesoft-inc/nebula-java#437 and build nebula-java client:
mvn -B package -Dmaven.test.skip
- Download nebula-algo 2.6.1 jar package
cd temp_algo;jar -xvf nebula-algorithm-2.6.1.jar
cd ../temp_client;jar -xvf client-2.6.1.jar
cd ../temp_algo;cp -r ../temp_client/com/vesoft/nebula/* com/vesoft/nebula;rm nebula-algorithm-2.6.1.jar
jar -cfM0 nebula-algorithm-2.6.1-patched-domain-name.jar ./*
Here is an example that I performed a Louvain algorithm, it's basically what I had done in this post: https://siwei.io/nebula-livejournal/
Nebula Console:
CREATE SPACE louvain (partition_num=15, replica_factor=1, vid_type=FIXED_STRING(256)) comment="louvain test";
create tag user() comment = 'user';
create edge relation(weight int) COMMENT = 'user relation';
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: ServerCat [71437]
Path: /Applications/ServerCat.app/Contents/MacOS/ServerCat
Identifier: tech.baye.servercat
Version: 1.0.1 (276)
App Item ID: 1501532023
Compile your nebula-java client with modifications
cd nebula-java
mvn -B package -Dmaven.test.skip -Dmaven.javadoc.skip=true
ls client/target/client-*-SNAPSHOT.jar
Compile your nebula-spark-connector.
OlderNewer