Support Questions

Find answers, ask questions, and share your expertise

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

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

@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.

@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

@Nixon Rodrigues

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

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.

@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?

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.

@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

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.

@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.

Hello @Nixon Rodrigues

Thanks for your help, it works with mvn clean package -Pdist,berkeley-elasticsearch

Now I am trying to load code base in eclipse and all dependencies have been resolved but in atlas-webapp.

In setup code in eclipse guide following line is mention:

a. File - Import - Maven - Existing Maven Projects b. Browse to your Atlas folder c. Uncheck the root project and non-Java projects such as dashboardv2, docs and distro, then click Finish

But if I don't import dashboardv2 in eclipse atlas-webapp gives following error:

Failed to execute goal on project atlas-webapp: Could not resolve dependencies for project org.apache.atlas:atlas-webapp:war:0.9-incubating-SNAPSHOT: Failure to find org.apache.atlas:atlas-dashboardv2:war:0.9-incubating-SNAPSHOT

Can you guide me on this?

Expert Contributor

@Naseem Rafique Good Atlas is up and working with berkeley-elasticsearch profile , hbase-solr profile also should work.

I use ideaInteliJ as IDE and do packaging from cmd line, so not aware of this eclipse issue,

I would recommend that you close this thread and open a new topic of eclipse issue where developer having good knowledge.

Nixon

New Contributor

Hi Guys, i am trying same thing on my MAC OSX EI Capitan 10.11.3 with 8GB RAM, SSD, when i run atlas_start.py it just says "Apache Atlas Server started!!!" no other message and then when i run quick_start.py script it ask for user name and password but on type creation throws an exception. for details look at screen-shot-2017-04-17-at-115554-am.png