Skip to content

Commit

Permalink
add log agg dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Kumpf committed Nov 25, 2017
1 parent be93a55 commit c2b8139
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/common/templates/post-install.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ su - hdfs -c "${HADOOP_HOME}/bin/hdfs dfs -chmod -R 777 /tmp/hadoop-yarn/staging
echo "Creating rm state store"
su - hdfs -c "${HADOOP_HOME}/bin/hdfs dfs -mkdir -p /rmstore"
su - hdfs -c "${HADOOP_HOME}/bin/hdfs dfs -chown yarn:hadoop /rmstore"

echo "Creating log aggregation directory"
su - hdfs -c "${HADOOP_HOME}/bin/hdfs dfs -mkdir -p /tmp/logs"
su - hdfs -c "${HADOOP_HOME}/bin/hdfs dfs -chown yarn:hadoop /tmp/logs"

0 comments on commit c2b8139

Please sign in to comment.