Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access region server port because it's random and unmapped #19

Open
aclowkey opened this issue Jul 5, 2017 · 0 comments
Open

Comments

@aclowkey
Copy link

aclowkey commented Jul 5, 2017

Hi,

I'm encountering an issue where my client application can't connect to the region server. It seems that the region server port is always different. I tried mapping the region server port, but it restarts the container and gets a new port.

Is there a workaround to this?

My stacktrace:

[Wed Jul 05 10:40:54 IDT 2017, RpcRetryingCaller{globalStartTime=1499240454096, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: d159d1f40d90/192.168.99.100:38571
Wed Jul 05 10:40:54 IDT 2017, RpcRetryingCaller{globalStartTime=1499240454096, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: d159d1f40d90/192.168.99.100:38571
Wed Jul 05 10:40:54 IDT 2017, RpcRetryingCaller{globalStartTime=1499240454096, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: d159d1f40d90/192.168.99.100:38571
Wed Jul 05 10:40:54 IDT 2017, RpcRetryingCaller{globalStartTime=1499240454096, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: d159d1f40d90/192.168.99.100:38571
Wed Jul 05 10:40:56 IDT 2017, RpcRetryingCaller{globalStartTime=1499240454096, pause=100, retries=5}, java.net.ConnectException: Connection refused: no further information

	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:157) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65) ~[hbase-client-1.2.4.jar:1.2.4]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_45]
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_45]
	at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) ~[hadoop-common-2.7.1.jar:na]
	at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531) ~[hadoop-common-2.7.1.jar:na]
	at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495) ~[hadoop-common-2.7.1.jar:na]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupConnection(RpcClientImpl.java:416) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:722) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:906) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:873) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1241) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:227) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:336) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:34094) ~[hbase-protocol-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.ClientSmallScanner$SmallScannerCallable.call(ClientSmallScanner.java:201) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.ClientSmallScanner$SmallScannerCallable.call(ClientSmallScanner.java:180) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:364) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:338) ~[hbase-client-1.2.4.jar:1.2.4]
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:136) ~[hbase-client-1.2.4.jar:1.2.4]
	... 4 common frames omitted](url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant