Step 3. Verify the changes
Explains the use of the pullcentralconfig
script in verifying file
changes.
About this task
pullcentralconfig
script will detect the new files in
/var/mapr/configuration
the next time it is launched. It overwrites the
local version in /opt/mapr
with the appropriate customized version for
each of the five NodeManager nodes.Procedure
-
To launch the
pullcentralconfig
script, perform one of the following operations:Run
pullcentralconfig
from the command line to overwrite the old files immediately./opt/mapr/server/pullcentralconfig
- Wait five minutes (the interval between successive checks for updated configuration files) for the script to run automatically.
-
Look at the information messages in
pullcentralconfig.log
. Whenever the timestamp comparison isfalse
, an INFO message indicates that the older file under/opt/mapr
is copied into a backup file (.bkp
) and the newer version is copied to replace it. Sample log output is as follows:cat pullcentralconfig.log Header: hostName: doc22.lab, Time Zone: Pacific Standard Time, processName: CentralConfig, processId: 16701 2017-07-17 13:13:01,842 INFO com.mapr.centralconfig.CentralConfigCopyHelper [main]: Copied /var/mapr/configuration/default///hadoop/hadoop-2.7.0/etc/hadoop/mapred-site.xml to /opt/mapr//hadoop/hadoop-2.7.0/etc/hadoop/mapred-site.xmlusing maprexecute.
- Restart the service.