You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "gudehuang (via GitHub)" <gi...@apache.org> on 2024/04/19 09:08:51 UTC
[I] [Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' [incubator-hugegraph-toolchain]
gudehuang opened a new issue, #602:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/602
### Bug Type (问题类型)
exception / error (异常报错)
### Before submit
- [X] I had searched in the [issues](https://github.com/apache/hugegraph-toolchain/issues) and found no similar issues.
### Environment (环境信息)
- hugegraph 版本:1.2.0
- hugegraph-hubble版本: 1.5.0

>通过docker部署
### Expected & Actual behavior (期望与实际表现)
执行创建顶点语句,报错 Undefined vertex label: '??'
```
g.addV('地点').property(id, '17700').property('name', '海南')
```

我使用HugeGraph Java Client 执行同样的语句能成功.
### 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
Re: [I] [Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' [incubator-hugegraph-toolchain]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #602:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/602#issuecomment-2066266074
<!-- Answer -->
To address the "Undefined vertex label: '?'" error you're encountering in Hubble 1.5.0, it's crucial to ensure that the vertex label '地点' is correctly defined in your graph schema. This error typically occurs if the vertex label hasn't been predefined or there's a mismatch in the label name. Here are the steps to resolve this issue:
1. **Verify Vertex Label Definition**: Make sure the vertex label '地点' is properly defined in your schema. You can use HugeGraph's schema management tools or API to define or check the vertex label.
2. **Check Encoding and Locale Settings**: Ensure your environment supports UTF-8 encoding and, if necessary, set the locale to support Chinese characters (e.g., zh_CN.UTF-8). This is important for Hubble to correctly parse and recognize Chinese characters.
3. **Ensure Compatibility**: Confirm that your Hubble version is compatible with the HugeGraph server. Version mismatches can lead to unexpected errors, including issues with character encoding.
4. **Use Schema Validation Features**: If available, utilize HugeGraph's schema validation to identify any inconsistencies or issues in your graph schema that might be causing errors.
For future operations, consider using HugeGraph-Loader for data import tasks, as it supports a wide range of data sources and ensures compatibility with your HugeGraph server. Regularly review your graph schema, check system settings for encoding and locale support, verify compatibility before updates, and monitor logs for potential issues.
For detailed steps on schema definition and validation, refer to the HugeGraph documentation and API guides.
## Sources
- [hugegraph-hubble/hubble-be/src/main/resources/i18n/messages_zh_CN.properties](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-be/src/main/resources/i18n/messages_zh_CN.properties)
- [content/cn/docs/quickstart/hugegraph-loader.md](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/quickstart/hugegraph-loader.md)
- [hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/HugeGraph.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/HugeGraph.java)
- [hugegraph-client/src/test/java/org/apache/hugegraph/api/VertexLabelApiTest.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/test/java/org/apache/hugegraph/api/VertexLabelApiTest.java)
- [hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/VertexLabelCoreTest.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/VertexLabelCoreTest.java)
- [hugegraph-loader/src/test/resources/customized_delimiter_in_csv_file/schema.groovy](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-loader/src/test/resources/customized_delimiter_in_csv_file/schema.groovy)
- [config.toml](https://github.com/apache/incubator-hugegraph-doc/blob/master/config.toml)
<!-- Dosu Comment Footer -->
<details>
<summary>
#### About Dosu
</summary>
This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
</details>
--
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
Re: [I] [Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' [incubator-hugegraph-toolchain]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #602:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/602#issuecomment-2066241658
> 我使用HugeGraph Java Client,执行以下语句是成功的,元数据已经创建好了.
>
> ```java
> GremlinManager gremlin=hugeClient.gremlin();
> gremlin.gremlin("g.addV('地点').property(id, '17700').property('name', '海南')").execute();
> ```
@gudehuang First, please use the **apache release version** https://hugegraph.apache.org/docs/download/download/ or u could use [docker version](https://hub.docker.com/r/hugegraph/hubble) (Non-apache versions are no longer maintained)
And u could use [rest-api](https://hugegraph.apache.org/docs/clients/restful-api/propertykey/#123-get-all-propertykeys) to check the data consistency
@dosu-bot The possible reason is related to the parsing of Chinese characters by the backend of the Hubble, which appears to have garbled characters. You can also prompt users to use the latest version and provide a minimum reproducible example and steps
--
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
Re: [I] [Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' [incubator-hugegraph-toolchain]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #602:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/602#issuecomment-2066156042
<!-- Greeting -->
你好,@gudehuang!我是 [Dosu](https://dosu.dev),一个可以帮助你解决问题、回答问题并成为贡献者的机器人。我在这里帮助你,同时等待人类维护者的回应。我会立即查看你的问题,并很快给你一个完整的回答。
--
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
Re: [I] [Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' [incubator-hugegraph-toolchain]
Posted by "gudehuang (via GitHub)" <gi...@apache.org>.
gudehuang commented on issue #602:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/602#issuecomment-2066201160
我使用HugeGraph Java Client,执行以下语句是成功的,元数据已经创建好了.
```java
GremlinManager gremlin=hugeClient.gremlin();
gremlin.gremlin("g.addV('地点').property(id, '17700').property('name', '海南')").execute();
```
--
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