- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to resolve crash while loading data in Apache atlas using quick_start.py script?
- Labels:
-
Apache Ambari
-
Apache Atlas
Created ‎03-24-2017 10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎03-24-2017 10:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎03-24-2017 10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎03-24-2017 10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Created ‎03-24-2017 10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try http://localhost:21000/login.jsp and check logs in logs/atlas-application.log
This logs can tell more about the problem
Created ‎03-24-2017 11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎03-24-2017 10:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following is my properties file. atlas-applicationproperties.txt
Created ‎03-24-2017 10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎03-24-2017 10:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
Created ‎03-24-2017 11:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
apache-atlas-0.9-incubating-SNAPSHOT$ bin/quick_start.py http://localhost:21000
also check logs in logs/atlas-application.log
