Hi Keong,
Sorry, the *graphadmin* & *resource* java process is failing with the same
error. I did not wait enough to get the Exceptions. Kindly refer the below
exception trace and my properties file contents for your reference.
Please let me know, if the properties file content looks ok? Am i missing
something?
Could you help me understand, what does the *Step.8* means "*Run GenTester,
using the target dir under aai-resources:*" ?
Should i change the directory to *~/src/aai/resources/target* and then
execute GenTester?
Regards
Vivek
*Graphadmin Exception trace*
Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Temporary
failure in storage backend
at
org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxKeyColumnValueStore.getNamesSlice(AstyanaxKeyColumnValueStore.java:161)
at
org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxKeyColumnValueStore.getNamesSlice(AstyanaxKeyColumnValueStore.java:115)
at
org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxKeyColumnValueStore.getSlice(AstyanaxKeyColumnValueStore.java:104)
at
org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller$1.call(KCVSLog.java:783)
at
org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller$1.call(KCVSLog.java:780)
at
org.janusgraph.diskstorage.util.BackendOperation.execute(BackendOperation.java:148)
at
org.janusgraph.diskstorage.util.BackendOperation$1.call(BackendOperation.java:162)
at
org.janusgraph.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:69)
... 10 common frames omitted
*Caused by:
com.netflix.astyanax.connectionpool.exceptions.BadRequestException:
BadRequestException: [host=127.0.0.1(127.0.0.1):9160, latency=0(0),
attempts=1]InvalidRequestException(why:Keyspace onap does not exist)*
*Here is my 6 properties file 'storage.* property contents*
=============================================
*$ cat
~/src/aai/resources/aai-resources/src/main/resources/etc/appprops/janusgraph-cached.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev1.dev
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
storage.cassandra.keyspace=onap
*$ cat
~/src/aai/resources/aai-resources/src/main/resources/etc/appprops/janusgraph-realtime.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev1.dev
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
storage.cassandra.keyspace=onap
*$ cat
~/src/aai/traversal/aai-traversal/src/main/resources/etc/appprops/janusgraph-cached.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev02
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
#storage.backend=cql
#storage.hostname=host1,host2,host3
#storage.cql.replication-strategy-class=NetworkTopologyStrategy
#storage.cql.replication-strategy-options=options
#storage.cql.replication-factor=3
#storage.cql.keyspace=aaigraph_single_dc
#storage.cql.only-use-local-consistency-for-system-operations=true
#storage.cql.cluster-name=clusterName
#storage.cql.local-datacenter=dataCenterName
#storage.cql.read-consistency-level=QUORUM
#storage.cql.write-consistency-level=QUORUM
#storage.connection-timeout=100000
storage.cassandra.keyspace=onap
*$ cat
~/src/aai/traversal/aai-traversal/src/main/resources/etc/appprops/janusgraph-realtime.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev02
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
#storage.backend=cql
#storage.hostname=host1,host2,host3
#storage.cql.replication-strategy-class=NetworkTopologyStrategy
#storage.cql.replication-strategy-options=options
#storage.cql.replication-factor=3
#storage.cql.keyspace=aaigraph_single_dc
#storage.cql.only-use-local-consistency-for-system-operations=true
#storage.cql.cluster-name=clusterName
#storage.cql.local-datacenter=localDataCenter
#storage.cql.read-consistency-level=QUORUM
#storage.cql.write-consistency-level=QUORUM
#storage.connection-timeout=100000
storage.cassandra.keyspace=onap
*$ cat
~/src/aai/graphadmin/src/main/resources/etc/appprops/janusgraph-cached.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev1.dev
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
#storage.backend=cql
#storage.hostname=host1,host2,host3
#storage.cql.replication-strategy-class=NetworkTopologyStrategy
#storage.cql.replication-strategy-options=options
#storage.cql.replication-factor=3
#storage.cql.keyspace=aaigraph_single_dc
#storage.cql.only-use-local-consistency-for-system-operations=true
#storage.cql.cluster-name=clusterName
#storage.cql.local-datacenter=dataCenter
#storage.cql.read-consistency-level=QUORUM
#storage.cql.write-consistency-level=QUORUM
#storage.connection-timeout=100000
storage.cassandra.keyspace=onap
*$ cat
~/src/aai/graphadmin/src/main/resources/etc/appprops/janusgraph-realtime.properties
| grep 'storage.'*
storage.backend=cassandra
storage.hostname=localhost
storage.lock.wait-time=300
storage.hbase.table=aaigraph-dev1.dev
storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure
#storage.backend=cql
#storage.hostname=host1,host2,host3
#storage.cql.replication-strategy-class=NetworkTopologyStrategy
#storage.cql.replication-strategy-options=options
#storage.cql.replication-factor=3
#storage.cql.keyspace=aaigraph_single_dc
#storage.cql.only-use-local-consistency-for-system-operations=true
#storage.cql.cluster-name=clusterName
#storage.cql.local-datacenter=dataCenter
#storage.cql.read-consistency-level=QUORUM
#storage.cql.write-consistency-level=QUORUM
#storage.connection-timeout=100000
storage.cassandra.keyspace=onap
#
cd ~/src/aai/graphadmin
mvn -PrunAjsc -Dstart-class=org.onap.aai.schema.GenTester \
-Daai.schema.version=0.0.1-TEST-SNAPSHOT -DskipTests \
-Dcheckstyle.skip=true -DAJSC_HOME=$HOME/src/aai/graphadmin \
-DBUNDLECONFIG_DIR=src/main/resources
.....
[DEBUG] Adding project dependency artifact: plexus-utils to classpath
[DEBUG] joining on thread
Thread[org.onap.aai.schema.GenTester.main(),5,org.onap.aai.schema.GenTester]
[DEBUG] Setting accessibility to true in order to invoke main().
---- NOTE --- about to open graph (takes a little while)--------;
-- Loading new schema elements into JanusGraph --
-- graph commit
-- graph shutdown
On Tue, Jul 16, 2019 at 10:24 PM Vivekanandan Muthukrishnan via
Lists.Onap.Org <[email protected]> wrote:
> Hi Keong,
>
> Thanks for the support. I missed defining storage.cassandra.keyspace=onap,
> after defining this property everything came up. I can access the AAI
> resource service.
>
> Thanks & Regards
> Vivek
>
> *Log snippets for your reference:*
>
>
> *$ grep -ri --exclude-dir=target 'storage.cassandra.keyspace' * | grep
> '.properties'*
> graphadmin/src/main/resources/etc/appprops/janusgraph-realtime.properties:storage.cassandra.keyspace=onap
>
> graphadmin/src/main/resources/etc/appprops/janusgraph-cached.properties:storage.cassandra.keyspace=onap
>
> resources/aai-resources/src/main/resources/etc/appprops/janusgraph-realtime.properties:storage.cassandra.keyspace=onap
>
> resources/aai-resources/src/main/resources/etc/appprops/janusgraph-cached.properties:storage.cassandra.keyspace=onap
>
> traversal/aai-traversal/src/main/resources/etc/appprops/janusgraph-realtime.properties:storage.cassandra.keyspace=onap
>
> traversal/aai-traversal/src/main/resources/etc/appprops/janusgraph-cached.properties:storage.cassandra.keyspace=onap
>
> *$ curl -s -k -X GET
> https://localhost:8447/aai/v11/cloud-infrastructure/cloud-regions/
> <https://localhost:8447/aai/v11/cloud-infrastructure/cloud-regions/> -u
> "AAI:AAI" -H X-TransactionId:test-001 -H X-FromAppId:AAI -H
> Content-Type:application/json -H Accept:application/json | python -m
> json.tool *
> {
> "requestError": {
> "serviceException": {
> "messageId": "SVC3001",
> "text": "Resource not found for %1 using id %2 (msg=%3)
> (ec=%4)",
> "variables": [
> "GET",
> "cloud-infrastructure/cloud-regions/",
> "Node Not Found:No Node of type cloud-region found at:
> cloud-infrastructure/cloud-regions/",
> "ERR.5.4.6114"
> ]
> }
> }
> }
>
> On Tue, Jul 16, 2019 at 7:31 PM Keong Lim <[email protected]> wrote:
>
>> Hi Vivek,
>>
>> Deep inside the error message of the graphadmin service, the root cause
>> is shown as:
>>
>> Caused by:
>> com.netflix.astyanax.connectionpool.exceptions.BadRequestException:
>> BadRequestException: [host=127.0.0.1(127.0.0.1):9160, latency=1(1),
>> attempts=1]InvalidRequestException(why:Keyspace onap does not exist)
>>
>> So that means your setup was not completed using the configuration at
>> step 7 of the Setup guide:
>> https://wiki.onap.org/display/DW/AAI+Developer+Environment+Setup+-+Dublin
>>
>> i.e.
>> storage.cassandra.keyspace=onap
>>
>> Did you get a success at step 9 of the setup guide?
>>
>> If you continue to have problems, please come to either:
>> https://wiki.onap.org/display/DW/AAI+Weekly+Status+Meeting
>> https://wiki.onap.org/display/DW/AAI+Developers+Meeting
>>
>> so the team can try to help you further.
>>
>>
>> Keong
>>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18115): https://lists.onap.org/g/onap-discuss/message/18115
Mute This Topic: https://lists.onap.org/mt/32488645/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-