Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
After compiling Atlas with mvn clean package -Pdist,embedded-hbase-solr
and starting Atlas with embedded services hbase, solr and kafka using atlas_start.py, the Atlas start fails with below error in application.log
2019-12-09 16:01:28,839 INFO - [main:] ~ Not running setup per configuration atlas.server.run.setup.on.start. (SetupSteps$SetupRequired:189) 2019-12-09 16:01:32,786 WARN - [ReadOnlyZKClient-localhost:2181@0x0fa5f81c-SendThread(localhost:2181):] ~ Session 0x16eea36b27b0003 for server null, unexpected error, closing socket connection and attempting reconnect (ClientCnxn$SendThread:1102) java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2019-12-09 16:01:32,889 WARN - [ReadOnlyZKClient-localhost:2181@0x0fa5f81c:] ~ 0x0fa5f81c to localhost:2181 failed for get of /hbase/meta-region-server, code = CONNECTIONLOSS, retries = 1 (ReadOnlyZKClient$ZKTask$1:183) 2019-12-09 16:01:34,004 WARN - [ReadOnlyZKClient-localhost:2181@0x0fa5f81c-SendThread(localhost:2181):] ~ Session 0x16eea36b27b0003 for server null, unexpected error, closing socket connection and attempting reconnect (ClientCnxn$SendThread:1102) java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
Workaround
Adding below property in hbase-site.xml.template and
running mvn clean package -Pdist,embedded-hbase-solr the issue is resolved.
Path : /home/{computername}/atlas/distro/target/apache-atlas-3.0.0-SNAPSHOT-bin/apache-atlas-3.0.0-SNAPSHOT/hbase/conf
<property> <name>hbase.unsafe.stream.capability.enforce</name> <value>false</value> </property>