Skip to content

Instantly share code, notes, and snippets.

View RGMishan's full-sized avatar
🎯
Automation Yeah!!!!!

Mishan Regmi RGMishan

🎯
Automation Yeah!!!!!
View GitHub Profile
@RGMishan
RGMishan / hadoopall.yml
Created March 20, 2021 07:09
All Hadoop Node Software Installation File
- hosts: all
tasks:
- name: "Sending Hadoop from Controller node to Hosts"
copy:
src: "/root/hadoop-1.2.1-1.x86_64.rpm"
dest: "/root"
- name: "Sending JDK to Host Systems"
copy:
dest: "/root"
@RGMishan
RGMishan / hadoopmaster.yml
Created March 20, 2021 07:15
Ansible Playbook to Configure Hadoop Name Node
- hosts: 192.168.56.104
vars_files:
- master_vars.yml
tasks:
- name: "Creating a directory"
file:
state: directory
path: "{{ directory_path }}"
- name: "Copying hdfs-site.xml"
- hosts: 192.168.56.105
vars_files:
- slave_vars.yml
tasks:
- name: "Creating a directory"
file:
state: directory
path: "{{ directory_path }}"
- name: "Copying hdfs-site.xml"
- hosts: 192.168.56.104
tasks:
- name: "Installing HTTPD Package"
package:
name: "httpd"
state: present
- name: "Creating an index file"
copy:
content: "<b>This is Static Regular HTTPD Automation</b>"
- hosts: loadbalancer
vars_files:
- haproxyVars.yml
tasks:
- name: "Installing Package of HAProxy"
package:
name: "haproxy"
state: present
- name: "Copying Template of Config file from the Controller System"
lbport: 8080
webserverport: 80
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# https://www.haproxy.org/download/1.8/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
<pre>
<?php
print `/usr/sbin/ifconfig`;
?>
</pre>
# importing libraries
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
import joblib as jb
data = pd.read_csv("Salary_Data.csv")
#data_head and data information
data.head()