Skip to content

Instantly share code, notes, and snippets.

@mognum
mognum / Spark high availability.md
Created April 30, 2019 03:36 — forked from aseigneurin/Spark high availability.md
Spark - High availability

Spark - High availability

Components in play

As a reminder, here are the components in play to run an application:

  • The cluster:
    • Spark Master: coordinates the resources
    • Spark Workers: offer resources to run the applications
  • The application:
@mognum
mognum / install-vim-from-sources-ubuntu.sh
Last active November 26, 2019 07:05 — forked from shaypal5/install-vim-from-sources-ubuntu.sh
Installing Vim 8 on Ubuntu 16.04 LTS
# 1. install dependencies
sudo apt install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev git
# 2. remove vim
sudo apt remove vim vim-runtime gvim
sudo apt remove vim-tiny vim-common vim-gui-common vim-nox
@mognum
mognum / proc_net_tcp_decode
Created March 13, 2020 03:36 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
@mognum
mognum / build_mysql.sh
Created May 18, 2020 09:48 — forked from Jamp/build_mysql.sh
Build and install MySQL 5.1 from source on Ubuntu 16.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
<title>Kubernetes 调度优化--重平衡策略方案整理</title>
@mognum
mognum / python3.9 on ubuntu 18.04
Created November 18, 2024 02:24 — forked from basaks/python3.9 on ubuntu 18.04
Install python3.9 on ubuntu 18.04
## Install Python3.9 interpreter on ubuntu 18.04
[From here](http://devmartin.com/blog/2016/04/creating-a-virtual-environment-with-python3.4-on-ubuntu-16.04-xenial-xerus/), we can pretty much follow the exact same procedure.
Only this I needed to on top of that blog was the `libffi-dev` system dependency.
On a terminal just do the following steps:
Install dependencies: