Here I try to develop an online document library. Users are presented with an input form, where they can submit documents (e.g., books, poems, recipes) along with metadata (e.g., author, mime type, ISBN). For the sake of simplicity, they can view all stored documents on a single page.
Go to the project root directory (where docker-compose.yml exists) and run from terminal:
docker-compose up
Go to the browser and put the following URL
http://localhost:8080/
Give some data entry at the landing page, then save it and go to the following URL
http://localhost:8080/library
nginx/Dockerfile
completed and verified. It shows the landing page
HBase
is working as it was given
zookeeper
is used to communicate betweenHBase
and servers (grproxy
andgserv
)
grproxy
can create node to hbasezookeeper
and set watch on it.- if
gserve
creates ephemeral child node in ZooKeeper's node thengrproxy
will get notifications
gserve
can create ephemeral child node under grproxy's defined node- Two instances
gserve1
andgserve2
can run and create child nodes and write their own service_name:port as data which is used by grproxy to select gserve and get their addresses to communicate