Skip to content

Commit

Permalink
Update the documentation to specify a given container name for docker…
Browse files Browse the repository at this point in the history
… run/exec commands
  • Loading branch information
yanghua authored and hit-lacus committed Sep 14, 2020
1 parent f6278fa commit f14a25d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ docker run -d \
-p 8032:8032 \
-p 8042:8042 \
-p 16010:16010 \
--name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0
```
You can get more detail about this docker image in [kylin website](http://kylin.apache.org/docs/install/kylin_docker.html)
Expand Down
14 changes: 12 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ docker run -d \
-p 8032:8032 \
-p 8042:8042 \
-p 16010:16010 \
--name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0
```

Expand Down Expand Up @@ -63,15 +64,24 @@ After about 1 to 2 minutes, all the services should be started. At the Kylin log

In the "Model" tab, you can click "Build" to build the two sample cubes. After the cubes be built, try some queries in the "Insight" tab.

If you want to login into the Docker container, run "docker ps" to get the container id:
If you want to login into the Docker container, run "docker exec -it apache-kylin-standalone bash" to login it with bash:

```
> docker exec -it apache-kylin-standalone bash
[root@c15d10ff6bf1 admin]# ls
apache-hive-1.2.1-bin apache-maven-3.6.1 first_run hbase-1.1.2 kafka_2.11-1.1.1
apache-kylin-3.0.0-alpha2-bin-hbase1x entrypoint.sh hadoop-2.7.0 jdk1.8.0_141 spark-2.3.1-bin-hadoop2.6
```

Or you can run "docker ps" to get the container id:

```
> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c15d10ff6bf1 apachekylin/apache-kylin-standalone:3.1.0 "/home/admin/entrypo…" 55 minutes ago Up 55 minutes 0.0.0.0:7070->7070/tcp, 0.0.0.0:8032->8032/tcp, 0.0.0.0:8042->8042/tcp, 0.0.0.0:8088->8088/tcp, 0.0.0.0:50070->50070/tcp, 0.0.0.0:16010->16010/tcp romantic_moser
```

Then run "docker -it <container id> bash" to login it with bash:
Then run "docker exec -it <container id> bash" to login it with bash:

```
> docker exec -it c15d10ff6bf1 bash
Expand Down
1 change: 1 addition & 0 deletions docker/run_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ docker run -d \
-p 8042:8042 \
-p 16010:16010 \
-p 8998:8998 \
--name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0

0 comments on commit f14a25d

Please sign in to comment.