Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ VALUES
('agent', 'x86_64,aarch64', 'http://your-repo/', 'bigtop-manager-agent.tar.gz', null, 2),
('jdk8', 'x86_64', 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u452-b09/', 'OpenJDK8U-jdk_x64_linux_hotspot_8u452b09.tar.gz', 'SHA-256:9448308a21841960a591b47927cf2d44fdc4c0533a5f8111a4b243a6bafb5d27', 2),
('jdk8', 'aarch64', 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u452-b09/', 'OpenJDK8U-jdk_aarch64_linux_hotspot_8u452b09.tar.gz', 'SHA-256:d8a1aecea0913b7a1e0d737ba6f7ea99059b3f6fd17813d4a24e8b3fc3aee278', 2),
('jdk25', 'x86_64', 'https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/', 'OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz', 'sha256:987387933b64b9833846dee373b640440d3e1fd48a04804ec01a6dbf718e8ab8', 2),
('mysql-connector-j', 'x86_64,aarch64', 'https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/8.0.33/', 'mysql-connector-j-8.0.33.jar', 'SHA-256:e2a3b2fc726a1ac64e998585db86b30fa8bf3f706195b78bb77c5f99bf877bd9', 2);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ VALUES
('agent', 'x86_64,aarch64', 'http://your-repo/', 'bigtop-manager-agent.tar.gz', null, 2),
('jdk8', 'x86_64', 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u452-b09/', 'OpenJDK8U-jdk_x64_linux_hotspot_8u452b09.tar.gz', 'SHA-256:9448308a21841960a591b47927cf2d44fdc4c0533a5f8111a4b243a6bafb5d27', 2),
('jdk8', 'aarch64', 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u452-b09/', 'OpenJDK8U-jdk_aarch64_linux_hotspot_8u452b09.tar.gz', 'SHA-256:d8a1aecea0913b7a1e0d737ba6f7ea99059b3f6fd17813d4a24e8b3fc3aee278', 2),
('jdk25', 'x86_64', 'https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/', 'OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz', 'sha256:987387933b64b9833846dee373b640440d3e1fd48a04804ec01a6dbf718e8ab8', 2),
('mysql-connector-j', 'x86_64,aarch64', 'https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/8.0.33/', 'mysql-connector-j-8.0.33.jar', 'SHA-256:e2a3b2fc726a1ac64e998585db86b30fa8bf3f706195b78bb77c5f99bf877bd9', 2);

INSERT INTO llm_platform (credential, name, support_models)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->

<configuration>
<property>
<name>http-server.http.port</name>
<description>
Specifies the port for the HTTP server. Trino uses HTTP for all communication, internal and external.
</description>
<value>8080</value>
</property>
<property>
<name>node-scheduler.include-coordinator</name>
<description>
Allow scheduling work on the coordinator. For larger clusters, processing work on the coordinator
can impact query performance because the machine’s resources are not available for the critical task of
scheduling, managing and monitoring query execution.
</description>
<value>false</value>
</property>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->

<configuration>
<property>
<name>hive.storage-format</name>
<description>
The default file format used when creating new tables.
</description>
<value>ORC</value>
</property>
<property>
<name>hive.translate-hive-views</name>
<description>
hive translate hive views.
</description>
<value>true</value>
</property>
<property>
<name>fs.hadoop.enabled</name>
<description>
Activate the support for HDFS access. Defaults to false. Set to true to use HDFS and enable all other properties.
</description>
<value>true</value>
</property>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->

<configuration>
<property>
<name>content</name>
<description>This is the freemarker template for jvm.config file</description>
<value><![CDATA[
<#noparse>
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-server
-Xmx2G
-XX:InitialRAMPercentage=80
-XX:MaxRAMPercentage=80
-XX:G1HeapRegionSize=32M
-XX:+ExplicitGCInvokesConcurrent
-XX:+ExitOnOutOfMemoryError
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:ReservedCodeCacheSize=512M
-XX:PerMethodRecompilationCutoff=10000
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
-Dfile.encoding=UTF-8
# Allow loading dynamic agent used by JOL
-XX:+EnableDynamicAgentLoading
</#noparse>
]]>
</value>
<attrs>
<type>longtext</type>
</attrs>
</property>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->

<configuration>
<property>
<name>node.environment</name>
<description>
The name of the environment. All Trino nodes in a cluster must have the same environment name. The name must
start with a lowercase alphanumeric character and only contain lowercase alphanumeric or underscore (_)
characters.
</description>
<value>production</value>
</property>
<property>
<name>node.data-dir</name>
<description>
The location (filesystem path) of the data directory. Trino stores logs and other data here.
</description>
<value>/var/trino/data</value>
</property>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->

<metainfo>
<service>
<name>trino</name>
<display-name>Trino</display-name>
<desc>
Trino is a distributed SQL query engine designed to query large data sets distributed over one or more
heterogeneous data sources.
</desc>
<version>479</version>
<user>trino</user>
<license>Apache-2.0</license>

<components>
<component>
<name>trino_worker</name>
<display-name>Trino Worker</display-name>
<category>server</category>
<cardinality>0+</cardinality>
</component>
<component>
<name>trino_coordinator</name>
<display-name>Trino Coordinator</display-name>
<category>server</category>
<cardinality>1</cardinality>
</component>
<component>
<name>trino_client</name>
<display-name>Trino Client</display-name>
<category>client</category>
<cardinality>0+</cardinality>
</component>
</components>

<package-specifics>
<package-specific>
<architectures>
<arch>x86_64</arch>
<arch>aarch64</arch>
</architectures>
<packages>
<package>
<name>trino-server-479.tar.gz</name>
<checksum>SHA-256:ccc667a23400eb894bbb1e58d441ef54b04fde50f3e6a7723af84696a3bc5f92</checksum>
</package>
</packages>
</package-specific>
</package-specifics>
</service>
</metainfo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ private static boolean extract(TarArchiveInputStream ais, Path destDir, int skip
if (entry.isDirectory()) {
createDirectories(outputPath);
} else if (entry.isSymbolicLink()) {
createSymbolicLink(outputPath, entry.getLinkName());
Path linkNamePath = Paths.get(entry.getLinkName());
Path targetLink = linkNamePath.subpath(skipLevels, linkNamePath.getNameCount());
createSymbolicLink(outputPath, destDir.resolve(targetLink).normalize());
} else if (entry.isLink()) {
Path linkNamePath = Paths.get(entry.getLinkName());
Path targetLink = linkNamePath.subpath(skipLevels, linkNamePath.getNameCount());
createLink(outputPath, destDir.resolve(targetLink).normalize());
} else {
createFile(outputPath, ais);
}
Expand All @@ -116,18 +122,24 @@ private static void createDirectories(Path path) {
}
}

private static void createSymbolicLink(Path linkPath, String targetName) {
Path targetPath = linkPath.getParent().resolve(targetName).normalize();
if (!targetPath.isAbsolute()) {
targetPath = linkPath.getParent().resolve(targetPath).normalize();
private static void createSymbolicLink(Path linkPath, Path targetLink) {
createDirectories(linkPath.getParent());

try {
Files.createSymbolicLink(linkPath, targetLink);
} catch (IOException e) {
log.error("Failed to create symbolic link from {} to {}", new Object[] {linkPath, targetLink, e});
throw new StackException(e);
}
}

private static void createLink(Path linkPath, Path targetLink) {
createDirectories(linkPath.getParent());

try {
Files.createSymbolicLink(linkPath, targetPath);
Files.createLink(linkPath, targetLink);
} catch (IOException e) {
log.error("Failed to create symbolic link from {} to {}", linkPath, targetPath, e);
log.error("Failed to create link from {} to {}", new Object[] {linkPath, targetLink, e});
throw new StackException(e);
}
}
Expand Down
Loading