Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Moving tar.gz files /usr/hdp to a different drive

Highlighted

Moving tar.gz files /usr/hdp to a different drive

New Contributor

In one of our data nodes the root partition is almost 98% full and I see that there is nothing much I can clean up.

I saw below tar.gz files in the root partition:

rw-r--r-- 1 root root 196M /usr/hdp/2.5.0.0-1245/hadoop/mapreduce.tar.gz

r--r--r-- 1 root root 378M /usr/hdp/2.5.0.0-1245/oozie/oozie-sharelib.tar.gz

-rw-r--r-- 1 root root 117M /usr/hdp/2.5.0.0-1245/pig/pig.tar.gz

-rwxr-xr-x 1 root root 121M /usr/hdp/share/hst/smartsense-activity-explorer-1.3.0.0-22.tar.gz

Will there be any impact if I move these tar.gz files to a different lodcation so that we can have more space in the root partition?

1 REPLY 1

Re: Moving tar.gz files /usr/hdp to a different drive

Super Collaborator

Hi @Akash S,

These are the binary/library archives which were used while installing the components.

these components are linked to the current directory, you can move this to different directory as long as you dont touch the remaining jars/binaries.

However, the safest thing is to move them to a different directory and create a symlink to the same location with same permissions.

mv <file> <<archieve Area>>
ln -s <<archieve Area>>/<file> <orig_fielname>

and make sure to run the hdp-select before and after the change(compare both) to ensure that nothing broken because of this

Hope this helps !!

Don't have an account?
Coming from Hortonworks? Activate your account here