Skip to content

RANGER-5713: Move ranger-hadoop bulk chown to image build time - #1117

Open
ramackri wants to merge 1 commit into
apache:masterfrom
ramackri:RANGER-5713
Open

RANGER-5713: Move ranger-hadoop bulk chown to image build time#1117
ramackri wants to merge 1 commit into
apache:masterfrom
ramackri:RANGER-5713

Conversation

@ramackri

@ramackri ramackri commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move chown -R hdfs:hadoop /opt/hadoop and Tez JAR installation to Dockerfile.ranger-hadoop at image build time
  • Remove the expensive recursive chown from ranger-hadoop-setup.sh on every container start
  • At runtime, only chown paths modified during setup (config files, logs, plugin changes)

Fixes slow first-boot startup of the ranger-hadoop container (30+ minutes on some hosts), which blocks Hive, HBase, and other services waiting on the Hadoop healthcheck.

Jira: https://issues.apache.org/jira/browse/RANGER-5713

Test plan

  • Rebuild hadoop image: docker compose -f docker-compose.ranger-hadoop.yml build ranger-hadoop
  • Recreate container: docker compose -f docker-compose.ranger-hadoop.yml up -d --force-recreate ranger-hadoop
  • Confirm ranger-hadoop becomes healthy quickly (~30–60s vs 30+ min)
  • Verify HDFS and YARN start cleanly
  • Confirm Hive/HBase no longer timeout waiting on ranger-hadoop

First-boot chown -R hdfs:hadoop /opt/hadoop/ in ranger-hadoop-setup.sh can take 30+ minutes on some hosts and blocks dependent services. Set ownership at image build time and chown only runtime-modified paths after plugin setup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant