c i w
c i [
c i <
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# http://papers.ch/speeding-up-your-mac-osx-terminal-input/ | |
#echo "Disable press-and-hold for keys in favor of key repeat" | |
#defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
echo "Set a blazingly fast keyboard repeat rate" | |
defaults write NSGlobalDomain KeyRepeat -int 2 |
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 [email protected]: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';
OlderNewer