Created
November 20, 2014 05:04
-
-
Save mrflip/94b460f1db531de7e165 to your computer and use it in GitHub Desktop.
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
sudo -u hdfs hadoop fs -mkdir -p \ | |
/tmp /tmp/mapred/system \ | |
/user/root /user/chimpy \ | |
$HADOOP_LOG_DIR/yarn-apps \ | |
$HADOOP_BULK_DIR/yarn-staging/history/done_intermediate \ | |
/var/lib/hadoop-hdfs/cache/mapred/mapred/staging \ | |
/user/hive/warehouse | |
sudo -u hdfs hadoop fs -chmod -R 1777 \ | |
/tmp /tmp/mapred/system \ | |
/user/hive/warehouse \ | |
$HADOOP_BULK_DIR/yarn-staging/history/done_intermediate \ | |
/var/lib/hadoop-hdfs/cache/mapred/mapred/staging | |
sudo -u hdfs hadoop fs -chmod 1777 $HADOOP_BULK_DIR/yarn-staging # not -R | |
sudo -u hdfs hadoop fs -chown root /user/root | |
sudo -u hdfs hadoop fs -chown chimpy /user/chimpy | |
sudo -u hdfs hadoop fs -chown yarn:mapred $HADOOP_LOG_DIR/yarn-apps | |
sudo -u hdfs hadoop fs -chown -R mapred:hadoop \ | |
$HADOOP_BULK_DIR/yarn-staging \ | |
/var/lib/hadoop-hdfs/cache/mapred \ | |
/tmp/mapred/system | |
sudo -u hdfs hadoop fs -ls -R / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment