Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Error when distributing to xxx.xxx.xxx.xxx: Untar failed with return code 2.

avatar
Contributor

When I'm installing a CDH cluster using Cloudera Manager, I got the following errors:

 

CDH 5.2.1-1.cdh5.2.1.p0.12 ui.nErrors

Error when distributing to xxxthis is hostname) : Untar failed with return code 2.
Error when distributing to xxx: Untar failed with return code 2.
Error when distributing to xxx : Untar failed with return code 2.
Error when distributing to xxx: Untar failed with return code 2.
Error when distributing to xxx : Untar failed with return code 2.
Error when distributing to xxx : Untar failed with return code 2.
Error when distributing to xxx : Untar failed with return code 2.
Error when distributing to xxx: Untar failed with return code 2.
Error when distributing to xxx: Untar failed with return code 2.

 

The log of cloudera manager agent is as follows:

 

[08/Dec/2014 21:47:01 +0000] 31154 Thread-13 downloader INFO Starting download of: http://hostname:7180/cmf/parcel/download/CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
[08/Dec/2014 21:47:01 +0000] 31154 Thread-13 downloader INFO Completed download of http://hostname:7180/cmf/parcel/download/CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel code=200 state=downloaded
[08/Dec/2014 21:47:01 +0000] 31154 Thread-13 parcel_cache INFO Unpacking /opt/cloudera/parcel-cache/CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel into /opt/cloudera/parcels
[08/Dec/2014 21:47:01 +0000] 31154 Thread-13 throttling_logger ERROR Error while unpacking /opt/cloudera/parcel-cache/CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/src/cmf/parcel_cache.py", line 179, in cb
unpack_parcel(op.path, unpack_dir, self.path)
File "/usr/lib64/cmf/agent/src/cmf/parcel_cache.py", line 200, in unpack_parcel
raise Exception("Untar failed with return code %d" % (return_code, ))
Exception: Untar failed with return code 2

 

Does anyone happens to know why?

1 ACCEPTED SOLUTION

avatar
Can you please verify that the partition containing /opt/cloudera/parcels has enough free space to host the unpacked parcel? Typically if you have more than 10GB free it should be fine.

If this doesn't explain it, you could upload the agent logs from /var/log/cloudera-scm-agent/*log to pastebin and paste the URL here.
Regards,
Gautam Gopalakrishnan

View solution in original post

4 REPLIES 4

avatar
Can you please verify that the partition containing /opt/cloudera/parcels has enough free space to host the unpacked parcel? Typically if you have more than 10GB free it should be fine.

If this doesn't explain it, you could upload the agent logs from /var/log/cloudera-scm-agent/*log to pastebin and paste the URL here.
Regards,
Gautam Gopalakrishnan

avatar
Contributor

Thanks, this solved my problem, I didn't notice that my disk is too small, 

avatar
New Contributor

Hi,

 

I am having the same isssue on amazon cloude....how do i resize the directory?

 

V

avatar
You can try following the instructions in this page:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html

Regards,
Gautam Gopalakrishnan