wget http://mirror.bit.edu.cn/apache/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz
tar xvzf apache-cassandra-3.11.3-bin.tar.gz
atlas.graph.storage.backend=cassandra
atlas.graph.storage.hostname=
atlas.graph.storage.hints-enabled=true
atlas.graph.storage.port=
atlas.audit.hbase.zookeeper.quorum=:
atlas.audit.hbase.zookeeper.znode.parent=/hbase-unsecure # 如果不使用HBase可以忽略此行
其中,
是Cassandra集群中的主机名或IP地址,
是Cassandra使用的端口号,
是ZooKeeper集群中的主机名或IP地址,
是ZooKeeper使用的端口号。
bin/atlas_start.sh
curl -X POST -H "Content-Type: application/json" -d '{"typeName":"myType", "superTypes":["DataSet"],"attributeDefinitions":[{"name":"myAttr","dataTypeName":"string","multiplicity":"required"}]}' http://localhost:21000/api/atlas/v2/types?type=TRAIT