$ uname -r
This file contains 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
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]] |
This file contains 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 | |
#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 |