Skip to content

Installation

Install the Developer SDK for your language. The Java SDK targets Java 21+; Python examples assume Python 3.10+ unless noted otherwise.

Requirements

RequirementMinimum Version
Java21+
Maven3.6+ (if using Maven)
Gradle7.0+ (if using Gradle)

Install the SDK

Maven

Add the dependency to your pom.xml:

<dependency>
<groupId>com.aerospike</groupId>
<artifactId>aerospike-client-sdk</artifactId>
<version>0.9.0-alpha</version>
</dependency>

Gradle (Groovy)

Add to your build.gradle:

dependencies {
implementation 'com.aerospike:aerospike-client-sdk:0.9.0-alpha'
}

Gradle (Kotlin)

Add to your build.gradle.kts:

dependencies {
implementation("com.aerospike:aerospike-client-sdk:0.9.0-alpha")
}

Verify installation

Create a simple test file VerifyInstall.java:

import com.aerospike.client.sdk.DataSet;
public class VerifyInstall {
public static void main(String[] args) {
DataSet ds = DataSet.of("test", "example");
System.out.println("✓ Aerospike Java SDK on classpath: " + ds.getNamespace() + "/" + ds.getSet());
}
}

Run it:

Terminal window
# Maven
mvn compile exec:java -Dexec.mainClass="VerifyInstall"
# Gradle
./gradlew run

Expected output:

✓ Aerospike Java SDK on classpath: test/example

IDE setup

IntelliJ IDEA

  1. Open your project
  2. Right-click pom.xml (Maven) or build.gradle (Gradle)
  3. Select Maven > Reload Project or Gradle > Refresh Gradle Project
  4. Auto-complete and Javadoc should now work for Developer SDK classes

VS Code

  1. Install the Extension Pack for Java
  2. Open your project folder
  3. VS Code will automatically detect your build file and index dependencies

Upgrading

Update the version number in your pom.xml or build.gradle:

<version>1.1.0</version> <!-- Update to new version -->

Then refresh your dependencies:

Terminal window
# Maven
mvn clean install
# Gradle
./gradlew build --refresh-dependencies

Troubleshooting

Maven: dependency not found

If Maven can’t find the package:

  1. Check you have the correct repository configured (Maven Central)
  2. Run mvn clean install -U to force update
  3. Verify your pom.xml syntax is correct

Python: ImportError

If you get ModuleNotFoundError: No module named 'aerospike_sdk':

  1. Make sure you’re using the correct Python environment
  2. Verify the package is installed: pip list | grep aerospike
  3. Try reinstalling: pip uninstall aerospike-sdk && pip install aerospike-sdk

SSL/TLS issues

If you need to connect to a TLS-enabled cluster, see Connect to Aerospike for TLS configuration.

Next steps

Connect to Aerospike

Configure connections, TLS, and authentication.

Connect →

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?