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.

Accumulo TServer error: connection refused to slnxhadoop04.in .

Accumulo TServer error: connection refused to slnxhadoop04.in .

New Contributor

accumulo TServer process giving error:connection refused to slnxhadoop04.in:9997.

Accumulo-tserver.err log

org.apache.thrift.transport.TTransportException: java.io.IOException: Too many open files
at org.apache.accumulo.server.rpc.TNonblockingServerSocket.acceptImpl(TNonblockingServerSocket.java:118)
at org.apache.accumulo.server.rpc.TNonblockingServerSocket.acceptImpl(TNonblockingServerSocket.java:44)
at org.apache.thrift.transport.TServerTransport.accept(TServerTransport.java:31)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.handleAccept(CustomNonBlockingServer.java:250)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.select(CustomNonBlockingServer.java:225)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.run(CustomNonBlockingServer.java:184)
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
at org.apache.accumulo.server.rpc.TNonblockingServerSocket.acceptImpl(TNonblockingServerSocket.java:109)
... 5 more
org.apache.thrift.transport.TTransportException: java.io.IOException: Too many open files
at org.apache.accumulo.server.rpc.TNonblockingServerSocket.acceptImpl(TNonblockingServerSocket.java:118)
at org.apache.accumulo.server.rpc.TNonblockingServerSocket.acceptImpl(TNonblockingServerSocket.java:44)
at org.apache.thrift.transport.TServerTransport.accept(TServerTransport.java:31)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.handleAccept(CustomNonBlockingServer.java:250)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.select(CustomNonBlockingServer.java:225)
at org.apache.accumulo.server.rpc.CustomNonBlockingServer$SelectAcceptThread.run(CustomNonBlockingServer.java:184)
Caused by: java.io.IOException: Too many open files
3 REPLIES 3

Re: Accumulo TServer error: connection refused to slnxhadoop04.in .

Rising Star

For Accumulo it is recommended to set the max number of open files (ulimit -n) to at least 32768.

Re: Accumulo TServer error: connection refused to slnxhadoop04.in .

New Contributor

@billie

Thanks for the reply. I have set open files limit to 32768 and now accumulo Tserver is running but service check of accumulo is getting failed with error:

 ERROR: org.apache.accumulo.core.client.TableExistsException: Table testtable exists
2018-08-30 11:21:28,554 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 11:21:28,555 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 11:21:28,555 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 11:21:28,556 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.



Re: Accumulo TServer error: connection refused to slnxhadoop04.in .

Rising Star

Just delete the table testtable. It must have errored out in the middle of a previous service check.