请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

关于虚拟机设置机器名

2020-06-22 18:46:41.570  INFO 13386 --- [           main] org.apache.zookeeper.ZooKeeper           : Initiating client connection, connectString=10.32.45.147:2181 sessionTimeout=180000 watcher=hconnection-0x259742070x0, quorum=10.32.45.147:2181, baseZNode=/hbase
2020-06-22 18:46:42.631  INFO 13386 --- [32.45.147:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server 10.32.45.147/10.32.45.147:2181. Will not attempt to authenticate using SASL (unknown error)
2020-06-22 18:46:42.689  INFO 13386 --- [32.45.147:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /172.24.1.78:61264, server: 10.32.45.147/10.32.45.147:2181
2020-06-22 18:46:42.744  INFO 13386 --- [32.45.147:2181)] org.apache.zookeeper.ClientCnxn          : Session establishment complete on server 10.32.45.147/10.32.45.147:2181, sessionid = 0x172cc5044b40023, negotiated timeout = 40000
2020-06-22 18:47:32.637  INFO 13386 --- [hared--pool1-t1] o.a.h.hbase.client.RpcRetryingCaller     : Call exception, tries=10, retries=31, started=49290 ms ago, cancelled=false, msg=row 'lx_table,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=ks8u-test-k8s06,60020,1592822760061, seqNum=0

org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=32, exceptions:
Mon Jun 22 18:47:32 CST 2020, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=69338: row 'lx_table,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=ks8u-test-k8s06,60020,1592822760061, seqNum=0


	at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.throwEnrichedException(RpcRetryingCallerWithReadReplicas.java:320)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:247)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:62)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210)
	at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327)
	at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302)
	at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167)
	at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162)
	at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:867)
	at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:637)
	at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
	at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:424)
	at com.luxshare.HbaseTest.createTable(HbaseTest.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)
	at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=69338: row 'lx_table,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=ks8u-test-k8s06,60020,1592822760061, seqNum=0
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:169)
	at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:80)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: KS8U-Test-K8S06
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.<init>(AbstractRpcClient.java:315)
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient.createBlockingRpcChannel(AbstractRpcClient.java:267)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getClient(ConnectionManager.java:1779)
	at org.apache.hadoop.hbase.client.ScannerCallable.prepare(ScannerCallable.java:163)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.prepare(ScannerCallableWithReplicas.java:409)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:134)

一步一步测试都ok

后来我都将 ks8u-test-k8s06 改为ip,但仍有问题

正在回答 回答被采纳积分+3

1回答

提问者 qq_龙行天下_0 2020-06-22 18:54:43

直接后台命令行,都无问题,但用java测试 hbase时,创建表时有问题

0 回复 有任何疑惑可以回复我~
  • Caused by: java.net.UnknownHostException: KS8U-Test-K8S06,这就是根源
    回复 有任何疑惑可以回复我~ 2020-06-22 18:59:13
  • 提问者 qq_龙行天下_0 回复 Michael_PK #2
    知道,但都改成了ip,怎么还有这个问题
    回复 有任何疑惑可以回复我~ 2020-06-22 19:00:13
  • 提问者 qq_龙行天下_0 #3
    重装的心都有了,我这儿暂时没有dns解析这一类的
    回复 有任何疑惑可以回复我~ 2020-06-22 19:00:55
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信