Setting Directories and Permissions
- Create directories and configure ownership and permissions as described below. Run the following commands: - mkdir -p $FALCON_LOG_DIR;chown -R $FALCON_USER:$HADOOP_GROUP $FALCON_LOG_DIR;chmod -R 755 $FALCON_LOG_DIR; mkdir -p $FALCON_PID_DIR;chown -R $FALCON_USER:$HADOOP_GROUP $FALCON_PID_DIR;chmod -R 755 $FALCON_PID_DIR; mkdir -p $FALCON_DATA_DIR;chown -R $FALCON_USER:$HADOOP_GROUP $FALCON_DATA_DIR;chmod -R 755 $FALCON_DATA_DIR; mkdir -p <graph.storage.directory>;chown -R $FALCON_USER:$HADOOP_GROUP <graph.storage.directory>;chmod -R 755 <graph.storage.directory>; mkdir -p <config.store.uri>;chown -R $FALCON_USER:$HADOOP_GROUP <config.store.uri>;chmod -R 755 <config.store.uri>; - where: - $FALCON_LOG_DIR is the directory to store the Falcon logs. For example, - /var/log/falcon.- $FALCON_PID_DIR is the directory to store the Falcon process ID. For example, - /var/run/falcon.- $FALCON_DATA_DIR is the directory to store the falcon active mq data. For example, - /hadoop/falcon/embeddedmq/data.- <graph.storage.directory> is the graph storage directory defined in Falcon startup.properties key "*.falcon.graph.storage.directory". For example, - /usr/hdp/current/falcon-server/data/graphdb.- <config.store.uri> is the location to store user entity configurations defined in Falcon startup.properties key "*.config.store.uri". For example, - /usr/hdp/current/falcon-server/data/falcon-store/.- $FALCON_USER is the user owning the Falcon service. For example, falcon. - $HADOOP_GROUP is a common groupshared by services. For example, hadoop. 
- For the Hive DR feature, the UI expects the template files to be copied to - /apps/data-mirroringpath. Create the following directories in HDFS:- su - $FALCON_USER hdfs dfs -mkdir /apps/data-mirroring hdfs dfs -mkdir /apps/data-mirroring/workflows/ hdfs dfs -copyFromLocal /usr/hdp/current/falcon-server/data-mirroring /apps hdfs dfs -chmod -R 770 /apps/data-mirroring hdfs dfs -chown -R falcon:users /apps/data-mirroring - where: - $FALCON_USER is the user owning the Falcon service. For example, falcon. 

