답변

0

는 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') 
+0

예, datastax 커뮤니티에서 s3와 관련된이 문서를 추가했습니다. https://docs.datastax.com/en/latest-dse/datastax_enterprise/graph/dgl/dglS3.html –

관련 문제