Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6.0
-
None
Description
There are a few things that can be improved regarding the HDFS helper script introduced by BIGTOP-547. Some of these issues have been discussed in BIGTOP-637.
1. The script seems to create user directories for users "root" and "jenkins" but not the current user running the script. I think it will be a good idea to add in the script the commands to create the /user/$USER directory in HDFS. Of course, we should be careful in case the user running the command is root or jenkins, in that case a simple mkdir command would throw error given that those directories already exist.
2. The script uses sudo which requires login shell. However, login shells are not available for certain use cases like init scripts. Consequently, we should consider using su instead.
3. Look into how the helper script can be made faster
Folks, please feel free to add/edit if there is something I missed.
Attachments
Attachments
Issue Links
- is related to
-
BIGTOP-952 init-hdfs.sh is dog slow. Let's replace it with a direct HDFS API calls and better layout management
-
- Resolved
-
-
BIGTOP-547 create an HDFS setup helper script
-
- Closed
-