0
aws-s3 (csv 형식)의 데이터가 있고 그래프 로더를 사용하여 dse 그래프에 해당 데이터를로드하려고합니다. 나는이 주제에 관해서는 찾지 만 아무것도 찾지 못했다. dse graph Loader를 사용할 수 있습니까? 여기dse의 aws-s3에서 CSV 데이터로드 그래프 로더
aws-s3 (csv 형식)의 데이터가 있고 그래프 로더를 사용하여 dse 그래프에 해당 데이터를로드하려고합니다. 나는이 주제에 관해서는 찾지 만 아무것도 찾지 못했다. dse graph Loader를 사용할 수 있습니까? 여기dse의 aws-s3에서 CSV 데이터로드 그래프 로더
는 CSV 년대에서 읽을 때 매핑 그래프 로더를 찾는 방법은 다음과 같습니다
: S3가 비슷해야https://docs.datastax.com/en/latest-dse/datastax_enterprise/graph/dgl/dglCSV.html
여기에 HDFS의 예 (CSV 파일도)이다 (다만 dfs_url를 교체
// Configures the data loader to create the schema
config create_schema: true, load_new: true, preparation: true
// Define the data input sources
// dfs_uri specifies the URI to the HDFS directory in which the files are stored.
dfs_uri = 'hdfs://host:port/path/'
authorInput = File.csv(dfs_uri + 'author.csv.gz').gzip().delimiter('|')
//Specifies what data source to load using which mapper (as defined inline)
load(authorInput).asVertices
{ label "author" key "name" }
// graphloader call
./graphloader myMap.groovy -graph testHDFS -address localhost
// start gremlin console and check the data
bin/dse gremlin-console
:remote config reset g testHDFS.g
schema.config().option('graph.schema_mode').set('Development')
g.V().hasLabel('author')
예, datastax 커뮤니티에서 s3와 관련된이 문서를 추가했습니다. https://docs.datastax.com/en/latest-dse/datastax_enterprise/graph/dgl/dglS3.html –