Skip to content

Commit 6254477

Browse files
authored
Copy jmx files instead of moving to support k8s (#5045)
1 parent 4babe39 commit 6254477

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/scala/copyJMXFiles.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
if [[ $( ls /conf/jmxremote.* 2> /dev/null ) ]]
2020
then
21-
mv /conf/jmxremote.* /home/owuser
21+
# JMX auth files would be mounted as a symbolic link (read-only mode)
22+
# with `root` privileges by the k8s secret.
23+
cp -rL /conf/jmxremote.* /home/owuser
24+
rm -f /conf/jmxremote.* 2>/dev/null || true
25+
26+
# The owner must be `owuser` and the file only have read permission.
2227
chmod 600 /home/owuser/jmxremote.*
2328
fi

0 commit comments

Comments
 (0)