#1 Installing the Git
Per the Linux version use the command to install the Git, below are a few samples:
- Debian/Ubuntu: apt-get install git
- RHEL/Fedora: yum install git
#2 Building Suro Server
Create a new directory to clone source code
mkdir netflix
Before cloning make sure HTTPs verification is set to false or else necessary certifcates are in place, I choose a simple strategy, i.e. configured ssl verification to false.
git config --global http.sslVerify false
Clone the source from the git root master branch:
git clone https://github.com/Netflix/suro.git
With this you will have all code available in ./suro folder.
- Debian/Ubuntu: apt-get install git
- RHEL/Fedora: yum install git
cd suro
Next step is to build the suro server. I am skipping test cases as well.
./gradlew build -x test
#3 Starting Suro server
./gradlew installAppCopy all server libraries at a seprate location
cp -r ~/netflix/suro/suro-server/build/install/suro-server/lib/ ~/netflix/installs/suroserver
Finally start the server using below command:
java -cp "./lib/*" com.netflix.suro.SuroServer -m conf/routingmap.json -s conf/sink.json
#4 Checking the system health
To check whether server has started successfully:http://HOSTNAME:7103/healthcheckThis service should return 200 OK with SuroServer-OK message.
Challenges Faced
#PEER NOT AUTHENTICATED
> Could not resolve com.leansoft:bigqueue:0.7.0. Required by: com.netflix.suro:suro-kafka:0.2.2-thrift-0.7.1 com.netflix.suro:suro-kafka:0.2.2-thrift-0.7.1 > com.netflix.suro:suro-core:0.2.2-thrift-0.7.1 > Could not GET 'https://raw.github.com/bulldog2011/bulldog-repo/master/repo/releases/com/leansoft/bigqueue/0.7.0/bigqueue-0.7.0.pom'. > peer not authenticated
Above was the error which I faced. On further analysis found the issue was because of JAVA_HOME was not set.
# RUNNING SURO ON WINDOWS
Refer https://groups.google.com/forum/#!topic/suro-users/PZY5LJdOu34 for more details
Thanks Abhishek ! This worked like a charm.
ReplyDelete-i Argument is missing in start command
ReplyDelete