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.

OSError: [Errno 17] File exists

Highlighted

OSError: [Errno 17] File exists

Explorer

File "/usr/bin/hdp-select", line 391, in <module> setPackages(pkgs, args[2], options.rpm_mode)

File "/usr/bin/hdp-select", line 290, in setPackages os.symlink(target + "/" + dir, linkname)

OSError: [Errno 17] File exists

I'm keeping getting this error for one node on the Ambari installation wizard. Other nodes are fine and free of this error.

This is the node where Ambari-Server also operates. Maybe shouldn't select a ambari-server node as client?

I have totally no clue what's wrong with my cluster design and any help is greatly appreaciated!

7 REPLIES 7
Highlighted

Re: OSError: [Errno 17] File exists

@Yu Song

When are you getting this error ?

Is it while starting the ambari agent process ?

Highlighted

Re: OSError: [Errno 17] File exists

Explorer

@Sagar Shimpi

No, I'm getting this during the HDP service installation via Ambari wizard.

This error happens at any to-be-installed service on a certain node.

Using public repo. on Ubuntu 14.04 - 64bit.

Keep getting this error.

Highlighted

Re: OSError: [Errno 17] File exists

Expert Contributor

@Yu Song Is the host on which your are installing had /usr/hdp directory already present (before starting installation). What is the output of ls -l /usr/hdp/current

Highlighted

Re: OSError: [Errno 17] File exists

Rising Star
@Yu Song

Can you list down the content of the /usr/hdp directory. If you find any other folder other than current and hdp version (like 2.2.9.xxxx) then remove or move that to /tmp and proceed with installation.

Re: OSError: [Errno 17] File exists

@Yu Song: you can check which service is giving this error.

after that you need to remove the sym link of that service from /usr/hdp/current/ directory and restart the installation of that service.

Highlighted

Re: OSError: [Errno 17] File exists

Expert Contributor
@Yu Song

If it is a fresh installation, remove the /usr/hdp folder for the node and then trigger the installation.

But better is run the clean up script and trigger the installation.

Highlighted

Re: OSError: [Errno 17] File exists

Just to add, if any of the component is installed then package of that component will not reinstall, so in case any file of that component is removed from /usr/hdp directory, then start of the service for that particular component will fail.

Correct me if I'm wrong.

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