Skip to content

Commit ec63f99

Browse files
committed
Provides Thin build of HiveServer2 JDBC Driver
1 parent 18efbb2 commit ec63f99

File tree

7 files changed

+542
-123
lines changed

7 files changed

+542
-123
lines changed

README.md

+25-74
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,27 @@ The purpose of this project is to release HiveServer2 JDBC Driver and HiveServer
55
Use directly in Maven.
66

77
```xml
8-
<dependency>
9-
<groupId>io.github.linghengqian</groupId>
10-
<artifactId>hive-server2-jdbc-driver</artifactId>
11-
<version>{latest.version}</version>
12-
</dependency>
8+
9+
<dependencies>
10+
<dependency>
11+
<groupId>io.github.linghengqian</groupId>
12+
<artifactId>hive-server2-jdbc-driver-thin</artifactId>
13+
<version>{latest.version}</version>
14+
</dependency>
15+
</dependencies>
16+
```
17+
18+
Or use the Uber JAR of the HiveServer2 JDBC Driver.
19+
20+
```xml
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>io.github.linghengqian</groupId>
25+
<artifactId>hive-server2-jdbc-driver-uber</artifactId>
26+
<version>{latest.version}</version>
27+
</dependency>
28+
</dependencies>
1329
```
1430

1531
## Background
@@ -21,6 +37,9 @@ but commits are filtered from the master branch.
2137
In order to conduct faster testing in downstream projects,
2238
this project was created by an individual developer.
2339

40+
It is designed to be easily integrated into the nativeTest form of the GraalVM Native Image of `apache/shardingsphere`
41+
or other projects.
42+
2443
More background at https://lists.apache.org/thread/63lr45kyh78s64spwsjxjy8zdyzprnz1 .
2544

2645
## Release Note
@@ -29,72 +48,4 @@ The current project has not yet carried out any release work.
2948

3049
## contribute
3150

32-
Take Ubuntu WSL 22.04.4 as an example.
33-
It is assumed that `Git` is configured, and `SDKMAN!` and `Docker Engine` are installed.
34-
35-
```shell
36-
sdk install java 8.0.422-tem
37-
sdk install maven 3.9.8
38-
```
39-
40-
### How to test
41-
42-
- Execute the following command.
43-
44-
```shell
45-
sdk use java 8.0.422-tem
46-
git clone [email protected]:apache/hive.git
47-
cd ./hive/
48-
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
49-
mvn clean install -DskipTests
50-
mvn clean package -pl packaging -DskipTests -Pdocker
51-
cd ../
52-
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
53-
cd ./hive-server2-jdbc-driver/
54-
./mvnw clean test
55-
```
56-
57-
### How to publish via the central portal
58-
59-
First set up GPG. Take Ubuntu WSL 22.04.4 as an example.
60-
Take Ubuntu WSL 22.04.4 as an example and provide your real name and email address.
61-
62-
```shell
63-
gpg --gen-key
64-
gpg --list-keys
65-
gpg --keyserver keyserver.ubuntu.com --send-keys {Aloha, your keyid}
66-
```
67-
68-
According to https://central.sonatype.org/publish/publish-portal-maven/#credentials,
69-
use the following command to change the content of `~/.m2/setting.xml`.
70-
71-
```shell
72-
sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y
73-
gnome-text-editor ~/.m2/setting.xml
74-
```
75-
76-
```xml
77-
<settings>
78-
<servers>
79-
<server>
80-
<id>central</id>
81-
<username><!-- your token username --></username>
82-
<password><!-- your token password --></password>
83-
</server>
84-
</servers>
85-
</settings>
86-
```
87-
88-
Then execute the following command.
89-
90-
```shell
91-
sdk use java 8.0.422-tem
92-
git clone [email protected]:apache/hive.git
93-
cd ./hive/
94-
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
95-
mvn clean install -DskipTests
96-
cd ../
97-
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
98-
cd ./hive-server2-jdbc-driver/
99-
./mvnw -Ppublishing-via-the-central-portal -DskipTests clean deploy
100-
```
51+
Refer to [CONTRIBUTING](./doc/CONTRIBUTING.md) .

doc/CONTRIBUTING.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Take Ubuntu WSL 22.04.4 as an example.
2+
It is assumed that `Git` is configured, and `SDKMAN!` and `Docker Engine` are installed.
3+
4+
```shell
5+
sdk install java 8.0.422-tem
6+
sdk install maven 3.9.8
7+
```
8+
9+
### How to test
10+
11+
- Execute the following command.
12+
13+
```shell
14+
sdk use java 8.0.422-tem
15+
git clone [email protected]:apache/hive.git
16+
cd ./hive/
17+
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
18+
mvn clean install -DskipTests
19+
mvn clean package -pl packaging -DskipTests -Pdocker
20+
cd ../
21+
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
22+
cd ./hive-server2-jdbc-driver/
23+
./mvnw clean test
24+
```
25+
26+
### How to publish via the central portal
27+
28+
First set up GPG.
29+
Take Ubuntu WSL 22.04.4 as an example and provide your real name and email address.
30+
31+
```shell
32+
gpg --gen-key
33+
gpg --list-keys
34+
gpg --keyserver keyserver.ubuntu.com --send-keys {Aloha, your keyid}
35+
```
36+
37+
According to https://central.sonatype.org/publish/publish-portal-maven/#credentials,
38+
use the following command to change the content of `~/.m2/setting.xml`.
39+
40+
```shell
41+
sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y
42+
gnome-text-editor ~/.m2/setting.xml
43+
```
44+
45+
```xml
46+
<settings>
47+
<servers>
48+
<server>
49+
<id>central</id>
50+
<username><!-- your token username --></username>
51+
<password><!-- your token password --></password>
52+
</server>
53+
</servers>
54+
</settings>
55+
```
56+
57+
Then execute the following command.
58+
59+
```shell
60+
sdk use java 8.0.422-tem
61+
git clone [email protected]:apache/hive.git
62+
cd ./hive/
63+
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
64+
mvn clean install -DskipTests
65+
cd ../
66+
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
67+
cd ./hive-server2-jdbc-driver/
68+
./mvnw -Ppublishing-via-the-central-portal -DskipTests clean deploy
69+
```

0 commit comments

Comments
 (0)