aboutsummaryrefslogtreecommitdiffstats
path: root/cdap3vm/config/services-setup-templates/job-history-setup-02-as-hdfs.sh
blob: 5671c353d189b21f48393e0d074bf3345df29392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

hdfs dfs -mkdir -p /mr-history/tmp 
hdfs dfs -chmod -R 1777 /mr-history/tmp 

hdfs dfs -mkdir -p /mr-history/done 
hdfs dfs -chmod -R 1777 /mr-history/done
hdfs dfs -chown -R __MAPRED_USER__:__HDFS_USER__ /mr-history

hdfs dfs -mkdir -p /app-logs
hdfs dfs -chmod -R 1777 /app-logs

hdfs dfs -chown __YARN_USER__:__HDFS_USER__  /app-logs