prasanthj commented on a change in pull request #491: HDDS-1116. Add java
profiler servlet to the Ozone web servers
URL: https://github.com/apache/hadoop/pull/491#discussion_r257394453
##########
File path: hadoop-ozone/dist/src/main/compose/ozone/docker-compose.yaml
##########
@@ -18,6 +18,7 @@ version: "3"
services:
datanode:
image: apache/hadoop-runner
+ privileged: true #required by the profiler
Review comment:
This can be avoided with initContainer running in privileged mode that
updates the following
```
sudo bash -c 'echo 1 > /proc/sys/kernel/perf_event_paranoid'
sudo bash -c 'echo 0 > /proc/sys/kernel/kptr_restrict'
```
with this initContainer will apply the required changes and will complete.
main container can still run in non-previleged mode.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]