我在EC2上设置了Apache地图集。设置完成后,我使用命令python2 atlas_start.py启动了Apache地图集,并成功通过以下日志启动:
configured for local hbase.
hbase started.
configured for local solr.
solr started.
setting up solr collections...
starting atlas on host localhost
starting atlas on port 21000
..............................................................................................................................................................................................................................................................................................................
Apache Atlas Server started!!!
但是,当我尝试点击服务器URL来验证apache地图集是否已启动并正在运行时。它给了我连接被拒绝的错误。下面是我用来访问服务器的命令: curl -u用户名:密码http://localhost:21000/api/atlas/admin/version
此外,在安装过程中它没有询问我用户名和密码,所以我使用admin:admin作为用户名密码。
答案 0 :(得分:0)
原因很多-请进行以下检查
请根据设置方式检查logs
目录中的日志。 (如果您只是通过mvn运行它的话)
您需要hbase(atleast)和solr / elastic / cassandra(atlas后端)。检查您是否正在运行嵌入式模式-Atlas将在其中启动其自己的后端。通常将其设置为环境变量。即:MANAGE_LOCAL_HBASE
在启动atlas-application.properties
之前,请确保其配置正确。
希望这会有所帮助!
编辑: 我注意到您提到了ec2。确保已配置正确的安全组。
答案 1 :(得分:0)
您必须使用“mvn clean install -Pdist”构建服务器,完成后您需要导航到 distro/target/ 文件夹,然后从那里运行 atlas_start.py。
这里解决
答案 2 :(得分:0)
此脚本的问题在于使用 atlas_start.py
启动地图集需要大约 10 分钟。虽然其过程尚未完成,但您会遇到 connection refused
错误。
为了查看是否完成,您可以使用application.log
或logs
检查tail -n 10 application.log
目录中的cat application.log
文件。在 2.1.0 版本中,application.log 的最后 10 行如下:
2021-03-28 06:00:06,536 INFO - [main:] ~ Starting service org.apache.atlas.web.service.ActiveInstanceElectorService (Services:68)
2021-03-28 06:00:06,540 INFO - [NotificationHookConsumer thread-0:] ~ [atlas-hook-consumer-thread]: Starting (Logging$class:66)
2021-03-28 06:00:06,542 INFO - [main:] ~ HA is not enabled, no need to start leader election service (ActiveInstanceElectorService:103)
2021-03-28 06:00:06,542 INFO - [NotificationHookConsumer thread-0:] ~ ==> HookConsumer doWork() (NotificationHookConsumer$HookConsumer:530)
2021-03-28 06:00:06,544 INFO - [NotificationHookConsumer thread-0:] ~ Atlas Server is ready, can start reading Kafka events. (NotificationHookConsumer$HookConsumer:936)
2021-03-28 06:00:06,628 WARN - [NotificationHookConsumer thread-0:] ~ [Consumer clientId=consumer-1, groupId=atlas] Error while fetching metadata with correlation id 2 : {ATLAS_HOOK=LEADER_NOT_AVAILABLE} (NetworkClient$DefaultMetadataUpdater:968)
2021-03-28 06:00:06,757 WARN - [NotificationHookConsumer thread-0:] ~ [Consumer clientId=consumer-1, groupId=atlas] Error while fetching metadata with correlation id 4 : {ATLAS_HOOK=LEADER_NOT_AVAILABLE} (NetworkClient$DefaultMetadataUpdater:968)
2021-03-28 06:00:06,932 WARN - [NotificationHookConsumer thread-0:] ~ [Consumer clientId=consumer-1, groupId=atlas] Error while fetching metadata with correlation id 6 : {ATLAS_HOOK=LEADER_NOT_AVAILABLE} (NetworkClient$DefaultMetadataUpdater:968)
2021-03-28 06:00:07,585 INFO - [main:] ~ AuditFilter initialization started (AuditFilter:64)
2021-03-28 06:00:07,585 INFO - [main:] ~ REST_API_ENABLE_DELETE_TYPE_OVERRIDE=false (AuditFilter:69)
之后就可以看到登录页面http://localhost:21000
:
或使用 curl 命令:
~ ➤ curl -u admin:admin http://localhost:21000/api/atlas/admin/version
{"Description":"Metadata Management and Data Governance Platform over Hadoop","Revision":"release","Version":"2.1.0","Name":"apache-atlas"}%
default username and password are **admin**.