atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Radley <david_rad...@uk.ibm.com>
Subject Re: Instructions to build & run Atlas in dev environment
Date Tue, 28 Nov 2017 12:37:28 GMT
Hi Madhan,
Thanks for sharing this. Unfortunately I am still getting errors. Any 
thoughts ? 

I get this in the application log when I issue a rest call. 

2017-11-28 12:32:11,055 INFO  - [main:] ~ Not running setup per 
configuration atlas.server.run.setup.on.start. 
(SetupSteps$SetupRequired:189)
2017-11-28 12:32:18,390 WARN  - [main:] ~ Failed to load class class 
com.thinkaurelius.titan.diskstorage.solr.SolrIndex or its referenced 
types; this usually indicates a broken classpath/classloader 
(ReflectiveConfigOptionLoader:229)
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
 
com/thinkaurelius/titan/diskstorage/solr/SolrIndex.<init>(Lcom/thinkaurelius/titan/diskstorage/configuration/Configuration;)V

@162: putfield
  Reason:
    Type 'org/apache/solr/client/solrj/impl/CloudSolrServer' (current 
frame, stack[1]) is not assignable to 
'org/apache/solr/client/solrj/SolrServer'
  Current Frame:
    bci: @162
    flags: { }
    locals: { 'com/thinkaurelius/titan/diskstorage/solr/SolrIndex', 
'com/thinkaurelius/titan/diskstorage/configuration/Configuration', 
'java/lang/String', 'org/apache/solr/client/solrj/impl/CloudSolrServer' }
    stack: { 'com/thinkaurelius/titan/diskstorage/solr/SolrIndex', 
'org/apache/solr/client/solrj/impl/CloudSolrServer' }
  Bytecode:
    0x0000000: 2ab7 008b 2bc6 0007 04a7 0004 03b8 0093
    0x0000010: 2a2b b500 952a 2bb2 0097 03bd 0099 b900
    0x0000020: 9d03 00c0 0099 b800 a1b5 00a3 2a2b b200
    0x0000030: a503 bd00 99b9 009d 0300 c000 a7b6 00ab
    0x0000040: b500 ad2a 2a2b b700 b1b5 00b3 2a2b b200
    0x0000050: b803 bd00 99b9 009d 0300 c000 bab6 00be
    0x0000060: b500 c02a 2bb2 00c2 03bd 0099 b900 9d03
    0x0000070: 00c0 0099 b500 c42a b400 a3b2 00c7 a600
    0x0000080: 2a2b b200 c903 bd00 99b9 009d 0300 c000
    0x0000090: 994d bb00 cb59 2c04 b700 ce4e 2db6 00d1
    0x00000a0: 2a2d b500 d3a7 0057 2ab4 00a3 b200 d6a6
    0x00000b0: 002f bb00 1559 2a2b b700 d9b8 00df 4d2a
    0x00000c0: bb00 e159 2c2b b200 e303 bd00 99b9 009d
    0x00000d0: 0300 c000 e5b7 00e8 b500 d3a7 0021 bb00
    0x00000e0: ea59 bb00 ec59 b700 ed12 efb6 00f3 2ab4
    0x00000f0: 00a3 b600 f6b6 00fa b700 fdbf a700 0d4d
    0x0000100: bb00 ff59 2cb7 0102 bfb1
  Exception Handler Table:
    bci [119, 252] => handler: 255
  Stackmap Table:
    full_frame(@12,{Object[#2],Object[#141]},{})
    same_locals_1_stack_item_frame(@13,Integer)
    same_frame_extended(@168)
    same_frame(@222)
    same_frame(@252)
    same_locals_1_stack_item_frame(@255,Object[#136])
    same_frame(@265)

        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
        at java.lang.Class.getDeclaredFields(Class.java:1916)
        at 
com.thinkaurelius.titan.core.util.ReflectiveConfigOptionLoader.loadSingleClassUnsafe(ReflectiveConfigOptionLoader.java:270)
        at 
com.thinkaurelius.titan.core.util.ReflectiveConfigOptionLoader.loadAllClassesUnsafe(ReflectiveConfigOptionLoader.java:227)
        at 
com.thinkaurelius.titan.core.util.ReflectiveConfigOptionLoader.load(ReflectiveConfigOptionLoader.java:194)
        at 
com.thinkaurelius.titan.core.util.ReflectiveConfigOptionLoader.loadAll(ReflectiveConfigOptionLoader.java:86)
        at 
com.thinkaurelius.titan.diskstorage.configuration.ConfigNamespace.getChild(ConfigNamespace.java:71)
        at 
com.thinkaurelius.titan.diskstorage.configuration.ConfigElement.parse(ConfigElement.java:169)
        at 
com.thinkaurelius.titan.diskstorage.configuration.BasicConfiguration.getAll(BasicConfiguration.java:80)
        at 
com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1344)
        at 
com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:93)


all the best, David. 




From:   Madhan Neethiraj <madhan@apache.org>
To:     "dev@atlas.apache.org" <dev@atlas.apache.org>
Cc:     Ashutosh Mestry <amestry@hortonworks.com>
Date:   28/11/2017 08:20
Subject:        Instructions to build & run Atlas in dev environment



Atlas dev,

 

Please follow the instructions at the end of this email to build & run 
Apache Atlas in your local dev environment.

 

This setup uses the following configuration:

  - Graph DB: titan-0.5.4

  - Embedded HBase

  - Embedded Solr

 

Thanks to Ashutosh for compiling these instructions.

 

Hope this helps.

 

Madhan

 

 

Add the following to a script file, like build-start-atlas.sh, and execute 
the script.

 

 

ATLAS_SOURCE_DIR=/tmp/atlas-source

ATLAS_HOME=/tmp/atlas-bin

 

# Clone Apache Atlas sources

mkdir -p ${ATLAS_SOURCE_DIR}

cd ${ATLAS_SOURCE_DIR}

git clone 
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_atlas.git&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=QhpUQPr5YlG95aAgCvZGStEXHg4hBbSYQ9JkRqR_svY&m=DD5aENG2FF-Ivch0-k5ZtzL9-whaZRKTF-3B4r1BglU&s=knK0SCgqAiFSaZyB8ubpv9OCrs5J8GYM5vZajEeISaw&e=

-b master

 

# build Apache Atlas

cd atlas

mvn clean -DskipTests -DGRAPH_PROVIDER=titan0 install 
-Pdist,embedded-hbase-solr,graph-provider-titan0

 

# Install Apache Atlas

mkdir -p ${ATLAS_HOME}

tar xfz distro/target/apache-atlas-*bin.tar.gz --strip-components 1 -C 
${ATLAS_HOME}

 

# Setup environment and configuration

export MANAGE_LOCAL_HBASE=true

export MANAGE_LOCAL_SOLR=true

export PATH=${PATH}:/tmp/atlas-bin/bin

echo 
atlas.graphdb.backend=org.apache.atlas.repository.graphdb.titan0.Titan0GraphDatabase 
>> ${ATLAS_HOME}/conf/atlas-application.properties

 

# Start Apache Atlas

atlas_start.py

 

# Access Apache Atlas at 
https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A21000&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=QhpUQPr5YlG95aAgCvZGStEXHg4hBbSYQ9JkRqR_svY&m=DD5aENG2FF-Ivch0-k5ZtzL9-whaZRKTF-3B4r1BglU&s=8_4zEx33Kt2ujoOQmhlh0C2yypmXmkE2pHz8u-2M4nA&e=


 

 




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message