Skip to content

Commit 4037b4d

Browse files
Merge pull request #2465 from DougAnsonAustinTX/add_ubuntu_and_suse_instructions
updates for ubuntu and cassandra
2 parents 59070a7 + ceb69ce commit 4037b4d

File tree

2 files changed

+57
-7
lines changed

2 files changed

+57
-7
lines changed

content/learning-paths/servers-and-cloud-computing/cassandra-on-gcp/installation.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,33 @@ weight: 4
66
layout: learningpathall
77
---
88

9-
## Apache Cassandra Installation on SUSE VM
10-
This guide will help you install **Apache Cassandra** on a SUSE Linux virtual machine. Cassandra is a highly scalable NoSQL database designed for high availability and fault tolerance.
9+
## Apache Cassandra Installation on Ubuntu or SuSE VM
10+
This guide will help you install **Apache Cassandra** on a Ubuntu or SuSE Linux virtual machine. Cassandra is a highly scalable NoSQL database designed for high availability and fault tolerance.
1111

1212
### Update System Packages
1313
Updating system packages ensures that your system has the latest security patches and dependencies required for Cassandra.
1414

15-
```console
15+
{{< tabpane code=true >}}
16+
{{< tab header="Ubuntu" language="bash">}}
17+
sudo apt update
18+
{{< /tab >}}
19+
{{< tab header="SUSE Linux" language="bash">}}
1620
sudo zypper refresh
1721
sudo zypper update -y
18-
```
22+
{{< /tab >}}
23+
{{< /tabpane >}}
1924

2025
### Install Java
2126
Cassandra requires a Java runtime environment. You can use either Java 11 or Java 17. This example uses Java 17 for optimal performance and compatibility with Cassandra 5.0.5.
2227

23-
```console
28+
{{< tabpane code=true >}}
29+
{{< tab header="Ubuntu" language="bash">}}
30+
sudo apt install -y openjdk-17-jdk
31+
{{< /tab >}}
32+
{{< tab header="SUSE Linux" language="bash">}}
2433
sudo zypper install -y java-17-openjdk java-17-openjdk-devel
25-
```
34+
{{< /tab >}}
35+
{{< /tabpane >}}
2636

2737
### Download Cassandra
2838
Download the latest stable release of Apache Cassandra 5.0.5 from the official Apache repository.

content/learning-paths/servers-and-cloud-computing/cassandra-on-gcp/instance.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ To create a virtual machine based on the C4A instance type:
2727
![Create a Google Axion C4A Arm virtual machine in the Google Cloud Console with c4a-standard-4 selected alt-text#center](images/gcp-vm.png "Creating a Google Axion C4A Arm virtual machine in Google Cloud Console")
2828

2929

30-
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type. Click **Select**.
30+
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server** or **Ubuntu**.
31+
- If using use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type.
32+
- If using **Ubuntu**, under the **Version** tab, please scroll down and select the aarch64 version of **Ubuntu 22.04 LTS**.
33+
- Once appropriately selected, please Click **Select**.
3134
- Under **Networking**, enable **Allow HTTP traffic**.
3235
- Click **Create** to launch the instance.
3336
- Once created, you should see a "SSH" option to the right in your list of VM instances. Click on this to launch a SSH shell into your VM instance:
@@ -49,6 +52,43 @@ uname -m
4952
```
5053
will identify the host machine as `aarch64`.
5154

55+
### Run hello world
56+
57+
Install the `gcc` compiler:
58+
59+
{{< tabpane code=true >}}
60+
{{< tab header="Ubuntu" language="bash">}}
61+
sudo apt update
62+
sudo apt install -y build-essential
63+
{{< /tab >}}
64+
{{< tab header="SUSE Linux" language="bash">}}
65+
sudo zypper refresh
66+
sudo zypper install -y gcc
67+
{{< /tab >}}
68+
{{< /tabpane >}}
69+
70+
Using a text editor of your choice, create a file named `hello.c` with the contents below:
71+
72+
```C
73+
#include <stdio.h>
74+
int main(){
75+
printf("hello world\n");
76+
return 0;
77+
}
78+
```
79+
Build and run the application:
80+
81+
```console
82+
gcc hello.c -o hello
83+
./hello
84+
```
85+
86+
The output is shown below:
87+
88+
```output
89+
hello world
90+
```
91+
5292
## Automating Arm Based Infrastructure Deployment
5393

5494
Cloud infrastructure deployment is typically done via Infrastructure as code (IaC) automation tools. There are Cloud Service Provider specific tools like [Google Cloud Deployment Manager](https://cloud.google.com/deployment-manager/docs/).

0 commit comments

Comments
 (0)