Skip to content

Instantly share code, notes, and snippets.

@emrahyildiz
emrahyildiz / clean-up-boot-partition-ubuntu.md
Created July 17, 2019 08:43 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
import subprocess
from snakebite.client import HAClient
from snakebite.namenode import Namenode
MODULE="HDFS"
class HdfsClient(Client):
def __init__(self):
namenodes = [Namenode(nn.decode(),9000) for nn in [hadoop-1,hadoop2,hadoop-n]]
#!/bin/bash
#Merge small files in Hadoop
PARTDIR=/path/to/part
mkdir -p $PARTDIR
HADOOPPATH=/path/to/hadoop
DESIREDPATH=/path/to/hdfs/formerge # HDFS path for merge
SAFEDIR=/path/to/hdfs/safe # HDFS path for big files