Code Monkey home page Code Monkey logo

telco-anomaly-detection-spark's Introduction

telco-anomaly-detection-spark

Anomaly Detection in Telcos with Spark

Specifications Available in the Wiki

Run on cluster

  1. ssh to the cluster machine.
  2. If java7 or lower version is installed on cluster, install java8. Tutorial(use commands with sudo) => http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/.
  3. If you don't have maven installed, install it. Tutorial => http://preilly.me/2013/05/10/how-to-install-maven-on-centos/.
  4. Clone the git repo with project to /home/vagrant/telco-anomaly-detection-spark.
  5. Create streams, topics and directories on the cluster machine:
sudo -u mapr -s
# create streams
maprcli stream delete -path /telco
maprcli stream create -path /telco 
maprcli stream edit -path /telco -produceperm u:1000 -consumeperm u:1000 -topicperm u:1000
maprcli stream topic create -path /telco -topic fail_tower
maprcli stream topic create -path /telco -topic init
maprcli stream topic create -path /telco -topic move
maprcli stream topic create -path /telco -topic event
for i in `seq 1 20`; do
    maprcli stream topic create -path /telco -topic tower$i
done

# check if topic creation was successful
maprcli stream topic list  -path /telco 

# create required directories
hadoop fs -mkdir /apps/telco
hadoop fs -chmod 777 /apps/telco
hadoop fs -mkdir /apps/telco/db
hadoop fs -chmod 777 /apps/telco/db

exit
  1. Copy configuration and add permissions for the run.sh:
# go to the folder telco-anomaly-detection-spark
cd /home/vagrant/telco-anomaly-detection-spark
chmod 777 run.sh
cp common/src/main/resources/config.conf /tmp/
  1. Build project:
# go to the folder telco-anomaly-detection-spark
cd /home/vagrant/telco-anomaly-detection-spark
mvn package
  1. Run the start script:
sudo -u mapr -s
cd /home/vagrant/telco-anomaly-detection-spark
./run.sh
  1. Now you can open UI in browser:

    • telco ui http://[cluster-node-ip]:9090/
    • spark ui http://[cluster-node-ip]:4040/jobs/#active

You can also manually start the Web UI on another port using the following command:

java -Ddemo.http.port=9999 -jar telco-ui/target/telcoui.jar 

telco-anomaly-detection-spark's People

Contributors

rkolesnik avatar tdunning avatar tgrall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.