You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,8 @@ it includes 5+ main modules.
20
20
21
21
## Usage
22
22
23
-
-[hugegraph-loader](./hugegraph-loader): We can use `docker run -itd --name loader hugegraph/loader` to quickly start [loader,](https://hub.docker.com/r/hugegraph/loader) or we can follow [this](./hugegraph-loader/README.md#212-docker-compose) to use docker-compose to start `loader`with `server`. And we can find more details in the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/).
24
-
-[hugegraph-hubble](./hugegraph-hubble): We can use `docker run -itd --name=hubble -p 8088:8088 hugegraph/hubble` to quickly start [hubble,](https://hub.docker.com/r/hugegraph/hubble) or we can follow [this](hugegraph-hubble/README.md#quick-start) to use docker-compose to start `hubble`with `server`. And we can find more details in the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/).
23
+
-[hugegraph-loader](./hugegraph-loader): We can follow the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/) to learn how to quickly start with `loader`.
24
+
-[hugegraph-hubble](./hugegraph-hubble): We can follow the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/) to learn how to quickly start with `hubble`.
25
25
-[hugegraph-client](./hugegraph-client): We can follow the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-client/) to learn how to quickly start with `client`.
Copy file name to clipboardExpand all lines: hugegraph-hubble/README.md
+82-24Lines changed: 82 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -16,30 +16,88 @@ graph data load, schema management, graph relationship analysis, and graphical d
16
16
17
17
## Quick Start
18
18
19
-
We can quickly start `hubble` in two ways:
20
-
21
-
1. We can use `docker run -itd --name=hubble -p 8088:8088 hugegraph/hubble` to quickly start [hubble](https://hub.docker.com/r/hugegraph/hubble).
22
-
2. Or we can use the `docker-compose.yml` to start `hubble` with `hugegraph-server`. If we set `PRELOAD=true`, we can preload the example graph when starting `hugegraph-server`:
23
-
24
-
```yaml
25
-
version: '3'
26
-
services:
27
-
server:
28
-
image: hugegraph/hugegraph
29
-
container_name: graph
30
-
#environment:
31
-
# - PRELOAD=true
32
-
ports:
33
-
- 8080:8080
34
-
35
-
hubble:
36
-
image: hugegraph/hubble
37
-
container_name: hubble
38
-
ports:
39
-
- 8088:8088
40
-
```
41
-
42
-
Then we should follow the [hubble doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/#3platform-workflow) to create the graph.
19
+
There are three ways to get HugeGraph-Loader:
20
+
21
+
- Download the Toolchain binary package
22
+
- Source code compilation
23
+
- Use Docker image (Convenient for Test/Dev)
24
+
25
+
And you can find more details in the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/#2-get-hugegraph-loader)
26
+
27
+
### 1. Download the Toolchain binary package
28
+
29
+
`hubble` is in the `toolchain` project. First, download the binary tar tarball
Compile `hubble`. It depends on the loader and client, so you need to build these dependencies in advance during the compilation process (you can skip this step later).
### 3. User docker image (Convenient for Test/Dev)
92
+
93
+
We can use `docker run -itd --name=hubble -p 8088:8088 hugegraph/hubble` to quickly start [hubble](https://hub.docker.com/r/hugegraph/hubble). An you can visit [hubble deploy doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/#2-deploy) for more details.
94
+
95
+
Then we should follow the [hubble workflow doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/#3platform-workflow) to create the graph.
96
+
97
+
> Note:
98
+
> 1. The docker image of hugegraph-hubble is a convenience release, but not **official distribution** artifacts. You can find more details from [ASF Release Distribution Policy](https://infra.apache.org/release-distribution.html#dockerhub).
99
+
>
100
+
> 2. Recommand to use `release tag`(like `1.0.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
Use the command `docker-compose up -d` to deploy `loader` with `server` and `hubble`.
49
+
Due to the license limitation of the `Oracle OJDBC`, you need to manually install ojdbc to the local maven repository. Visit the [Oracle jdbc downloads page](https://www.oracle.com/database/technologies/appdev/jdbc-drivers-archive.html). Select Oracle Database 12c Release 2 (12.2.0.1) drivers, as shown in the following figure.
45
50
46
-
### 2.2 Load data with docker container
51
+
After opening the link, select “ojdbc8.jar”.
47
52
48
-
#### 2.2.1 load data with docker
49
-
50
-
> If the `loader` and `server` is in the same docker network (for example, you deploy `loader` and `server` with `docker-compose`), we can set `-h {server_container_name}`. In our example, the container name of `server` is `graph`
51
-
>
52
-
> If `loader` is deployed alone, the `-h` should be set to the ip of the host of `server`. Other parameter description is [here](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/#341-parameter-description)
53
+
Install ojdbc8 to the local maven repository, enter the directory where ojdbc8.jar is located, and execute the following command.
If you want to check the edges, use `curl "http://localhost:8080/graphs/hugegraph/graph/edges" | gunzip`
70
+
Use the command `docker run -itd --name loader hugegraph/loader` to start loader.
94
71
95
-
#### 2.2.2 enter the docker container to load data
72
+
If you want to load your data, you can mount the data folder like `-v /path/to/data/file:/loader/file`
96
73
97
-
If you want to do some additional operation in the container, you can enter the container as follows:
98
74
99
-
```bash
100
-
docker exec -it loader bash
101
-
```
75
+
#### 2.3.2 Docker-compose
102
76
103
-
Then, you can load data as follows:
77
+
The example `docker-compose.yml` is [here](./docker/example/docker-compose.yml). Use the command `docker-compose up -d` to deploy `loader` with `server` and `hubble`.
> 1. The docker image of hugegraph-loader is a convenience release, not **official distribution** artifacts. You can find more details from [ASF Release Distribution Policy](https://infra.apache.org/release-distribution.html#dockerhub).
81
+
>
82
+
> 2. Recommand to use `release tag`(like `1.0.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
More details is in the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/)
131
106
132
-
## 4. Building
133
-
134
-
You can also build the `loader` by yourself.
135
-
136
-
Required:
107
+
### 3.2 Load data with docker
137
108
138
-
- Java 8
139
-
- Maven 3.6+
140
-
141
-
To build without executing tests:
109
+
> If the `loader` and `server` is in the same docker network (for example, you deploy `loader` and `server` with `docker-compose`), we can set `-h {server_container_name}`. In our example, the container name of `server` is `graph`
110
+
>
111
+
> If `loader` is deployed alone, the `-h` should be set to the ip of the host of `server`. Other parameter description is [here](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/#341-parameter-description)
142
112
113
+
Visit [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/#45-use-docker-to-load-data) for more details.
0 commit comments