This commit is contained in:
Zoltan Haindrich 2024-06-04 10:16:10 +00:00
parent fb4b32e5b7
commit 90c88aeab0
3 changed files with 19 additions and 35 deletions

View File

@ -501,8 +501,16 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>-Dquidem.uri=Xa</argument>
<argument>org.apache.druid.quidem.Launcher</argument>
</arguments>
<systemProperties>
<projectProperties />
<systemProperty>
<key>quidem.uri</key>
<value>myvalue</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>

View File

@ -27,6 +27,8 @@ import org.apache.druid.sql.calcite.SqlTestFrameworkConfig.ConfigurationInstance
import org.apache.druid.sql.calcite.SqlTestFrameworkConfig.SqlTestFrameworkConfigStore;
import org.apache.druid.sql.calcite.util.SqlTestFramework;
import java.util.Properties;
public class Launcher
{
static final SqlTestFrameworkConfigStore CONFIG_STORE = new SqlTestFrameworkConfigStore(
@ -57,11 +59,20 @@ public class Launcher
public static void main(String[] args) throws Exception
{
try {
String quidemUri = System.getProperty(QUIDEM_URI, "druidtest:///");
Properties p = System.getProperties();
for ( Object string : p.keySet()) {
log.info("[%s] -> %s", string, p.get(string));
}
log.info("Starting Quidem with URI[%s]", quidemUri);
Launcher launcher = new Launcher(quidemUri);
launcher.start();
launcher.lifecycle.join();
} catch (Exception e) {
e.printStackTrace();
}
}
}

View File

@ -1,35 +0,0 @@
<?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
~
~ http://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 status="DEBUG">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="debug">
<AppenderRef ref="Console"/>
</Root>
<Logger level="debug" name="org.apache.druid" additivity="false">
<AppenderRef ref="Console"/>
</Logger>
</Loggers>
</Configuration>