Support Questions

Find answers, ask questions, and share your expertise

Apache Atlas Service unavailable?

avatar

I am using Apache Atlas 1.0.0, after successful compilation, I try to start Atlas server using ./distro/target/apache-atlas-1.0.0-SNAPSHOT-bin/apache-atlas-1.0.0-SNAPSHOT/bin/atlas_start.py.

And it shows - ------------------------

starting atlas on host localhost

starting atlas on port 21000

Apache Atlas Server started!!!

------------------------------------------------

While using localhost:21000 in browser, it gives Error 503 : Service unavailable. Could anyone please suggest me, what should I do start the service.

And here is my Error log -

log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. Exception in thread "main" org.apache.atlas.exception.AtlasBaseException: EmbeddedServer.Start: failed! at org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:101) at org.apache.atlas.Atlas.main(Atlas.java:133) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:317) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:401) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:98) ... 1 more log4j:WARN No appenders could be found for logger (org.apache.atlas.Atlas). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Thanks and Regards,

Manoj

3 REPLIES 3

avatar
Super Guru

@manoj kumar,

org.apache.atlas.Atlas.main(Atlas.java:133) Caused by: java.net.BindException: Address already in use at

This means that the port is already occupied. Kill the process and restart again.

# netstat -tupln | grep 21000 
sample output :tcp6       0      0 :::21000                :::*                    LISTEN      28861/java
# kill -9 <pid>
ie. kill -9 28861

Thanks,

Aditya

avatar

Hi @Aditya,

I killed the process, but issue not resolved. So, I reinstall Atlas project from the begining.

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m"

mvn clean install -DskipTests > log.txt

And then comes this error :-

/home/kafka/atlas/intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java:437:84: unexpected token: > /home/kafka/atlas/repository/src/main/java/org/apache/atlas/discovery/EntityLineageService.java:133:28: expecting SEMI, found ',' log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout. Exception in thread "Connection evictor" java.lang.NoClassDefFoundError: org/apache/http/pool/AbstractConnPool$4 at org.apache.http.pool.AbstractConnPool.closeExpired(AbstractConnPool.java:558) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeExpiredConnections(PoolingHttpClientConnectionManager.java:409) at org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:67) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.http.pool.AbstractConnPool$4 at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428)

... 4 more

Could you please look at this, and tell me what's going wrong here?

avatar

I am using linux 14.04 for Apache Atlas installation.

First I installed zookeeper, Apache Kafka.

and then performed following steps :

git clone https://github.com/apache/atlas.git"

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m"

sudo env "PATH=$PATH" mvn clean install -DskipTests

sudo env "PATH=$PATH" mvn clean package -DskipTests -Pdist,embedded-hbase-solr

After successfully installed, I run - sudo ./distro/target/apache-atlas-1.0.0-SNAPSHOT-bin/apache-atlas-1.0.0-SNAPSHOT/bin/atlas_start.py

then I go to brower and type : localhost:21000

it is not responding, says - service unavailable.

Please some one help me, what to do?

Thanks,

Manoj