I tried installing it 2 times and still got the same error.
I followed the instructions here. http://docs.datastax.com/en/datastax_enterprise/4.7/datastax_enterprise/install/installDEBdse.html
root#node1:~$ Error opening zip file or JAR manifest missing : /usr/sbin/../lib/jamm-0.3.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
TL;DR: Somehow you need to get ./resources/cassandra/lib/jamm-0.3.0.jar in your your DSE installation directory and remove any older versions.
DSE 4.7 uses Cassandra 2.1.8 under the hood. C* 2.1 uses jamm 3.0. Older versions of cassandra, 2.0 and previous used jamm 2.5. If you had a previous install of either an older c* or an older DSE on this environment, some of your old dependencies may be stuck.
If you're on Debian using the package installer try running:
sudo aptitude install dse-full=version
Which should pick up the right dependencies.
If not, apt-get purge dse-full and then re-installing might also work.
There are similar commands for yum in RHEL.
Related
I have a problem with up upgrade the Cassandra version from 2.2.x to 3.11.x.
I don't understand why it's the same Cassandra 2.2.x, but when installing with package cassandra-2.2.19-1.noarch.rpm , it can upgrade normally, while installing with package cassandra22-2.2.8-1.noarch.rpm, it gives an error as figure below.
Unfortunately, my server is installing the rpm package cassandra22-2.2.8-1.noarch.rpm. Please help me upgrade this Cassandra version.
cassandra22-2.2.7-1.noarch is not a valid package so my guess is that you downloaded it from a non-official source.
You will need to uninstall it first before you can install a newer version of Cassandra. Then, you need to add the official repo to /etc/yum.repos.d/cassandra/repo. For Cassandra 3.11, the correct repo is:
[cassandra]
name=Apache Cassandra
baseurl=https://downloads.apache.org/cassandra/redhat/311x/
You should then be able to install the latest version of Cassandra 3.11. For more info, see Installing Cassandra 3.11. Cheers!
These are 2 commands I ran trying to install .net core 6.0 on CentOS 8 Stream:
sudo dnf install dotnet-runtime-6.0
Last metadata expiration check: 0:12:04 ago on Tue 23 Nov 2021 17:38:47 UTC.
. . .
Installed:
dotnet-host-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64
dotnet-hostfxr-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64
dotnet-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64
lttng-ust-2.8.1-11.el8.x86_64
userspace-rcu-0.10.1-4.el8.x86_64
Complete!
[/usr/local/bin]$ dotnet --list-runtimes
Microsoft.NETCore.App 6.0.0-rc.2.21470.23 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Install says it installed 6.0.0-0.6 but the actual version is 6.0.0-rc.2.21470.23 and my app is failing with error:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' (x64) was not found.
- The following frameworks were found:
6.0.0-rc.2.21470.23 at [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Can it be fixed without manual .net install ?
SOLUTION (worked)
add repo to the OS:
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
change it priority to preceed the OS:
echo 'priority=50' | sudo tee -a /etc/yum.repos.d/microsoft-prod.repo
install
sudo dnf install dotnet-runtime-6.0
reboot the machine
CentOS 8 Stream seems to have an out-of-date version of .NET 6.
That the version is old is kind of my fault; I need to update the package in CentOS Stream 8 (which really copies what's in RHEL 8.6 and that's the one I will fix).
The version showed by dotnet --info is correct.
The RPM package versioning is a workaround in that CentOS (and RHEL and Fedora until recently) don't have a way of reflecting pre-release versions of an upstream that is about to a release 6.0. We are forced to use a version "6.0" and Release with "0.X" to say "this is a pre-release of 6.0". I could have called it "6.0-0.6.rc2", but this build isn't even exact "6.0 RC2", it was a pre-RC2 snaphost (commit 28be3e9a006d90d8c6e87d4353b77882829df718 from dotnet/installer repository).
If you urgently need .NET 6, here are some options to consider:
If you need a container, try out registry.access.redhat.com/ubi8/dotnet-60-runtime.
Use a manual (not package) install of .NET 6: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install
Add the Microsoft RPM repository (repo file) and then use solution 3 to make sure it take precedence over the CentOS repository.
I have installed Cassandra 311 on ubuntu 1604. Everything works fine but I am not able to find SSTABLEDUMP utility in the bin folder.
How can I get this installed as patch? Or I am missing something?
Thanks.
Depending on which version you have installed:
DataStax Enterprise 5.0 Installer No-Services and tarball installations:
install_location/resources/cassandra/tools/bin
Cassandra tarball installations:
install_location/tools/bin/
For package installations (Cassandra package or DataStax Enterprise 5.0 Installer Services and package installations) you do not need to know the installation folder to run it, you can just simply use it as:
sstabledump [options] sstable_file
https://docs.datastax.com/en/cassandra/3.0/cassandra/tools/ToolsSSTabledump.html
Also to have the tools, you need to install cassandra-tools separately apart from cassandra:
sudo apt-get install cassandra-tools
Cassandra installation documentation mentions installation from a tarball or as a Debian package. Is there a way to install it using yum, now that DataStax does not provides the distribution?
CentOS uses RPM as package format as far as I can remember. So look on http://cassandra.apache.org/download/:
Installation from RPM packages
For the specify the major version number, without dot, and with an appended x. The latest is 311x. For older releases, the can be one of 30x, 22x, or 21x.
(Not all versions of Apache Cassandra are available, since building RPMs is a recent addition to the project.)
Add the Apache repository of Cassandra to /etc/yum.repos.d/cassandra.repo, for example for the latest 3.11 version:
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
Install Cassandra, accepting the gpg key import prompts:
sudo yum install cassandra
Start Cassandra (will not start automatically):
service cassandra start
Systemd based distributions may require to run systemctl daemon-reload once to make Cassandra available as a systemd service. This should happen automatically by running the command above.
Make Cassandra start automatically after reboot:
chkconfig cassandra on
Please note that official RPMs for Apache Cassandra only have been available recently and are not tested thoroughly on all platforms yet. We appreciate your feedback and support and ask you to post details on any issues in the corresponding Jira ticket.
While i am trying to install DSE 5.0.11 on machine CentOS 7.4, I am getting dependency issue as below.
Error: Package: dse-full-5.0.11-1.noarch (/dse-full-5.0.11-1.noarch)
Requires: dse-libpig = 5.0.11
But I believe the support for pig is completely removed from Cassandra for newer versions (3.0) which in turn implies that DSE 5.0.11 uses Cassandra 3.0.14
I tried using this command for local install.
sudo yum localinstall /tmp/5.0.11/dse-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-demos-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-full-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libcassandra-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libgraph-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libhadoop2-client-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libhive-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-liblog4j-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libmahout-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libsolr-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libspark-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libsqoop-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libtomcat-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libhadoop-5.0.11-1.noarch.rpm /tmp/5.0.11/dse-libhadoop-native-5.0.11-1.x86_64.rpm
Also I tried, using --skip-broken and it seems it's not going to install as below.
Skipped (dependency problems):
dse noarch
5.0.11-1 /dse-5.0.11-1.noarch
110 M
dse-demos noarch
5.0.11-1 /dse-demos-5.0.11-
1.noarch 75 M
dse-full noarch
5.0.11-1 /dse-full-5.0.11-
1.noarch 90 k
Can i go ahead and use --skip-broken (or) how can i tackle this problem?
You should use the DSE 5.1 installer that is found here.
DSE Install Guide
The file you'll download is a .run file named
DataStaxEnterprise-5.1.5-linux-x64-installer.run
And yes, DSE 5.1 is based on Cassandra 3.0. If you have broken or missing dependencies you should address those first.
Hope this helps