Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 2.12 KB

samza-grid-docker.md

File metadata and controls

83 lines (63 loc) · 2.12 KB

Samza Grid Container

About

The docker container has the samza grid installed.

A Samza grid comprises three different systems:

Build and create the container

Steps:

Dockerbuild.bat
docker-samza-run.bat

Connection

Yarn UI

Yarn UI should be available at http://localhost:8088/cluster

where you can view the Samza jobs running at http://localhost:8088/cluster/apps

TCP Connection

From your laptop, with ncat, you can verify that you have access to the services from your laptop

ncat -z localhost 22 && echo tcp connection to sshd succeeded
ncat -z localhost 2181 && echo tcp connection to zookeeper succeeded
ncat -z localhost 9092 && echo tcp connection to kafka succeeded
ncat -z localhost 8032 && echo tcp connection to resource manager succeeded
ncat -z localhost 8042 && echo tcp connection to node manager succeeded

You should see:

tcp connection to sshd succeeded
tcp connection to zookeeper succeeded
tcp connection to kafka succeeded
tcp connection to resource manager succeeded
tcp connection to node manager succeeded

Bash

docker-samza-bash.bat

Sftp (ssh)

You can connect via ssh with the user root and the password welcome.

Start and stop service

The software are installed in /opt/samza/deploy/

In the container, the grid script permits to start and stop services.

# in order first zookeeper then kafka
grid start zookeeper
grid start kafka
# or all
grid start all
grid
 Usage..
  $ grid
  $ grid standalone
  $ grid start [yarn|kafka|zookeeper|all]
  $ grid stop [yarn|kafka|zookeeper|all]