kylin启动报错Background exception was not retry-able or retry gave up java.net.UnknownHostException
作者:互联网
2020-05-29 13:41:50,902 INFO [main] zookeeper.ZooKeeper:438 : Initiating client connection, connectString=note01:2181:2181,note02:2181:2181,note03:2181:2181 sessionTimeout=120000 watcher=org.apache.curator.ConnectionState@12cd9150
2020-05-29 13:41:55,964 ERROR [main] imps.CuratorFrameworkImpl:546 : Background exception was not retry-able or retry gave up
java.net.UnknownHostException: note01:2181: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.phoenix.shaded.org.apache.zookeeper.client.StaticHostProvider.(StaticHostProvider.java:61)
at org.apache.phoenix.shaded.org.apache.zookeeper.ZooKeeper.(ZooKeeper.java:445)
at org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:146)
at org.apache.curator.HandleHolder
1.
g
e
t
Z
o
o
K
e
e
p
e
r
(
H
a
n
d
l
e
H
o
l
d
e
r
.
j
a
v
a
:
94
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
u
r
a
t
o
r
.
H
a
n
d
l
e
H
o
l
d
e
r
.
g
e
t
Z
o
o
K
e
e
p
e
r
(
H
a
n
d
l
e
H
o
l
d
e
r
.
j
a
v
a
:
55
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
u
r
a
t
o
r
.
C
o
n
n
e
c
t
i
o
n
S
t
a
t
e
.
r
e
s
e
t
(
C
o
n
n
e
c
t
i
o
n
S
t
a
t
e
.
j
a
v
a
:
262
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
u
r
a
t
o
r
.
C
o
n
n
e
c
t
i
o
n
S
t
a
t
e
.
s
t
a
r
t
(
C
o
n
n
e
c
t
i
o
n
S
t
a
t
e
.
j
a
v
a
:
109
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
u
r
a
t
o
r
.
C
u
r
a
t
o
r
Z
o
o
k
e
e
p
e
r
C
l
i
e
n
t
.
s
t
a
r
t
(
C
u
r
a
t
o
r
Z
o
o
k
e
e
p
e
r
C
l
i
e
n
t
.
j
a
v
a
:
191
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
u
r
a
t
o
r
.
f
r
a
m
e
w
o
r
k
.
i
m
p
s
.
C
u
r
a
t
o
r
F
r
a
m
e
w
o
r
k
I
m
p
l
.
s
t
a
r
t
(
C
u
r
a
t
o
r
F
r
a
m
e
w
o
r
k
I
m
p
l
.
j
a
v
a
:
248
)
a
t
o
r
g
.
a
p
a
c
h
e
.
k
y
l
i
n
.
s
t
o
r
a
g
e
.
h
b
a
s
e
.
u
t
i
l
.
Z
o
o
k
e
e
p
e
r
D
i
s
t
r
i
b
u
t
e
d
L
o
c
k
1.getZooKeeper(HandleHolder.java:94) at org.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55) at org.apache.curator.ConnectionState.reset(ConnectionState.java:262) at org.apache.curator.ConnectionState.start(ConnectionState.java:109) at org.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:191) at org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:248) at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock
1.getZooKeeper(HandleHolder.java:94)atorg.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55)atorg.apache.curator.ConnectionState.reset(ConnectionState.java:262)atorg.apache.curator.ConnectionState.start(ConnectionState.java:109)atorg.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:191)atorg.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:248)atorg.apache.kylin.storage.hbase.util.ZookeeperDistributedLockFactory.getZKClient(ZookeeperDistributedLock.java:81)
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock
F
a
c
t
o
r
y
.
<
i
n
i
t
>
(
Z
o
o
k
e
e
p
e
r
D
i
s
t
r
i
b
u
t
e
d
L
o
c
k
.
j
a
v
a
:
105
)
a
t
o
r
g
.
a
p
a
c
h
e
.
k
y
l
i
n
.
s
t
o
r
a
g
e
.
h
b
a
s
e
.
u
t
i
l
.
Z
o
o
k
e
e
p
e
r
D
i
s
t
r
i
b
u
t
e
d
L
o
c
k
Factory.Factory.<init>(ZookeeperDistributedLock.java:105)atorg.apache.kylin.storage.hbase.util.ZookeeperDistributedLockFactory.(ZookeeperDistributedLock.java:101)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.apache.kylin.common.util.ClassUtil.newInstance(ClassUtil.java:84)
at org.apache.kylin.common.KylinConfigBase.getDistributedLockFactory(KylinConfigBase.java:375)
at org.apache.kylin.storage.hbase.HBaseConnection.createHTableIfNeeded(HBaseConnection.java:327)
at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:112)
at org.apache.kylin.storage.hbase.HBaseResourceStore.(HBaseResourceStore.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.kylin.common.persistence.ResourceStore.createResourceStore(ResourceStore.java:92)
at org.apache.kylin.common.persistence.ResourceStore.getStore(ResourceStore.java:110)
at org.apache.kylin.rest.service.AclTableMigrationTool.checkIfNeedMigrate(AclTableMigrationTool.java:98)
at org.apache.kylin.tool.AclTableMigrationCLI.main(AclTableMigrationCLI.java:41)
2020-05-29 13:41:55,966 DEBUG [main] util.ZookeeperDistributedLock:143 : 18497@note01 trying to lock /kylin/kylin_metadata/create_htable/kylin_metadata/lock
2020-05-29 13:42:11,003 ERROR [main] curator.ConnectionState:228 : Connection timed out for connection string (note01:2181:2181,note02:2181:2181,note03:2181:2181) and timeout (15000) / elapsed (20115)
由于hbase-site.xml中配置
<property> <name>hbase.zookeeper.quorum</name> <value>note01:2181,note02:2181,note03:2181</value> </property>
修改为
<property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>note01,note02,note03</value> </property>
2020-05-29 13:59:51,024 INFO [main-EventThread] state.ConnectionStateManager:228 : State change: CONNECTED
Exception in thread “main” java.lang.IllegalArgumentException: Failed to find metadata store by url: kylin_metadata@hbase
at org.apache.kylin.common.persistence.ResourceStore.createResourceStore(ResourceStore.java:98)
at org.apache.kylin.common.persistence.ResourceStore.getStore(ResourceStore.java:110)
at org.apache.kylin.rest.service.AclTableMigrationTool.checkIfNeedMigrate(AclTableMigrationTool.java:98)
at org.apache.kylin.tool.AclTableMigrationCLI.main(AclTableMigrationCLI.java:41)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.kylin.common.persistence.ResourceStore.createResourceStore(ResourceStore.java:92)
… 3 more
Caused by: java.lang.RuntimeException: Error while peeking at /kylin/kylin_metadata/create_htable/kylin_metadata/lock
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.peekLock(ZookeeperDistributedLock.java:205)
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.isLockedByMe(ZookeeperDistributedLock.java:216)
at org.apache.kylin.storage.hbase.HBaseConnection.createHTableIfNeeded(HBaseConnection.java:352)
at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:112)
at org.apache.kylin.storage.hbase.HBaseResourceStore.(HBaseResourceStore.java:93)
… 8 more
Caused by: org.apache.phoenix.shaded.org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /kylin/kylin_metadata/create_htable/kylin_metadata/lock
at org.apache.phoenix.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.phoenix.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.phoenix.shaded.org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:302)
at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:291)
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
at org.apache.curator.framework.imps.GetDataBuilderImpl.pathInForeground(GetDataBuilderImpl.java:288)
at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:279)
at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:41)
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.peekLock(ZookeeperDistributedLock.java:200)
… 12 more
标签:exception,retry,java,kylin,curator,报错,apache,org,hbase 来源: https://blog.51cto.com/u_13985831/2838624