RHEL RPM installation

Hi. I’m trying to follow the steps for Kafka RHEL RPM installation guide, but at step 4 I end up getting the below error. Any ideas?

sudo yum clean all && sudo yum install confluent-platform && sudo yum install confluent-security
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: Confluent Confluent.dist amzn2-core amzn2extra-docker
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Confluent                                                                    | 2.9 kB 00:00:00   
<https://packages.confluent.io/rpm/6.1/2/repodata/repomd.xml>: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.```

What does your confluent.repo file under /etc/yum.repo.d/ look like?

Same thing that is in step 3

That is the only confluent repo right in your repo directory right?

Whats your output for the following command?
curl -v <http://packages.confluent.io|packages.confluent.io>

This is interesting. dont know why its trying to add the 2 in there. That path doesnt exist if you check this in your browser.
<https://packages.confluent.io/rpm/6.1/>

Does running this command give any errors?
yum repolist

Running aws linux if that helps

Think I know why. need to check something quick.

Whats the output for this command?
cat /etc/os-release

VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="<https://amazonlinux.com/>"```

Based on the output of this command you might have to update your repo file. aws linux is outputting value of 2 for releasever.
rpm -E %{rhel}

I have not used this OS before but from what I can tell its forked off centos 7 I think. I do not see aws linux in the confluent docs anywhere so you will have to replace releasever in your repo file with the output of the above command.

Does that make sense?

7```

Cool. so you can change the value of $releasever to 7 in your repo file and you should be good to go.