Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] how to use hugegraph-tools to create new graph instance #461

Closed
1 task done
dongma opened this issue May 14, 2023 · 4 comments
Closed
1 task done

[Question] how to use hugegraph-tools to create new graph instance #461

dongma opened this issue May 14, 2023 · 4 comments

Comments

@dongma
Copy link

dongma commented May 14, 2023

Problem Type (问题类型)

None

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (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)
  • Backend: RocksDB x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges

Your Question (问题描述)

./bin/hugegraph graph-create --name=gremlin --file=conf/hugegraph.truststore
Failed to execute Was passed main parameter '--name=gremlin' but no main parameter was defined in your arg class
Type y(yes) to print exception stack[default n]?
y
com.beust.jcommander.ParameterException: Was passed main parameter '--name=gremlin' but no main parameter was defined in your arg class
at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:936)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:752)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:787)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parse(JCommander.java:319)
at org.apache.hugegraph.cmd.HugeGraphCommand.parseCommand(HugeGraphCommand.java:486)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:405)
at org.apache.hugegraph.cmd.HugeGraphCommand.main(HugeGraphCommand.java:544)

Or run command with:
./bin/hugegraph graph-create --name gremlin --file conf/hugegraph.truststore
Failed to execute The value 'hugegraph' of option 'store' conflicts with existed graph
Type y(yes) to print exception stack[default n]?
y
class java.lang.IllegalArgumentException: The value 'hugegraph' of option 'store' conflicts with existed graph
at org.apache.hugegraph.exception.ServerException.fromResponse(ServerException.java:45)
at org.apache.hugegraph.client.RestClient.checkStatus(RestClient.java:91)
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:232)
at org.apache.hugegraph.api.graphs.GraphsAPI.create(GraphsAPI.java:68)
at org.apache.hugegraph.driver.GraphsManager.createGraph(GraphsManager.java:37)
at org.apache.hugegraph.manager.GraphsManager.create(GraphsManager.java:34)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:272)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:406)
at org.apache.hugegraph.cmd.HugeGraphCommand.main(HugeGraphCommand.java:544)

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

@dongma dongma changed the title [Question] how hugegraph create new graph instance with hugegraph tools [Question] how to use hugegraph-tools to create new graph instance May 14, 2023
@imbajin imbajin transferred this issue from apache/incubator-hugegraph May 14, 2023
@imbajin
Copy link
Member

imbajin commented May 14, 2023

Currently the tools doesn't support the dynamic graph creation well, consider enhance it in next release (would u like to improve it?)

@dongma
Copy link
Author

dongma commented May 14, 2023

Does the java api support graph creation in current release, I intent to practice gremlin syntax for company business explore with demo dataset.
the default hugegraph instance statisfies my requirement now, Thanks for your invitation (there are many to do list on workdays [笑哭]).
Thanks for your reply on weekend, have a good night!

@imbajin
Copy link
Member

imbajin commented May 14, 2023

yep, could refer this issue apache/incubator-hugegraph#1995 & PR apache/incubator-hugegraph#1065

and hope u could some doc or feedback for it~

@dongma dongma closed this as completed May 14, 2023
@dongma
Copy link
Author

dongma commented May 14, 2023

close my question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants