Skip to content

Instantly share code, notes, and snippets.

@mh0w
Created March 16, 2026 15:06
Show Gist options
  • Select an option

  • Save mh0w/1a07a84abb8bc61f3fd7807dbcdce7f1 to your computer and use it in GitHub Desktop.

Select an option

Save mh0w/1a07a84abb8bc61f3fd7807dbcdce7f1 to your computer and use it in GitHub Desktop.
# Solution to console message:
# "WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-s3a-file-system.properties, hadoop-metrics2.properties"
# Create the missing file.
if [[ -e /etc/hadoop/conf/hadoop-metrics2.properties ]]; then
echo "File exists — refusing to overwrite" >&2
exit 1
fi
touch /etc/hadoop/conf/hadoop-metrics2.properties
# SEO: warn imp metrics metricsconfig configuration hadoop metrics2 s3a file system properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment