You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This getting started tutorial explains how to configure ScalarDL on your preferred database and illustrates the process of creating a simple application where the historical states of data are traced.
16
16
17
-
<StartupLedger />
17
+
## Prerequisites
18
+
19
+
- One of the following Java Development Kits (JDKs):
20
+
-**[Oracle JDK](https://www.oracle.com/java/):** 8, 11, 17, or 21 (LTS versions)
21
+
-**[OpenJDK](https://openjdk.org/) ([Eclipse Temurin](https://adoptium.net/temurin/), [Amazon Corretto](https://aws.amazon.com/corretto/), or [Microsoft Build of OpenJDK](https://learn.microsoft.com/en-us/java/openjdk/)):** 8, 11, 17, or 21 (LTS versions)
22
+
-[Docker](https://www.docker.com/get-started/) 20.10 or later with [Docker Compose](https://docs.docker.com/compose/install/) v2.20.0 or later
23
+
24
+
:::warning
25
+
26
+
Since ScalarDL is built with JDK 8, contracts must be a JDK 8–compatible binary. If you use a version other than JDK 8, you must configure your build tool to build the JDK 8–compatible binary. There are several ways to specify binary compatibility, including using the `--release 8` option for javac or setting Gradle or Maven configurations to use the JDK 8 toolchain. The following shows the configuration for Gradle:
27
+
28
+
```gradle
29
+
java {
30
+
toolchain {
31
+
languageVersion.set(JavaLanguageVersion.of(8))
32
+
}
33
+
}
34
+
```
35
+
36
+
For more details about the Gradle and Maven configurations, see [Toolchains for JVM projects for Gradle](https://docs.gradle.org/current/userguide/toolchains.html) and [Guide to Using Toolchains for Maven](https://maven.apache.org/guides/mini/guide-using-toolchains.html).
37
+
38
+
:::
39
+
40
+
## Clone the ScalarDL samples repository
41
+
42
+
Open **Terminal**, then clone the ScalarDL samples repository by running the following command:
Then, go to the directory that contains the sample configuration by running the following command:
49
+
50
+
```console
51
+
cd scalardl-samples
52
+
```
53
+
54
+
## Start up ScalarDL with your preferred database
55
+
56
+
Select your database, and follow the instructions to deploy ScalarDL Ledger with it. For a list of databases that ScalarDL supports, see [Databases](requirements.mdx#databases).
<TabItemvalue="cosmosdb"label="Cosmos DB for NoSQL">
80
+
81
+
<h3>Set up your license (Enterprise edition only)</h3>
82
+
83
+
If you're using the ScalarDL Enterprise edition, set up your license as follows. If you're using the Community edition, skip to the next section to start up ScalarDL.
84
+
85
+
<details>
86
+
<summary>See here to set up your license</summary>
87
+
88
+
1. Enable the Docker image for the Enterprise edition in the `cosmosdb/docker-compose-ledger.yml` file as follows:
89
+
90
+
- Before changing the image (default configuration):
2. Set your license key for ScalarDL Ledger. In the `cosmosdb/ledger.properties` file, replace `<SET_YOUR_LICENSE_KEY>` with your license key. For example:
109
+
110
+
```properties
111
+
##### PLEASE REPLACE THIS VALUE WITH YOUR LICENSE KEY (ENTERPRISE EDITION ONLY) #####
You can start using ScalarDL Ledger by following the steps below:
149
+
150
+
1. Configure Cosmos DB for NoSQL.
151
+
152
+
To use Azure Cosmos DB for NoSQL, you must have an Azure account. If you don't have an Azure account, visit [Create an Azure Cosmos DB account](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/quickstart-portal#create-account).
153
+
154
+
After setting up Cosmos DB for NoSQL, modify the following items in `cosmodb/ledger.properties` based on your configuration of Cosmos DB for NoSQL.
Copy file name to clipboardExpand all lines: docs/how-to-run-applications-with-auditor.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,6 @@ Because Auditor does not rely on the Consensus Commit transaction manager, you d
103
103
While ScalarDL leverages ScalarDB, the following ScalarDB features are not compatible with the consistency guarantee mechanism of ScalarDL:
104
104
105
105
-[Group commit for the Coordinator table](https://scalardb.scalar-labs.com/docs/latest/api-guide/#group-commit-for-the-coordinator-table) (`scalar.db.consensus_commit.coordinator.group_commit.enabled` must be `false`.)
106
-
- Coordinator write omission optimization in [Performance-related configurations](https://scalardb.scalar-labs.com/docs/latest/configurations#performance-related-configurations) (`scalar.db.consensus_commit.coordinator.write_omission_on_read_only.enabled` must be `false`.)
Copy file name to clipboardExpand all lines: docs/how-to-run-applications.mdx
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,10 +81,9 @@ You can configure the isolation level of Ledger as follows. If you are unsure ab
81
81
82
82
#### Limitations
83
83
84
-
While ScalarDL leverages ScalarDB, the following ScalarDB features are not compatible with the consistency guarantee mechanism of ScalarDL:
84
+
While ScalarDL leverages ScalarDB, the following ScalarDB feature is not compatible with the consistency guarantee mechanism of ScalarDL:
85
85
86
86
-[Group commit for the Coordinator table](https://scalardb.scalar-labs.com/docs/latest/api-guide/#group-commit-for-the-coordinator-table) (`scalar.db.consensus_commit.coordinator.group_commit.enabled` must be `false`.)
87
-
- Coordinator write omission optimization in [Performance-related configurations](https://scalardb.scalar-labs.com/docs/latest/configurations#performance-related-configurations) (`scalar.db.consensus_commit.coordinator.write_omission_on_read_only.enabled` must be `false`.)
Copy file name to clipboardExpand all lines: docs/quickstart-overview.mdx
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,6 @@ displayed_sidebar: docsEnglish
7
7
8
8
# Quickstart Overview
9
9
10
-
In this category, you can follow quickstart tutorials for how to get started with ScalarDL.
10
+
In this category, you can follow quickstart tutorials for how to get started with running a basic contract through ScalarDL Ledger by using the Java Client SDK.
11
11
12
-
ScalarDL offers two abstracted data stores for easy, seamless interaction with the ledger: HashStore and TableStore.
13
-
14
-
* HashStore provides interfaces for ensuring the authenticity of objects and collections, making it ideal for chain-of-custody and similar applications.
15
-
* TableStore offers an SQL-compatible interface for verifying table authenticity, enabling developers to build versatile, tamper-evident applications with familiar data models and interfaces.
16
-
17
-
To get started, refer to the following guides:
18
-
19
-
*[Get Started with ScalarDL HashStore](getting-started-hashstore.mdx)
20
-
*[Get Started with ScalarDL TableStore](getting-started-tablestore.mdx)
21
-
22
-
ScalarDL also includes primitive interfaces for more customized interactions with the ledger. To explore this approach, see [Get Started with ScalarDL Ledger](getting-started.mdx).
12
+
To get started, see [Run a Contract Through ScalarDL Ledger](getting-started.mdx).
Copy file name to clipboardExpand all lines: docs/scalardl-auditor-status-codes.mdx
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,15 +125,7 @@ The specified asset is not found.
125
125
**Message**
126
126
127
127
```markdown
128
-
Authentication between Ledger and Auditor is not correctly configured. Set %s along with a private key with %s or %s if you use digital signature authentication.
129
-
```
130
-
131
-
### `DL-AUDITOR-414003`
132
-
133
-
**Message**
134
-
135
-
```markdown
136
-
Authentication between Ledger and Auditor is not correctly configured. Set %s if you use HMAC authentication.
128
+
Authentication between Ledger and Auditor is not correctly configured. Set %s or set %s along with a private key with %s or %s.
Copy file name to clipboardExpand all lines: docs/scalardl-ledger-status-codes.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ The database operation in the function failed. Details: %s
190
190
**Message**
191
191
192
192
```markdown
193
-
Authentication between Ledger and Auditor is not correctly configured. Set a private key with %s or %s if you use digital signature authentication with Auditor enabled.
193
+
Authentication between Ledger and Auditor is not correctly configured. Set %s or set a private key with %s or %s.
0 commit comments