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/Dockerfilecompleted and verified. It shows the landing page
HBaseis working as it was given
zookeeperis used to communicate betweenHBaseand servers (grproxyandgserv)
grproxycan create node to hbasezookeeperand set watch on it.- if
gservecreates ephemeral child node in ZooKeeper's node thengrproxywill get notifications
gservecan create ephemeral child node under grproxy's defined node- Two instances
gserve1andgserve2can 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