[
https://issues.apache.org/jira/browse/BIGTOP-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Shaposhnik updated BIGTOP-852:
------------------------------------
Attachment: untarHdfs.groovy
Here's what I have in mind (attaching rough prototype). This script lets you
untar a tar archive directly into HDFS and seems to be pretty efficient. Just
like the regular tar command it preserves perms/ownership which seems exactly
like what we need.
I'm think that I can either turn it into a java program and drop into the hdfs
project during the Hadoop build or we can start growing a collection of Groovy
scripts in Bigtop.
Now, if we go the Groovy route, we'd have to also import the Groovy jar and
decide where to keep it and all bigtop scripts. I propose /usr/lib/bigtop/lib
for jars (including Grovy) and /usr/lib/bigtop/bin for scripts.
Anyway let me guys know what'd you think.
> Improve HDFS helper script
> --------------------------
>
> Key: BIGTOP-852
> URL: https://issues.apache.org/jira/browse/BIGTOP-852
> Project: Bigtop
> Issue Type: Sub-task
> Components: Deployment
> Affects Versions: 0.6.0
> Reporter: Mark Grover
> Assignee: Mark Grover
> Fix For: 0.6.0
>
> Attachments: untarHdfs.groovy
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira