We have installed open source scylla on redhat linux. After installation checking the logs but not able to find system.log file. In cassandra there is file called system.log where all logs are stored. but in scylla I can not see any log file. However I have configured the path in logback.xml.
Please help.
Scylla logs are written to the system journal.
Use the following to get them:
journalctl _COMM=scylla
More here https://docs.scylladb.com/getting-started/logging/
Related
How do I download and install Apache Cassandra?
Assuming that you've already done this, but here's the Apache Cassandra download page: https://cassandra.apache.org/_/download.html
Following the links to download the current GA release should put an Apache Cassandra tarball in your ~/Downloads directory. I'd recommend moving that:
cd ~
mv ~/Downloads/apache-cassandra-4.0.6-bin.tar.gz .
Next, untar it:
tar -zxvf apache-cassandra-4.0.6-bin.tar.gz
That will create a directory containing Apache Cassandra. To start Cassandra cd into that directory and execute the cassandra binary.
cd apache-cassandra-4.0.6
bin/cassandra -p cassandra.pid
You should see several messages, but this indicates a successful start:
StorageService.java:2785 - Node localhost/127.0.0.1:7000 state jump to NORMAL
Running Cassandra like this with the -p option will put the process ID into the cassandra.pid file and run it in the background. To stop Cassandra, simply run a kill on the contents of the file.
kill `cat cassandra.pid`
Powershell script execution unavailable. Please use 'powershell Set-ExecutionPolicy Unrestricted' on this user-account to run cassandra with fully featured functionality on this platform. Starting with legacy startup options JAVA_HOME environment variable must be set!
Ahh... You're trying to run Cassandra on Windows! That's an important detail to mention. Cassandra used to ship with Powershell scripts for this purpose...which were removed with version 4.0. Your options:
Run Apache Cassandra 3.11, which still has the Powershell scripts.
Run Apache Cassandra 4.0 using local virtualization/containerization.
Last year I posted a video on how run Cassandra 4.0 locally on Windows using Minikube: Setting up Cassandra 4.0 locally on a Windows Machine
You can also use the official Cassandra container image on Docker Hub, assuming your company allows it, and you don't mind it missing important things like security.
I downloaded the 64-bit redshift odbc .rpm file. I am installing the driver for Oracle OBIEE. So, I don't want to install it system wide.
I decompressed the .rpm file to /u01/app/oracle/product with: rpm2cpio AmazonRedshiftODBC-64-bit-1.4.20.1001-1.x86_64.rpm | cpio -idmv
I installed unixODBC.
I added the following to /etc/odbcinst.ini:
[RedshiftDriver]
Driver=/u01/app/oracle/product/redshiftodbc/lib/64/libamazonredshiftodbc64.so
I added the following to /etc/odbc.ini:
[redshift]
Driver=Driver=/u01/app/oracle/product/redshiftodbc/lib/64/libamazonredshiftodbc64.so
Description=redshift
Host=<my redshift endpoint hostname>
Port=5932
Database=<my db>
locale=en-US
I run: isql -v redshift <myuser> <mypass>
I get:
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
I also tried the 32 bit driver. I am operating as root. The path to the .so file is correct.
What am I missing?
Hah. Proofreading my post and see that I put:
Driver=Driver= in odbc.ini.
Problem solved.
Then I realized I used the wrong port. It’s supposed to be 5439.
And to top it off I realize I posted this on SO instead of server fault.
It’s been a long week.
Maybe the procedure will help someone else looking for AWS redshift driver info.
I'm trying to install DataStax Bulk Loader on my Windows machine in order to import json file to Cassandra databse. I just follow the installation instructions from the official webstie. It's just unpack the folder. Printing dsbulkfrom any catalogue into cmd prints the following result: "dsbulk" is not internal or external command, executable program, or batch file. However I added C:\DSBulk\dsbulk-1.7.0\bin into PATH variables. Anyone who faced with this problem what did you do? Thanks :D
Change into the bin/ directory where you unzipped the package. For example:
C:> cd C:\DSBulk\dsbulk-1.7.0\bin
Then run the dsbulk.cmd from there.
NOTE: Make sure you have both the classpath and Java home set in your environment. Cheers!
I have Datastax community edition 2.2.11 Cassandra with 90 nodes in a cluster.
I am trying to migrate to Apache Cassandra 2.2.11
First I would like to try in my test environment but couldn't find any documentation Is there a pattern or a way that I should do the migration?
Anybody who has experience?
Steps:
Alter the keyspaces using "EverywhereStrategy" to "SimpleStrategy". "EverywhereStrategy" is not supported by Apache cassandra.
There's one or two keyspaces that uses it, dse_system is one of them.
Run nodetool drain before shutting down the existing Cassandra service.
Stop cassandra services.
Back up your Cassandra configuration files from the old installation.
Update java version if needed.
Install the binaries (via tarball, apt-get, yum, etc...) for the apache Cassandra.
Configure the new product.
Compare, merge and update any modifications you have previously made into the new configuration files for the apache version (cassandra.yaml, cassandra-env.sh, etc.).
Start the cassandra services.
Check the logs for warnings, errors, and exceptions.
tail -f /var/logs/cassandra/system.log # or path where you set your logs.
Run nodetool upgradesstables
"nodetool upgradesstables"
(The upgradesstables step can be run on each node after the nodes done with migration.)
Check the logs for warnings, errors, and exceptions.
tail -f /var/logs/cassandra/system.log # or path where you set your logs.
Check the status of the cluster
nodetool status
Repeat theses upgrade steps on each node in the cluster.
I have an sstable file stored at /var/lib/cassandra/data/foo/bar/foo-bar-jb-1-Data.db, and I tried to read the contents of this file by running the following command:
$ sstable2json /var/lib/cassandra/data/foo/bar/foo-bar-jb-1-Data.db
However, the terminal simply hangs after issuing this command, even though the file is only 4k in size. Any ideas what could be the problem? I'm using cassandra 2.0.9.
Permissions maybe. The 2.x docs about the tool have been removed because sstable2json is deprecated. Here are the older docs: http://www.datastax.com/documentation/cassandra/1.2/cassandra/tools/toolsSStable2json_track_ttl_t.html
I had the same issue and running it from sudo worked for me. So it appears to be permission problem.