Skip to content

Instantly share code, notes, and snippets.

View djsecilla's full-sized avatar

Daniel Jurado Secilla djsecilla

  • London
View GitHub Profile
@djsecilla
djsecilla / gist:c5dfc6f3841af1fcfeed289447f1f74d
Last active June 23, 2016 10:33
Local dev Hive installation + initialization
#Download the right version of binary Hive installer and untar it on the right location
tar xzvf apache-hive-2.0.1-bin.tar.gz
#Ensure $HADOOP_HOME is set and pointing to the right location
echo $HADOOP_HOME
#Create the needed HDFS directories with the right permissions
$HADOOP_HOME/bin/hadoop fs -mkdir /tmp
$HADOOP_HOME/bin/hadoop fs -mkdir /user/
$HADOOP_HOME/bin/hadoop fs -mkdir /user/hive
@djsecilla
djsecilla / tmux config
Last active June 23, 2016 10:35
tmux config
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g base-index 1
# Set colors
set-option -g default-terminal "screen-256color"
#Turn on vi mode
@djsecilla
djsecilla / ntp linux
Last active June 23, 2016 10:35
quick ntp linux server
sudo ntpdate 0.pool.ntp.org