This file contains hidden or 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
curl https://d3g5vo6xdbdb9a.cloudfront.net/yum/opendistroforelasticsearch-artifacts.repo -o /etc/yum.repos.d/opendistroforelasticsearch-artifacts.repo | |
# Java 11 | |
sudo yum install java-11-openjdk-devel -y | |
yum install wget unzip -y | |
yum list opendistroforelasticsearch --showduplicates |
This file contains hidden or 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
from pyspark import SparkContext | |
from pyspark.sql import SQLContext | |
from pyspark.sql.functions import * | |
from pyspark import SparkFiles, SparkConf | |
from pyspark.ml import Pipeline | |
from pyspark.ml.classification import RandomForestClassifier | |
from pyspark.ml.feature import StringIndexer, OneHotEncoder, VectorAssembler | |
from pyspark.mllib.evaluation import MulticlassMetrics | |
from datetime import datetime | |
import pandas as pd |
This file contains hidden or 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
#!/bin/bash | |
cd ~ | |
#update package | |
yum update -y | |
# Install java, wget | |
yum install -y java-1.8.0-openjdk wget | |
cp /etc/profile /etc/profile_backup | |
echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile |
This file contains hidden or 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
#!/bin/bash | |
####################################################### | |
# Tocdo.net Linux Server Benchmarks v1.5 | |
# Run speed test: | |
# curl -Lso- tocdo.net | bash | |
####################################################### | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' |
This file contains hidden or 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
#!/bin/bash | |
# This script install sonarqube in your RHEL/Centos7 System. | |
function install_postgres { | |
# Install PostgreSQL repository | |
rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm | |
#Install PostgreSQL database server | |
yum -y install postgresql96-server postgresql96-contrib | |
# Initialize the database | |
/usr/pgsql-9.6/bin/postgresql96-setup initdb |