Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 01-17-2017 11:56 AM - edited 08-19-2019 02:04 AM
I have followed the following link to build and install Apache Atlas
Link: http://atlas.incubator.apache.org/InstallationSteps.html
And selected to install the embedded-hbase-solr profile, but when I started Atlas after installation it is showing me the following errors and warning.
I have also tried to see which version is running curl -v http://localhost:21000/api/atlas/admin/version but it is giving the following:
* Hostname was NOT found in DNS cache * Trying 127.0.0.1... * connect to 127.0.0.1 port 21000 failed: Connection refused * Failed to connect to localhost port 21000: Connection refused * Closing connection 0 curl: (7) Failed to connect to localhost port 21000: Connection refused
Kindly let me know how shall I proceed to ensure Altas is working in the correct order. Any help will be highly appreciated. Thanking you in anticipation.
Kind Regards
Created 01-17-2017 07:10 PM
I think you have to build the server using "mvn clean install -Pdist,<your hbase profile name>", once this is done you need to navigate to the distro/target/ folder and then run the atlas_start.py from there.
HTH
Created 01-26-2017 03:55 PM
017-01-26 00:00:00,351 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-01-26 00:00:01,453 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-01-26 00:00:02,554 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-01-26 00:00:03,656 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-01-26 00:00:04,757 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
Created 01-26-2017 03:57 PM
@Nixon Rodrigues the contents of the log file are too big to be posted here so I have just posted the beginning of the file for reference.
Created 01-27-2017 08:40 AM
Not able to understand from the logs you provided, but suspect the error while connecting to hbase.
I build and run Atlas using mvn clean package -Pdist,embedded-hbase-solr -DskipTests
and have following env variable set in .bashrc profile
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" export MANAGE_LOCAL_SOLR=True export MANAGE_LOCAL_HBASE=True
Can you add this env variable and try restarting Atlas.
Created 01-27-2017 12:50 PM
@Nixon Rodrigues I tried adding the env variables to .bashrc and started atlas. It is still giving me the following:
hduser@bilal-VirtualBox:~/atlas/distro/target/apache-atlas-0.8-incubating-SNAPSHOT-bin/apache-atlas-0.8-incubating-SNAPSHOT$ bin/atlas_start.py
Apache Atlas Server started!!!
hduser@bilal-VirtualBox:~/atlas/distro/target/apache-atlas-0.8-incubating-SNAPSHOT-bin/apache-atlas-0.8-incubating-SNAPSHOT$ curl -v http://localhost:21000/api/atlas/admin/version
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1... * connect to 127.0.0.1 port 21000 failed: Connection refused
* Failed to connect to localhost port 21000: Connection refused
* Closing connection 0 curl: (7) Failed to connect to localhost port 21000: Connection refused
Created 01-27-2017 01:21 PM
@bilal Arshad,
You are not able to connect to 21000 port , it seems to be firewall issue.
please check firewall related settings
Created on 01-27-2017 03:44 PM - edited 08-19-2019 02:04 AM
@Nixon Rodrigues I have disabled the firewall for now to see if it works but it is still giving the following:
Created 01-28-2017 09:21 AM
@Bilal Arshad,
What is OS you are using, are you using VM ?
Please attach your conf/atlas-application.properties and logs/application.log
Created 01-30-2017 10:16 AM
Created 02-01-2017 02:14 PM
I checked the logs you provided, there are lot of error whiling connecting zookeeper.
can you try to connect zookeeper from zkCli.sh and if this works
2017-01-31 00:00:01,742 WARN - [main-SendThread(localhost:2181):] ~ Session 0x0 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:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
Created 02-06-2017 02:35 PM
@Nixon Rodrigues please excuse me for my naivety, i can't seem to understand how to connect to zookeeper from zkCli.sh! Any help would be highly appreciated!