Skip to content

BIGTOP-3634 Fix centos local repo functionality#856

Merged
iwasakims merged 2 commits into
apache:masterfrom
cheelio:fix-centos-local-repo
Jan 25, 2022
Merged

BIGTOP-3634 Fix centos local repo functionality#856
iwasakims merged 2 commits into
apache:masterfrom
cheelio:fix-centos-local-repo

Conversation

@cheelio
Copy link
Copy Markdown
Contributor

@cheelio cheelio commented Jan 24, 2022

No description provided.

Copy link
Copy Markdown
Member

@iwasakims iwasakims left a comment

Choose a reason for hiding this comment

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

LGTM.

It worked on CentOS 7:

$ ./docker-hadoop.sh \
    --create 1 \
    --image bigtop/puppet:trunk-centos-7 \
    --memory 16g \
    --enable-local-repo \
    --disable-gpg-check \
    --stack hdfs,yarn,mapreduce

yum-plugin-priorities is not provided on CentOS 8 since dnf itself provides the functionality.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index#package-replacements_changes-to-packages

Docker provisioner works even with the Error: Unable to find a match: yum-priorities error.

$ ./docker-hadoop.sh \
    --create 1 \
    --image bigtop/puppet:trunk-centos-8 \
    --memory 16g \
    --enable-local-repo \
    --disable-gpg-check \
    --stack hdfs,yarn,mapreduce
...
No match for argument: yum-priorities
Error: Unable to find a match: yum-priorities

@iwasakims
Copy link
Copy Markdown
Member

same for Fedora 33.

$ ./docker-hadoop.sh \
    --create 1 \
    --image bigtop/puppet:trunk-fedora-33 \
    --docker-compose-yml docker-compose-cgroupv2.yml \
    --memory 16g \
    --enable-local-repo \
    --disable-gpg-check \
    --stack hdfs,yarn,mapreduce
...
No match for argument: yum-priorities
Error: Unable to find a match: yum-priorities
...
$ ./docker-hadoop.sh --exec 1 yum list 'hadoop'
Last metadata expiration check: 0:07:06 ago on Tue Jan 25 05:23:46 2022.
Installed Packages
hadoop.x86_64                                                            3.2.2-1.fc33                                                            @bigtop-home_output
Available Packages
hadoop.src                                                               3.2.2-1.fc33                                                            bigtop-home_output

@iwasakims iwasakims merged commit 7702daf into apache:master Jan 25, 2022
iwasakims pushed a commit that referenced this pull request Jan 25, 2022
@iwasakims
Copy link
Copy Markdown
Member

I merged this to master and branch-3.0. Thanks for the contribution, @cheelio.

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.

2 participants