Python issue doing yum install on RedHat Linux

346 views
Skip to first unread message

Mitch Gitman

unread,
May 19, 2020, 11:02:41 PM5/19/20
to Elassandra User Mailing List

I'm having trouble doing a yum install of Elassandra on RedHat Enterprise Linux (RHEL) 8.1. I'd earlier had success doing such an Elassandra install on a previous RHEL version. The same happens whether I download the latest elassandra.rpm and do the yum install of that, or if I do yum install by specifying the RPM repo to download from.


Here's what I see:

Error: 

 Problem: conflicting requests

  - nothing provides python >= 2.7 needed by elassandra-6.8.4.5-1.noarch

(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


It's worth noting that RHEL 8.1 comes with no operational python comand so as not to create confusion between Python 2 and Python 3:

https://developers.redhat.com/blog/2019/05/07/what-no-python-in-red-hat-enterprise-linux-8/


So I do install Python 2.7:

yum install @python27


And then I select the installed Python:

alternatives --config python


And this works:

>which python

/usr/bin/python


>python --version

Python 2.7.17


(Note that I'm doing everything as sudo.)


But then, when I try to do the yum install of Elassandra, I still get the same error.


I'm assuming the Python requirement is for cqlsh. How can I get back this? 


I do have a fallback option. I have an RHEL 7.7 image I can use. Chances are, I won't see the problem there, but if that is the case, it seems like the problem should be eminently fixable on RHEL 8.1.


P.S. I acknowledge that this issue may have less to do with Elassandra than with Python and the OS. But I can ask the question here and update things on my end if I make progress.

Mitch Gitman

unread,
May 19, 2020, 11:08:35 PM5/19/20
to Elassandra User Mailing List
Re-sending to try to improve the formatting...

Mitch Gitman

unread,
May 20, 2020, 10:45:54 PM5/20/20
to Elassandra User Mailing List
Quick update. As expected, install on RHEL 7.7 worked just fine. Contents of /etc/cassandra/ are there and an empty /var/lib/cassandra/ is there.

I have a colleague investigating the RHEL 8.1 issue. If we have to, we'll be able to get by this go-round with RHEL 7.7. Next time around we're going to have to go with RHEL 8.1 or higher. At least RHEL 7.7 would buy us time until then.

Highlights:
# yum install elassandra.rpm
...
Resolving Dependencies
--> Running transaction check
---> Package elassandra.noarch 0:6.8.4.5-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved
...
Install  1 Package

Total size: 156 M
Installed size: 156 M
Is this ok [y/d/N]: y
Downloading packages:
...
Running transaction
Creating cassandra group... OK
Creating cassandra user... OK
  Installing : elassandra-6.8.4.5-1.noarch                                                                                                                                      1/1 
### NOT starting on installation, please execute the following statements to configure cassandra service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable cassandra.service
### You can start cassandra service by executing
 sudo systemctl start cassandra.service
/var/tmp/rpm-tmp.FkeK6L: line 8: /usr/share/elasticsearch/bin/elasticsearch-keystore: No such file or directory
chown: invalid group: ‘root:elasticsearch’
chmod: cannot access ‘/etc/elasticsearch/elasticsearch.keystore’: No such file or directory
/var/tmp/rpm-tmp.FkeK6L: line 11: /etc/elasticsearch/.elasticsearch.keystore.initial_md5sum: No such file or directory
warning: %posttrans(elassandra-0:6.8.4.5-1.noarch) scriptlet failed, exit status 1
Non-fatal POSTTRANS scriptlet failure in rpm package elassandra-6.8.4.5-1.noarch
Uploading Package Profile
Loaded plugins: product-id, subscription-manager
  Verifying  : elassandra-6.8.4.5-1.noarch                                                                                                                                      1/1 
...

Installed:
  elassandra.noarch 0:6.8.4.5-1                                                                                                                                                     

Complete!
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Reply all
Reply to author
Forward
0 new messages