Skip to content

Commit e35c40c

Browse files
committed
Java:新增 APIJSONDemo-BigData,已初步验证 PrestoDB 可用
1 parent 13e4551 commit e35c40c

File tree

17 files changed

+568
-0
lines changed

17 files changed

+568
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ APIJSON-Java-Server/APIJSONBoot-MultiDataSource/.idea
1717
APIJSON-Java-Server/APIJSONDemo-Druid/.idea
1818
vcs.xml
1919
APIJSON-Java-Server/APIJSONDemo-HikariCP/.idea
20+
APIJSON-Java-Server/APIJSONBigData/.settings
21+
APIJSON-Java-Server/APIJSONDemo-BigData/.idea
22+
APIJSON-Java-Server/APIJSONDemo-BigData/target
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# APIJSONDemo
2+
3+
APIJSON + SpringBoot 初级使用的最简单 Demo
4+
5+
### 运行
6+
7+
右键 DemoApplication > Run As > Java Application
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# PrestoDB 的配置文件 Demo
2+
3+
复制到 Presto Server 源文件根目录,具体参考官方文档:<br />
4+
5+
https://prestodb.io/docs/current/installation/deployment.html#configuring-presto
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connector.name=hive-hadoop2
2+
hive.metastore.uri=thrift://hive:9083
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
connector.name=mongodb
2+
mongodb.seeds=mongodb
3+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
connector.name=mysql
2+
connection-url=jdbc:mysql://localhost:3306
3+
connection-user=root
4+
connection-password=apijson
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
connector.name=postgresql
2+
connection-url=jdbc:postgresql://postgres:5432
3+
connection-user=root
4+
connection-password=apijson
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
connector.name=tpch
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coordinator=true
2+
node-scheduler.include-coordinator=true
3+
http-server.http.port=8099
4+
discovery-server.enabled=true
5+
discovery.uri=http://localhost:8099
6+
7+
query.max-memory=500MB
8+
query.max-memory-per-node=200MB
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-Xmx1G
2+
-XX:+UseG1GC
3+
-XX:G1HeapRegionSize=32M
4+
-XX:+UseGCOverheadLimit
5+
-XX:+ExplicitGCInvokesConcurrent

0 commit comments

Comments
 (0)