[ 
https://issues.apache.org/jira/browse/ATLAS-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624804#comment-16624804
 ] 

Ayush Nigam commented on ATLAS-2881:
------------------------------------

[~madhan.neethiraj] [[email protected]] [~nagaraj_janardhana] [~toopt4]

I am planning to work on this feature and have thought to implement following 
types for cassandra. Let me know your thoughts.

I propose following type model

enum:

 1 clustering_order:
     asc,
     desc

Types:

 1. cassandra_cluster

 2. cassandra_tokenrange

 3. cassnadra_host type

 4. cassandra_keyspace

 5. cassandra_table type

 6. cassandra_column

 7. cassandra_index

 8. cassandra_materialized_view

 

With attributes as,

 

1. cassandra_cluster:

    cluster_name : string
    cluster_partitioner : string
    token_ranes : array<cassandra_token_ranges>
    keyspaces : array<cassandra_keyspace>
    hosts : array<cassandra_host>

2. cassandra_tokenrange

    start_type : string
    start_value : string
    end_type : string
    end_value : string
    isWrappedAround : Boolean

3. cassnadra_host

    datacenter : string
    rack : string
    address : string
    cassandra_version : string
    schema_version : string
    isUp : Boolean

4. cassandra_keyspace

    name : string
    create_keyspace_statement : string
    tables : array<cassandra_table>
    replication_factor : int
    replication_class : string
    isDurableWrite : boolean
    isVirtual : boolean
    materialized_views : array<cassandra_materialized_view>

5. cassandra_table

    uuid : string
    columns : array<cassandra_column>
    keyspace : string
    name : string
    partition_keys : array<cassandra_column>
    indices : array<cassandra_index>
    clustering_columns : array<cassandra_column>
    create_keyspace_statement : string
    clustering_order : array<clustering_order>
    materialized_views : array<cassandra_materialized_view>


6. cassandra_column

    name : string
    typeName : string
    isCollection : boolean
    isStatic : boolean
    isFrozen : boolean
    table : cassandra_table

7. cassandra_index

    name : string
    kindName : string
    target : string
    table : cassandra_table

8. cassandra_materialized_view

  [ ** supertype will be cassandra_table and base_table : string will be extra 
column]




We can add more info such as UDF,UDAF if needed.

> Cassandra metadata ingestion to Atlas
> -------------------------------------
>
>                 Key: ATLAS-2881
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2881
>             Project: Atlas
>          Issue Type: New Feature
>            Reporter: t oo
>            Priority: Major
>             Fix For: 1.2.0
>
>
> Cassandra metadata ingestion to Atlas
>  
> Ability to import keyspace metadata from  Cassandra into Atlas



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to