Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env bash
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to drop it all together?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess to be sure that we do not have overrides in one of the base images

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be sure no-one tries to use mechanism that we're decomissioning.
Otherwise it could be possible that test run with a different configuration than expected.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal should be a follow-up sometime later.


OVERRIDES_DIR=${OVERRIDES_DIR:-/overrides}
IFS=':' read -r -a HADOOP_OVERRIDES_DIRS <<< "${OVERRIDES_DIR}"
# test whether OVERRIDES_DIR is set
if [[ -n "${OVERRIDES_DIR+x}" ]]; then
echo "The OVERRIDES_DIR (${OVERRIDES_DIR}) support is disabled as it was deemed unused." >&2
echo "It is being removed." >&2
exit 16
fi

for overrides_dir in "${HADOOP_OVERRIDES_DIRS[@]}"
do
if test -d "${overrides_dir}"; then
echo "Applying Hadoop conf overrides from dir ${overrides_dir}"
/usr/local/bin/apply-all-site-xml-overrides "${overrides_dir}"
else
echo "Hadoop conf overrides dir ${overrides_dir} does not exist"
fi
done
if test -e /overrides; then
find /overrides >&2
echo "The /overrides handling is disabled as it was deemed unused." >&2
echo "It is being removed." >&2
exit 17
fi