Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

creating UNIX domain socket with SOCK_STREAM

avatar
Rising Star

Hi All,

I was running command hadoop fs -get /user/centos/dist/a.txt

I got error during command java.net.SocketException: error creating UNIX domain socket with SOCK_STREAM: Too many open files

Open file limit is default limit. I didn't change.

Can some one suggest should i have to increase open file limit in sysctl and limit.conf?

Thanks

vinay

1 ACCEPTED SOLUTION

avatar
Contributor

Hi @Vinay K

It depends, you might have some underlying issue, first check who is holding up too many open files, by using the os command "lsof"

If everything seems OK but and you just have this issue due to the workload, increase the number of open files in limit.conf, but beware that if you are using Ambari and using of of the hadoop users, its limit will be overridden by the value from the Ambari configuration.

View solution in original post

2 REPLIES 2

avatar
Contributor

Hi @Vinay K

It depends, you might have some underlying issue, first check who is holding up too many open files, by using the os command "lsof"

If everything seems OK but and you just have this issue due to the workload, increase the number of open files in limit.conf, but beware that if you are using Ambari and using of of the hadoop users, its limit will be overridden by the value from the Ambari configuration.

avatar
Rising Star

@tsokorai

I have increased the hard and soft value in limits.conf.

Thanks