[ 
https://issues.apache.org/jira/browse/ATLAS-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581219#comment-15581219
 ] 

Shwetha G S commented on ATLAS-1220:
------------------------------------

The error is because of issue in starting embedded zookeeper and kafka. Can you 
enable debug logs to get more details?

Atlas requires kafka for hook integration and entity notifications. If you are 
running with external hbase and solr, you need to configure external kafka 
endpoints as well. Can you attach the atlas configuration that you are using?

> when i execute bin/atlas_start.py   found HTTP ERROR: 503
> ---------------------------------------------------------
>
>                 Key: ATLAS-1220
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1220
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>         Environment:  
> hadoop2.6.0+hbase1.1.5+solr5.5.2+zookeeper3.4.8+hive1.2.1+redhat6.5
>            Reporter: zhangqiang2
>
> 2016-10-11 10:01:06,739 INFO  - [main:] ~ Initializing type system for the 
> first time. (DefaultMetadataService:162)
> 2016-10-11 10:01:07,495 WARN  - [main:] ~ class fs_path already registered, 
> ignoring types in /home/hong/atlas/atlas-0.7/models/fs_model.json 
> (ReservedTypesRegistrar:89)
> 2016-10-11 10:01:07,615 WARN  - [main:] ~ class hive_process already 
> registered, ignoring types in 
> /home/hong/atlas/atlas-0.7/models/hive_model.json (ReservedTypesRegistrar:89)
> 2016-10-11 10:01:07,654 WARN  - [main:] ~ class falcon_feed_replication 
> already registered, ignoring types in 
> /home/hong/atlas/atlas-0.7/models/falcon_model.json 
> (ReservedTypesRegistrar:89)
> 2016-10-11 10:01:07,675 WARN  - [main:] ~ class sqoop_process already 
> registered, ignoring types in 
> /home/hong/atlas/atlas-0.7/models/sqoop_model.json (ReservedTypesRegistrar:89)
> 2016-10-11 10:01:07,707 WARN  - [main:] ~ class storm_topology already 
> registered, ignoring types in 
> /home/hong/atlas/atlas-0.7/models/storm_model.json (ReservedTypesRegistrar:89)
> 2016-10-11 10:01:07,707 INFO  - [main:] ~ Restored type system from the store 
> (DefaultMetadataService:173)
> 2016-10-11 10:01:07,709 INFO  - [main:] ~ Guice modules loaded 
> (GuiceServletConfig:120)
> 2016-10-11 10:01:07,714 INFO  - [main:] ~ Starting services 
> (GuiceServletConfig:140)
> 2016-10-11 10:01:07,764 WARN  - [main-SendThread(dap241:9026):] ~ Session 0x0 
> for server null, unexpected error, closing socket connection and attempting 
> reconnect (ClientCnxn$SendThread:1102)
> java.net.ConnectException: 拒绝连接
>       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)
> 2016-10-11 10:01:07,803 INFO  - [main:] ~ HA is disabled. Hence creating 
> table on startup. (HBaseBasedAuditRepository:287)
> 2016-10-11 10:01:07,803 INFO  - [main:] ~ Checking if table 
> apache_atlas_entity_audit exists (HBaseBasedAuditRepository:249)
> 2016-10-11 10:01:07,816 INFO  - [main:] ~ Table apache_atlas_entity_audit 
> exists (HBaseBasedAuditRepository:258)
> 2016-10-11 10:01:07,816 INFO  - [main:] ~ HA is not enabled, no need to start 
> leader election service (ActiveInstanceElectorService:101)
> 2016-10-11 10:01:08,875 WARN  - 
> [NIOServerCxn.Factory:dap241/10.43.182.241:9026:] ~ Exception causing close 
> of session 0x0 due to java.io.IOException: ZooKeeperServer not running 
> (NIOServerCnxn:362)
> 2016-10-11 10:01:10,139 WARN  - 
> [NIOServerCxn.Factory:dap241/10.43.182.241:9026:] ~ Exception causing close 
> of session 0x0 due to java.io.IOException: ZooKeeperServer not running 
> (NIOServerCnxn:362)
> 2016-10-11 10:01:12,293 WARN  - 
> [NIOServerCxn.Factory:dap241/10.43.182.241:9026:] ~ Exception causing close 
> of session 0x0 due to java.io.IOException: ZooKeeperServer not running 
> (NIOServerCnxn:362)
> 2016-10-11 10:01:14,756 FATAL - [main:] ~ Fatal error during KafkaServer 
> startup. Prepare to shutdown (Logging$class:116)
> org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to 
> zookeeper server within timeout: 500
>       at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232)
>       at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)
>       at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)
>       at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:75)
>       at kafka.utils.ZkUtils$.apply(ZkUtils.scala:57)
>       at kafka.server.KafkaServer.initZk(KafkaServer.scala:294)
>       at kafka.server.KafkaServer.startup(KafkaServer.scala:180)
>       at 
> org.apache.atlas.kafka.KafkaNotification.startKafka(KafkaNotification.java:352)
>       at 
> org.apache.atlas.kafka.KafkaNotification.start(KafkaNotification.java:145)
>       at org.apache.atlas.service.Services.start(Services.java:45)
>       at 
> org.apache.atlas.web.listeners.GuiceServletConfig.startServices(GuiceServletConfig.java:142)
>       at 
> org.apache.atlas.web.listeners.GuiceServletConfig.contextInitialized(GuiceServletConfig.java:136)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
>       at 
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
>       at 
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
>       at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>       at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
>       at org.eclipse.jetty.server.Server.start(Server.java:387)
>       at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
>       at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
>       at org.eclipse.jetty.server.Server.doStart(Server.java:354)
>       at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>       at 
> org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:93)
>       at org.apache.atlas.Atlas.main(Atlas.java:113)
> 2016-10-11 10:01:14,766 WARN  - [main:] ~ Failed startup of context 
> o.e.j.w.WebAppContext@4affe0c8{/,file:/home/hong/atlas/atlas-0.7/server/webapp/atlas/,STARTING}{/home/hong/atlas/atlas-0.7/server/webapp/atlas}
>  (WebAppContext:514)
> java.lang.RuntimeException: org.apache.atlas.AtlasException: Failed to start 
> embedded kafka
>       at org.apache.atlas.service.Services.start(Services.java:48)
>       at 
> org.apache.atlas.web.listeners.GuiceServletConfig.startServices(GuiceServletConfig.java:142)
>       at 
> org.apache.atlas.web.listeners.GuiceServletConfig.contextInitialized(GuiceServletConfig.java:136)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
>       at 
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
>       at 
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
>       at 
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
>       at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>       at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
>       at org.eclipse.jetty.server.Server.start(Server.java:387)
>       at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
>       at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
>       at org.eclipse.jetty.server.Server.doStart(Server.java:354)
>       at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>       at 
> org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:93)
>       at org.apache.atlas.Atlas.main(Atlas.java:113)
> Caused by: org.apache.atlas.AtlasException: Failed to start embedded kafka
>       at 
> org.apache.atlas.kafka.KafkaNotification.start(KafkaNotification.java:147)
>       at org.apache.atlas.service.Services.start(Services.java:45)
>       ... 19 more
> Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to 
> connect to zookeeper server within timeout: 500
>       at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232)
>       at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)
>       at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)
>       at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:75)
>       at kafka.utils.ZkUtils$.apply(ZkUtils.scala:57)
>       at kafka.server.KafkaServer.initZk(KafkaServer.scala:294)
>       at kafka.server.KafkaServer.startup(KafkaServer.scala:180)
>       at 
> org.apache.atlas.kafka.KafkaNotification.startKafka(KafkaNotification.java:352)
>       at 
> org.apache.atlas.kafka.KafkaNotification.start(KafkaNotification.java:145)
>       ... 20 more
> 2016-10-11 10:01:15,089 WARN  - 
> [NIOServerCxn.Factory:dap241/10.43.182.241:9026:] ~ caught end of stream 
> exception (NIOServerCnxn:357)
> EndOfStreamException: Unable to read additional data from client sessionid 
> 0x157b178e9c50000, likely client has closed socket
>       at 
> org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
>       at 
> org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
>       at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to