Skip to content
Permalink
Browse files
remove --protocol args (#64)
* remove --protocol args

Change-Id: Ibc8af9432a8f154503a2b372e3726cf2dfdbd76e
  • Loading branch information
zhoney committed Nov 19, 2020
1 parent f046c33 commit bc47a09d1372be94d1e0c8cd2056f5e9d2d72ccc
Showing 1 changed file with 17 additions and 15 deletions.
@@ -63,9 +63,8 @@ Usage: hugegraph [options] [command] [command options]
- --user,当 HugeGraph-Server 开启认证时,传递用户名
- --password,当 HugeGraph-Server 开启认证时,传递用户的密码
- --timeout,连接 HugeGraph-Server 时的超时时间,默认是 30s
- --protocol,连接 HugeGraph-Server 使用的协议,允许的值 [http, https],默认为 http
- --trust-store-file,当 --protocol 是 https 时,HugeGraph-Client 使用的 truststore 文件,默认为空
- --trust-store-password,当 --protocol 是 https 时,HugeGraph-Client 使用的 truststore 的密码,默认为空
- --trust-store-file,证书文件的路径,当 --url 使用 https 时,HugeGraph-Client 使用的 truststore 文件,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件 conf/hugegraph.truststore
- --trust-store-password,证书文件的密码,当 --url 使用 https 时,HugeGraph-Client 使用的 truststore 的密码,默认为空,代表使用 hugegraph-tools 内置的 truststore 文件的密码 hugegraph

上述全局变量,也可以通过环境变量来设置。一种方式是在命令行使用 export 设置临时环境变量,在该命令行关闭之前均有效

@@ -77,7 +76,6 @@ Usage: hugegraph [options] [command] [command options]
--user | HUGEGRAPH_USERNAME | export HUGEGRAPH_USERNAME=admin
--password | HUGEGRAPH_PASSWORD | export HUGEGRAPH_PASSWORD=test
--timeout | HUGEGRAPH_TIMEOUT | export HUGEGRAPH_TIMEOUT=30
--protocol | HUGEGRAPH_PROTOCOL | export HUGEGRAPH_PROTOCOL=http
--trust-store-file | HUGEGRAPH_TRUST_STORE_FILE | export HUGEGRAPH_TRUST_STORE_FILE=/tmp/trust-store
--trust-store-password | HUGEGRAPH_TRUST_STORE_PASSWORD | export HUGEGRAPH_TRUST_STORE_PASSWORD=xxxx

@@ -92,7 +90,6 @@ Usage: hugegraph [options] [command] [command options]
#export HUGEGRAPH_USERNAME=
#export HUGEGRAPH_PASSWORD=
#export HUGEGRAPH_TIMEOUT=
#export HUGEGRAPH_PROTOCOL=
#export HUGEGRAPH_TRUST_STORE_FILE=
#export HUGEGRAPH_TRUST_STORE_PASSWORD=
```
@@ -167,6 +164,8 @@ Usage: hugegraph [options] [command] [command options]
- --target-username,访问目标图的用户名
- --target-password,访问目标图的密码
- --target-timeout,访问目标图的超时时间
- --target-trust-store-file,访问目标图使用的 truststore 文件
- --target-trust-store-password,访问目标图使用的 truststore 的密码
- --directory 或者 -d,迁移过程中,存储源图的 schema 或者 data 的目录,本地目录时,默认为'./{graphName}',HDFS 时,默认为 '{fs.default.name}/{graphName}'
- --huge-types 或者 -t,要迁移的数据类型,逗号分隔,可选值为 'all' 或者 一个或多个 [vertex,edge,vertex_label,edge_label,property_key,index_label] 的组合,'all' 代表全部6种类型,即顶点、边和所有schema
- --log 或者 -l,指定日志目录,默认为当前目录
@@ -217,9 +216,6 @@ Usage: hugegraph [options] [command] [command options]
Default: hugegraph
--password
Password of user
--protocol
The Protocol of HugeGraph-Server, allowed values are: http or https
Default: http
--timeout
Connection timeout
Default: 30
@@ -234,7 +230,7 @@ Usage: hugegraph [options] [command] [command options]
The URL of HugeGraph-Server
Default: http://127.0.0.1:8080
--user
User Name
Name of user
Commands:
graph-list List all graphs
Usage: graph-list
@@ -331,7 +327,7 @@ Usage: hugegraph [options] [command] [command options]
Gremlin script to be executed, exclusive to --file
backup Backup graph schema/data. If directory is on HDFS, use -D to
set HDFS params if needed. For exmaple:
set HDFS params. For exmaple:
-Dfs.default.name=hdfs://localhost:9000
Usage: backup [options]
Options:
@@ -466,18 +462,24 @@ Usage: hugegraph [options] [command] [command options]
Split size of shard
Default: 1048576
--target-graph
The target graph to migrate
The name of target graph to migrate
Default: hugegraph
--target-password
The password of target graph
The password of target graph to migrate
--target-timeout
The timeout to connect target graph
The timeout to connect target graph to migrate
Default: 0
--target-trust-store-file
The trust store file of target graph to migrate
Default: <empty string>
--target-trust-store-password
The trust store password of target graph to migrate
Default: <empty string>
--target-url
The target graph url to migrate
The url of target graph to migrate
Default: http://127.0.0.1:8081
--target-username
The username of target graph
The username of target graph to migrate
-D
HDFS config parameters
Syntax: -Dkey=value

0 comments on commit bc47a09

Please sign in to comment.