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
Expert Contributor

@Naseem Rafique

can you check if this env variable are set properly on cmdline

echo $JAVA_HOME

echo $MANAGE_LOCAL_SOLR

echo $MANAGE_LOCAL_HBASE

Also can you provide atlas-application.log

avatar

@Nixon Rodrigues

These vars are already added in the script.

I have re build the whole process but still getting same error on bin/quick_start.py command also please tell me what username and password should I set?

Enter username for atlas :-

Enter password for atlas :-

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.

avatar

@Nixon Rodrigues

Please find attached application log file. Following is the output if echo.

echo $MANAGE_LOCAL_SOLR : true

echo $MANAGE_LOCAL_HBASE : true

echo $JAVA_HOME : /usr/lib/jvm/java-8-oracle/jre/bin/java

application-log.txt

avatar

@Nixon Rodrigues

Also look into atlas-propertiws and atlas-env file might be i am missing something there.atlas-applicationproperties.txt, atlas-env.txt

avatar
Expert Contributor

@Naseem Rafique

Your $JAVA_HOME={/usr/lib/jvm/java-8-oracle/jre/bin/java} path is set wrong.

export JAVA_HOME=/usr/lib/jvm/java-8-oracle

http://askubuntu.com/a/175519

Please validated.

avatar
@Nixon Rodrigues

Do I need to install Ambari cluster on EC2 as well in order to make Atlas work or it can work without Ambari?

avatar
Expert Contributor

Atlas can run in standlone env also, Best if you can use HDP with Ambari, where you can use array of hadoop products such hdfs,kafka,sqoop,storm,ranger etc. Ambari will help you a lot in installation and configaration.

avatar
@Nixon Rodrigues

There is progress in the setup, now I am getting following logs when I execute bin/atlas-start.py

configured for local hbase.

hbase started.

configured for local solr.

solr started.

setting up solr collections...

Apache Atlas Server started!!!

But now port 21000 is not open. I have attached the log file, can you look at that.

bin/quick_start.py

Enter username for atlas :-

admin

Enter password for atlas :-

admin

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.

application-log-1.txt

avatar
Expert Contributor

@Naseem Rafique,

From atlas_start.py console logs hbase and solr are started, check whether you are able to create table in hbase

Also Please check whether you are allowed to open port with 21000 range on ec2 instance.

avatar

@Nixon Rodrigues

Yes I am able to create tables and insert data in hbase.

Yes currently all ports are open, but not able to open port 21000.