New user administration tasks
The newly created user must perform the administative actions.
-
Run the process command using dpdeploy.sh
username@username-docker bin]$ ./dpdeploy.sh ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4dffa7c91e2e hortonworks/dp-app:1.x.x.x-XX "/bootstrap.sh" 30 minutes ago Up 30 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 9000/tcp dp-app 22a4533e44c0 hortonworks/dp-cluster-service:1.x.x.x-XX "./docker_service_st…" 30 minutes ago Up 30 minutes 9009-9010/tcp dp-cluster-service 59adc48ba163 hortonworks/dp-db-service:1.x.x.x-XX "./docker_service_st…" 30 minutes ago Up 30 minutes 9000/tcp dp-db-service 92c251ff37c4 hortonworks/dp-gateway:1.x.x.x-XX "./docker_service_st… 30 minutes ago Up 30 minutes 8762/tcp dp-gateway 71e3bac176d3 hortonworks/dp-knox:1.x.x.x-XX "/usr/dp-scripts/kno…" 30 minutes ago Up 30 minutes 53/udp, 8300-8302/tcp, 8400/tcp, 8301-8302/udp, 8500/tcp knox 9e0514521d67 consul:1.0.1 "/bin/sh -c 'mkdir -…" 30 minutes ago Up 30 minutes 8300-8302/tcp, 8301-8302/udp, 8600/tcp, 8600/udp, 0.0.0.0:8500->8500/tcp dp-consul-server a283f8c752ff postgres:9.6.3-alpine "docker-entrypoint.s…" 31 minutes ago Up 30 minutes 5432/tcp dp-database
-
Verify the metrics for DataPlane
username@username-docker bin]$ ./dpdeploy.sh metrics
{"service_metrics":[{"service":"core","instance":"xxx.xx.x.:xxxxx", "metrics_url":"http://xxx.xx.x.:xxxxx/metrics"}, {"service":"cluster-service","instance":"xxx.xx.x.:xxxxx", "metrics_url":"http://xxx.xx.x.:xxxxx/metrics"}, {"service":"db-service","instance":"xxx.xx.x.:xxxxx", "metrics_url":"http://xxx.xx.x.:xxxxx/metrics"}], "gateway_metrics":{"mem":812491,"mem.free":598894,"processors":4, "instance.uptime":753240,"uptime":777257,"systemload.average":0.07, "heap.committed":731136,"heap.init":126976,"heap.used":132241, "heap":1780736,"nonheap.committed":82944,"nonheap.init":2496, "nonheap.used":81356,"nonheap":0,"threads.peak":37,"threads.daemon":34, "threads.totalStarted":44,"threads":37,"classes":10376,"classes.loaded":10376, "classes.unloaded":0,"gc.ps_scavenge.count":13,"gc.ps_scavenge.time":720, "gc.ps_marksweep.count":2,"gc.ps_marksweep.time":335, "gauge.response.service.core.star-star":302.0,"counter.status.200.service.metrics":1, "gauge.response.service.db.star-star":478.0,"gauge.response.service.metrics":80.0, "counter.status.200.service.db.star-star":1,"gauge.response.health":11.0, "counter.status.200.health":74,"counter.status.200.service.core.star-star":7, "httpsessions.max":-1,"httpsessions.active":0}}
-
Add hosts for DataPlane containers
username@username-docker bin]$ ./dpdeploy.sh utils add-host <IP Address> <host-name>
Successfully appended to '/etc/hosts' in dp-app. Successfully appended to '/etc/hosts' in dp-db-service. Successfully appended to '/etc/hosts' in dp-cluster-service. Successfully appended to '/etc/hosts' in knox. [username@username-docker bin]$ docker exec -it dp-app bash root@5132e1d78db9:/# cat /etc/hosts <IP Address> <host-name> [username@username-docker bin]$ docker exec -it dp-db-service bash root@1f24870f344f:/# cat /etc/hosts <IP Address> <host-name>
-
Stop Dataplane containers
username@username-docker bin]$ ./dpdeploy.sh stop
Warning! This command will stop all the DataPlane containers. Do you want to continue? (yes/no): yes Destroying containers dp-database dp-app dp-db-service dp-cluster-service dp-gateway knox dp-consul-server Stop complete.
-
username@username-docker bin]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [username@username-docker bin]$
-
Start DataPlane containers
username@username-docker bin]$ ./dpdeploy.sh start
Enter previously entered master password for DataPlane Service:
<Maser password>
.Using previously generated self-signed certificates (for example purpose only) a2c5a8447e69761490ea620d4bc016a8657919c64d1b5d0604a9ad6ec9ace778 Initializing app Starting Consul 576e046cf653f091217b3689dd44d69ad29df12b21fcb3d6f78f5421a0b4dd6b Starting Knox 3e9167fe5968e57c27c349442dde7935714b8fd1d8212853e694b2b54f17c653 Starting Database (Postgres) Starting Gateway e99511703a94d46693a48458cdcf74fe44c2f659c469986c36a6715717caa74d Starting DB Service 78bb22e0ab10470c73fe37cfa784630977782ef161a55e0741127414c83af646 Starting Cluster Service ae5d4f6c9b988a5bbc853e822a4ce78191cea244ba409a16177a07aadef8e67c Starting Application API 86f82b8b76b2f1fa6f13f8ce7760381162ee767df5bc3b084be2853281a3d63e Initialization and start complete.
-
-
Verify DataPlane container logs
username@username-docker bin]$ ./dpdeploy.sh logs -f dp-app
Reloading nginx configuration: nginx. 06:16:35 INFO Slf4jLogger - Slf4jLogger started 06:16:38 INFO PluginManifestService - reading /plugins/cloudbreak.json 06:16:39 INFO PluginManifestService - reading /plugins/das.json 06:16:39 INFO PluginManifestService - reading /plugins/dlm.json 06:16:39 INFO PluginManifestService - reading /plugins/dss.json 06:16:39 INFO PluginManifestService - reading /plugins/smm.json 06:16:40 INFO Play - Application started (Prod) 06:16:40 INFO NettyServer - Listening for HTTP on /0.0.0.0:xxxxx 06:16:42 INFO application - Registered service DpService{serviceId='core_xxx.xx.x.x:xxxxx', serviceTags=[core-service], port=xxx.xx.x.x, port=xxxxx} 06:16:43 WARN application - Gateway discovery failed, endpoints configured in config will be used Reloading nginx configuration: nginx06:16:47 INFO application - Running a service check for serviceId core_xxx.xx.x.x:xxxxx . 06:16:52 INFO application - Running a service check for serviceId core_xxx.xx.x.x:xxxxx Reloading nginx configuration: nginx. 06:16:57 INFO application - Running a service check for serviceId core_xxx.xx.x.x:xxxxx 06:17:02 INFO application - Running a service check for serviceId core_xxx.xx.x.x:xxxxx