Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Apache Atlas Started but with Errors and Warnings

avatar
Rising Star

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.

11468-question-apache-atlas-started-with-errors-and-warn.jpg

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

1 ACCEPTED SOLUTION

avatar
Expert Contributor

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

View solution in original post

30 REPLIES 30

avatar
Rising Star
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)

avatar
Rising Star

@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.

avatar
Expert Contributor

@Bilal Arshad

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.

avatar
Rising Star

@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

avatar
Expert Contributor

@bilal Arshad,

You are not able to connect to 21000 port , it seems to be firewall issue.

please check firewall related settings

avatar
Rising Star

@Nixon Rodrigues I have disabled the firewall for now to see if it works but it is still giving the following:

11819-atlas-connection-refused-1022-time.png

avatar
Expert Contributor

@Bilal Arshad,

What is OS you are using, are you using VM ?

Please attach your conf/atlas-application.properties and logs/application.log

avatar
Rising Star

Link to the above mentioned files

I am using Ubuntu 14.04 on a VM.

avatar
Expert Contributor

@Bilal Arshad,

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)

avatar
Rising Star

@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!