Installation
Install the Developer SDK for your language. The Java SDK targets Java 21+; Python examples assume Python 3.10+ unless noted otherwise.
Requirements
| Requirement | Minimum Version |
|---|---|
| Java | 21+ |
| Maven | 3.6+ (if using Maven) |
| Gradle | 7.0+ (if using Gradle) |
| Requirement | Minimum Version |
|---|---|
| Python | 3.10+ |
| pip | 21.0+ |
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")}pip
pip install aerospike-sdkWith version pinning (recommended for production)
pip install aerospike-sdk==1.0.0In a virtual environment (recommended)
python -m venv .venvsource .venv/bin/activate # On Windows: .venv\Scripts\activatepip install aerospike-sdkrequirements.txt file
Add to your requirements.txt:
aerospike-sdk>=1.0.0,<2.0.0Then install:
pip install -r requirements.txtVerify 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:
# Mavenmvn compile exec:java -Dexec.mainClass="VerifyInstall"
# Gradle./gradlew runExpected output:
✓ Aerospike Java SDK on classpath: test/exampleRun this in your Python environment:
import aerospike_sdkprint(f"Developer SDK version: {aerospike_sdk.__version__}")print("✓ Installation successful!")Or from the command line:
python -c "import aerospike_sdk; print(f'Version: {aerospike_sdk.__version__}')"Expected output:
Developer SDK version: <your installed version>✓ Installation successful!IDE setup
IntelliJ IDEA
- Open your project
- Right-click
pom.xml(Maven) orbuild.gradle(Gradle) - Select Maven > Reload Project or Gradle > Refresh Gradle Project
- Auto-complete and Javadoc should now work for Developer SDK classes
VS Code
- Install the Extension Pack for Java
- Open your project folder
- VS Code will automatically detect your build file and index dependencies
PyCharm
- Open your project
- Go to File > Settings > Project > Python Interpreter
- Ensure your virtual environment is selected
- PyCharm will index the package for auto-complete
VS Code
- Install the Python extension
- Select your Python interpreter (Ctrl/Cmd + Shift + P > “Python: Select Interpreter”)
- Choose your virtual environment with
aerospike-sdkinstalled
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:
# Mavenmvn clean install
# Gradle./gradlew build --refresh-dependenciespip install --upgrade aerospike-sdkOr to upgrade to a specific version:
pip install aerospike-sdk==1.1.0Troubleshooting
Maven: dependency not found
If Maven can’t find the package:
- Check you have the correct repository configured (Maven Central)
- Run
mvn clean install -Uto force update - Verify your
pom.xmlsyntax is correct
Python: ImportError
If you get ModuleNotFoundError: No module named 'aerospike_sdk':
- Make sure you’re using the correct Python environment
- Verify the package is installed:
pip list | grep aerospike - 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
Quickstart
Build your first app in 5 minutes.
Connect to Aerospike
Configure connections, TLS, and authentication.