You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "zhenyuT (via GitHub)" <gi...@apache.org> on 2023/05/11 17:03:17 UTC

[GitHub] [incubator-hugegraph-doc] zhenyuT opened a new issue, #216: [Bug] 跟着hugegraph-loader的文档导入数据报错:Unrecognized field "mapping"

zhenyuT opened a new issue, #216:
URL: https://github.com/apache/incubator-hugegraph-doc/issues/216

   ### Bug Type (问题类型)
   
   other exception / error (其他异常报错)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.0.0 (Apache Release Version)
   
   ### Expected & Actual behavior (期望与实际表现)
   
   按照https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/#4-complete-example
   文档中的操作,执行bin/hugegraph-loader.sh报错
   
   发现是文档里面的配置有些小问题:
   1、example/file/struct.json配置里面的"mapping"改为“field_mapping”
   不然会报Unrecognized field "mapping"的错
   2、example/file/schema.groovy里面的
   ```
   schema.indexLabel("personByName").onV("person").by("name").secondary().ifNotExist().create();
   ```
   这一行要去掉,不然会报:Failed to load, cause: No need to build index on properties [name], because they contains all primary keys [name] for vertex label 'person'
   3、example/file/struct.json配置里面的path和实际的文件路径不符,example/xxx改为example/file/xxx
   4、example/file/struct.json配置里面的example/vertex_software.text改为example/vertex_software.txt
   
   ![276754a523cebefd07503c9bc5e23d84](https://github.com/apache/incubator-hugegraph/assets/9477681/ce4cb7d8-5e21-4073-a9e5-26b99f78104f)
   ![331090911fd7b1549239c7d71d89dea7](https://github.com/apache/incubator-hugegraph/assets/9477681/0a4476eb-041d-4a30-9dd2-24c6f40e64b0)
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph-doc] imbajin closed issue #216: [Bug] 跟着hugegraph-loader的文档导入数据报错:Unrecognized field "mapping"

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #216: [Bug] 跟着hugegraph-loader的文档导入数据报错:Unrecognized field "mapping"
URL: https://github.com/apache/incubator-hugegraph-doc/issues/216


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org