Skip to content

Commit fce97f2

Browse files
authored
Merge pull request #200 from Teradata/IDE-25126-Installation-&-Setup
Add comprehensive Trino CLI installation and setup guide for Trino-Teradata connector
2 parents 48a5ea4 + af61770 commit fce97f2

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Getting Started with Trino CLI: Installation and Setup
2+
1. Install Eclipse Termurin 24
3+
4+
2. Download the trino server file using the below command:
5+
6+
```
7+
wget https://repo1.maven.org/maven2/io/trino/trino-server/474/trino-server-474.tar.gz
8+
```
9+
10+
3. Extract the contents of the file using below command
11+
12+
```
13+
tar -xvzf trino-server-474.tar.gz
14+
```
15+
16+
4. create etc directory in trino-server-474
17+
18+
5. create below mentioned files under etc directory
19+
20+
## config.properties
21+
22+
```
23+
coordinator=true
24+
node-scheduler.include-coordinator=true
25+
http-server.http.port=8080
26+
discovery.uri=http://hostname:8080
27+
```
28+
29+
## jvm.config
30+
31+
```
32+
-server
33+
-Xmx16G
34+
-XX:InitialRAMPercentage=80
35+
-XX:MaxRAMPercentage=80
36+
-XX:G1HeapRegionSize=32M
37+
-XX:+ExplicitGCInvokesConcurrent
38+
-XX:+ExitOnOutOfMemoryError
39+
-XX:+HeapDumpOnOutOfMemoryError
40+
-XX:-OmitStackTraceInFastThrow
41+
-XX:ReservedCodeCacheSize=512M
42+
-XX:PerMethodRecompilationCutoff=10000
43+
-XX:PerBytecodeRecompilationCutoff=10000
44+
-Djdk.attach.allowAttachSelf=true
45+
-Djdk.nio.maxCachedBufferSize=2000000
46+
-Dfile.encoding=UTF-8
47+
# Allow loading dynamic agent used by JOL
48+
-XX:+EnableDynamicAgentLoading
49+
```
50+
51+
## node.properties
52+
53+
```
54+
node.environment=production
55+
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
56+
node.data-dir=/var/trino/data
57+
```
58+
59+
## catalog directory
60+
61+
create a file named teradata.properties
62+
63+
64+
65+
## Teradata connector properties
66+
67+
```
68+
connector.name=teradata
69+
connection-url=jdbc:teradata://hostname/
70+
connection-user=***
71+
connection-password=***
72+
```
73+
74+
6. Download trino-teradata zip file
75+
76+
7. Extract the zip file and place the folder: **trino-teradata-474** in **plugin** directory of **trino-server-474**
77+
78+
The structure should be as follows:
79+
80+
trino-server-474 → plugin → trino-teradata-474
81+
82+
8. Download the jar file from the given link in the trino-server-474 directory :
83+
84+
* https://repo1.maven.org/maven2/io/trino/trino-cli/474/trino-cli-474-executable.jar
85+
86+
* Make jar as executable by running ```chmod +x```
87+
88+
## Start Trino Server
89+
The installation provides a ```bin/launcher``` script that can be used manually or as a daemon startup script.
90+
91+
```
92+
bin/launcher start
93+
```
94+
95+
## Start Trino CLI
96+
Start Trino CLI using
97+
98+
```
99+
java -jar trino-cli-*-executable.jar --version
100+
```

0 commit comments

Comments
 (0)