Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to resolve crash while loading data in Apache atlas using quick_start.py script?

avatar

Hello,

I am setting apache atlas on EC2. When I tried command " bin/quick_start.py" it ask for username/password.

I provide admin/admin. It took a while and than gives this crashlog.

apache-atlas-0.9-incubating-SNAPSHOT$ bin/quick_start.py

Enter username for atlas :-

sam

Enter password for atlas :-

123

=========Crash Log================

Exception in thread "main" java.lang.IllegalArgumentException: None of the passed URLs are active org.apache.atlas.AtlasServerEnsemble@40ef3420

at org.apache.atlas.AtlasBaseClient.determineActiveServiceURL(AtlasBaseClient.java:207)

at org.apache.atlas.AtlasBaseClient.initializeState(AtlasBaseClient.java:152)

at org.apache.atlas.AtlasBaseClient.initializeState(AtlasBaseClient.java:140)

at org.apache.atlas.AtlasBaseClient.<init>(AtlasBaseClient.java:96)

at org.apache.atlas.AtlasClientV2.<init>(AtlasClientV2.java:105)

at org.apache.atlas.examples.QuickStartV2.<init>(QuickStartV2.java:179)

at org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:141)

at org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:132)

Caused by: org.apache.atlas.AtlasServiceException: Metadata service API GET : api/atlas/admin/status failed

at org.apache.atlas.AtlasBaseClient.selectActiveServerAddress(AtlasBaseClient.java:228)

at org.apache.atlas.AtlasBaseClient.determineActiveServiceURL(AtlasBaseClient.java:204)

... 7 more

Caused by: java.lang.RuntimeException: Could not find any active instance

... 9 more

No sample data added to Apache Atlas Server.

Please guide If any one has any idea about it.

32 REPLIES 32

avatar

@Naseem Rafique

Exception in thread "main" java.lang.IllegalArgumentException: None of the passed URLs are active org.apache.atlas.AtlasServerEnsemble@40ef3420

This exception says that, the atlas url that is picked up from <ATLAS_HOME>/conf/atlas-application.properties is not active and it cant post the metadata to Atlas,

Please check the config mentioned above and make sure it is pointing to Atlas instance which is up and running.

avatar

@Naseem Rafique

Server is not running.. empty response from server.

* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server

Check the atlas application logs, why it is not running. you can find them under <ATLAS_HOME>/logs/application.log

avatar
@Ayub Khan

I have tested that server is running by using following command:

curl -v http://localhost:21000/api/atlas/admin/version

Following is the result:

* Trying 127.0.0.1...

* Connected to localhost (127.0.0.1) port 21000 (#0)

> GET /api/atlas/admin/version HTTP/1.1

> Host: localhost:21000

> User-Agent: curl/7.47.0

> Accept: */*

>

* Empty reply from server

* Connection #0 to host localhost left intact

curl: (52) Empty reply from server

what else I need to test in order to make sure that my server and all of its components are running fine.

Thanks,

avatar
Expert Contributor

try http://localhost:21000/login.jsp and check logs in logs/atlas-application.log

This logs can tell more about the problem

avatar

Tried the following.

apache-atlas-0.9-incubating-SNAPSHOT$ curl -v http://localhost:21000/login.jsp

* Trying 127.0.0.1...

* Connected to localhost (127.0.0.1) port 21000 (#0)

> GET /login.jsp HTTP/1.1

> Host: localhost:21000

> User-Agent: curl/7.47.0

> Accept: */*

>

* Empty reply from server

* Connection #0 to host localhost left intact

curl: (52) Empty reply from server

Can you check my applicatio.properties attached in the comments.

avatar

@Ayub Khan

Following is my properties file. atlas-applicationproperties.txt

avatar
Expert Contributor

@Naseem Rafique

seems you have setup Atlas in HA.

apache-atlas-0.9-incubating-SNAPSHOT$ bin/quick_start.py <http/https>://<atlas-fqdn>:<atlas port>

can you run quickstart with above format.

nixon

avatar

@Nixon Rodrigues

which end point do i need to provide here in following format? in guide it is mentioned as optional.

<http/https>://<atlas-fqdn>:<atlas port>

avatar
Expert Contributor

@Naseem Rafique

apache-atlas-0.9-incubating-SNAPSHOT$ bin/quick_start.py http://localhost:21000

also check logs in logs/atlas-application.log