Fix rogue hdfs cmd Missed a replacement of an old hdfs command, which caused permission to not be applied properly after all the directories get created.
Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/085c2f85 Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/085c2f85 Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/085c2f85 Branch: refs/heads/SPOT-181_ODM Commit: 085c2f855cbfb6ff21d145990515a7c795bc9e94 Parents: 1bbb808 Author: Tadd Wood <t...@arcadiadata.com> Authored: Wed Feb 14 12:44:46 2018 -0800 Committer: Tadd Wood <t...@arcadiadata.com> Committed: Wed Feb 14 12:44:46 2018 -0800 ---------------------------------------------------------------------- spot-setup/odm/odm_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/085c2f85/spot-setup/odm/odm_setup.sh ---------------------------------------------------------------------- diff --git a/spot-setup/odm/odm_setup.sh b/spot-setup/odm/odm_setup.sh index 8de7f7e..d3165a2 100755 --- a/spot-setup/odm/odm_setup.sh +++ b/spot-setup/odm/odm_setup.sh @@ -137,7 +137,7 @@ do # Modifying permission on HDFS folders to allow Impala to read/write log "modifying permissions recursively on ${HUSER}/$d" - hdfs dfs -chmod -R 775 ${HUSER}/$d + ${hdfs_cmd} dfs -chmod -R 775 ${HUSER}/$d ${hdfs_cmd} dfs -setfacl -R -m user:impala:rwx ${HUSER}/$d ${hdfs_cmd} dfs -setfacl -R -m user:${USER}:rwx ${HUSER}/$d done