Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[to #348] add document about quick start #430

Closed
wants to merge 1 commit into from

Conversation

zz-jason
Copy link
Member

Signed-off-by: Jian Zhang zjsariel@gmail.com

What problem does this PR solve?

Issue Number: to #348

Problem Description: add a quick start about how to interact with TiKV.

What is changed and how it works?

add a quick start about how to interact with TiKV.

Code changes

  • No code

Check List for Tests

This PR has been tested by the at least one of the following methods:

  • No code

Side effects

  • NO side effects

Related changes

  • NO related changes

Signed-off-by: Jian Zhang <zjsariel@gmail.com>
- JDK: >= 1.8
- Maven: >= 3.8.4 (TODO: lower the required version)
- Java Client: >= v3.1.0
- TiKV: >= v4.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TiKV's version should be larger than 5.0.0 because RawKV API like CAS and TTL is not implemented in TiKV v4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote the required TiKV version to 4.0 for the following reasons:

  1. there are some users using TiKV 4.0 and lower versions
  2. there isn't any examples of TTL and CAS in this document


```sh
mvn clean package
java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I failed to execute this command, the error message is:

➜ java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App
Exception in thread "main" java.lang.NoClassDefFoundError: org/tikv/common/TiConfiguration
        at com.mycompany.app.App.main(App.java:11)
Caused by: java.lang.ClassNotFoundException: org.tikv.common.TiConfiguration
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 1 more

@marsishandsome @iosmanthus do you have any suggestions?

@zz-jason zz-jason closed this Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants