Git Product home page Git Product logo

filesrepo's Introduction

Files Repo

Bigdata Administer App

Introduction

Bigdata Administer App is a python based application used to view and manage bigdata services such as 'Hadoop', 'HBase', 'Elasticsearch' and many more. It is also used to monitor cpu-usage, memory-usage, bandwidth of a particular service as well as your linux system.

Features

We have many features for both Bigdata services and linux server.

  • Bigdata Services

* Restart all services
* Stop all services
* Restart/Stop specific service such as Namenode, Datanode, Regionserver etc.
* Monitor their usages (cpu, memory, i/o...)
* Changing configuration of services
* Copy from/Copy to HDFS
  • Linux system

* Make new directories
* Archive/Extract-Archive
* Copy multiple files
* Move multiple files
* Rename files
* Delete files/folders
* Head/Tail files

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install and how to install them

* Flask
* requests
* json2xml
* python-dotenv

You can install the above libraries using pip3

pip3 install -r requirements.txt

Deployment

This section discuss about how to deploy this application on live system with apache2 and mod_wsgi in ubuntu server.

  • Step 1: Installing apache2 and mod_wsgi in server
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install apache2 libapache2-mod-wsgi python3-pip
  • Step 2: Clone bigdata service project
cd /var/www/
git clone git@******:*******/******.git
  • Step 3: Setting up Apache2 Virtual Host
Go to apache2 directory(cd /etc/apache2/sites-available)
Create a file named as mysite.conf inside this directory
sudo nano mysite.conf

Copy and paste these things below and configure as your want.

Listen 11605
<VirtualHost 10.10.10.110:11605>
    ErrorLog ${APACHE_LOG_DIR}/bigdata_services_error.log
    CustomLog ${APACHE_LOG_DIR}/bigdata_services_access.log combined    
    WSGIDaemonProcess bigdata_services python-path=/var/www/bigdata_services python-home=/usr/bin/python3.5
    WSGIScriptAlias / /var/www/bigdata_services/Main/route_apps.wsgi

    <Directory /var/www/bigdata_services>
        WSGIProcessGroup bigdata_services
        WSGIApplicationGroup %{GLOBAL}
        Require all granted
    </Directory>
</VirtualHost>
  • Step 4: Configure .env file (you can take help from .env-example)
  • Step 5: Enable mysite.conf in apache2
sudo a2ensite mysite.conf
sudo service apache2 restart
  • Step 6: Create a db and table to store master and slave status of zookeeper and spark in postgres. [example: db_name=bigdata, table_name=administer_master_status]

  • Step 7: Run the following python file in crontab, make it run at every 2 minutes so that it can update the table with new values if changed.

/var/www/bigdata_services/Master_State/InsertServiceMasterStatus.py 
[Note: Copy the file in different location and run it on any one hadoop nodes]
/var/www/bigdata_services/Master_State/InsertZkAndSparkMasterStatus.py
[Note: Copy the file in different location and run it on every hadoop nodes]
  • Step 8: Finally

Goto browser and check if 10.10.10.110:11605 site is working.

Built With

  • Flask - The web framework used

License

This project is licensed under *******

filesrepo's People

Contributors

bbkchdhry 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.