http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/test/ReplicationIT.java ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/test/ReplicationIT.java b/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/test/ReplicationIT.java deleted file mode 100644 index 21f382b..0000000 --- a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/test/ReplicationIT.java +++ /dev/null @@ -1,117 +0,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 - * - * 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. - */ -package org.apache.asterix.installer.test; - -import java.io.File; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; -import java.util.logging.Logger; - -import org.apache.asterix.event.model.AsterixInstance.State; -import org.apache.asterix.test.base.RetainLogsRule; -import org.apache.asterix.test.common.TestExecutor; -import org.apache.asterix.testframework.context.TestCaseContext; -import org.apache.hyracks.util.file.FileUtil; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TestRule; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; - -@RunWith(Parameterized.class) -public class ReplicationIT { - - private static final String PATH_BASE = FileUtil.joinPath("src", "test", "resources", "integrationts", - "replication"); - private static final String PATH_ACTUAL = FileUtil.joinPath("target", "ittest"); - private static final Logger LOGGER = Logger.getLogger(ReplicationIT.class.getName()); - private static String reportPath = new File( - FileUtil.joinPath("target", "failsafe-reports")).getAbsolutePath(); - - private final TestExecutor testExecutor = new TestExecutor(); - private TestCaseContext tcCtx; - private static String scriptHomePath; - private static File asterixInstallerPath; - private static ProcessBuilder pb; - private static Map<String, String> env; - - public ReplicationIT(TestCaseContext tcCtx) { - this.tcCtx = tcCtx; - } - - @Rule - public TestRule retainLogs = new RetainLogsRule(AsterixInstallerIntegrationUtil.getManagixHome(), reportPath, this); - - @BeforeClass - public static void setUp() throws Exception { - try { - pb = new ProcessBuilder(); - env = pb.environment(); - asterixInstallerPath = new File(System.getProperty("user.dir")); - scriptHomePath = FileUtil.joinPath(asterixInstallerPath.getPath(), "src", "test", "resources", - "integrationts", "replication", "scripts"); - env.put("SCRIPT_HOME", scriptHomePath); - } catch (Throwable th) { - th.printStackTrace(); - throw th; - } - } - - @Before - public void before() throws Exception { - LOGGER.info("Creating new instance..."); - AsterixInstallerIntegrationUtil.init(AsterixInstallerIntegrationUtil.LOCAL_CLUSTER_CHAINED_DECLUSTERING_REP_PATH); - LOGGER.info("Instance created."); - AsterixInstallerIntegrationUtil.transformIntoRequiredState(State.ACTIVE); - LOGGER.info("Instance is in ACTIVE state."); - } - - @RetainLogsRule.After - public void after() throws Exception { - LOGGER.info("Destroying instance..."); - AsterixInstallerIntegrationUtil.deinit(); - LOGGER.info("Instance destroyed."); - } - - @Test - public void test() throws Exception { - testExecutor.executeTest(PATH_ACTUAL, tcCtx, pb, false); - } - - @Parameterized.Parameters(name = "ReplicationIT {index}: {0}") - public static Collection<Object[]> tests() throws Exception { - Collection<Object[]> testArgs = buildTestsInXml(TestCaseContext.DEFAULT_TESTSUITE_XML_NAME); - if (testArgs.size() == 0) { - testArgs = buildTestsInXml(TestCaseContext.DEFAULT_TESTSUITE_XML_NAME); - } - return testArgs; - } - - protected static Collection<Object[]> buildTestsInXml(String xmlfile) throws Exception { - Collection<Object[]> testArgs = new ArrayList<>(); - TestCaseContext.Builder b = new TestCaseContext.Builder(); - for (TestCaseContext ctx : b.build(new File(PATH_BASE), xmlfile)) { - testArgs.add(new Object[] { ctx }); - } - return testArgs; - } -}
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/DmlRecoveryIT.java ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/DmlRecoveryIT.java b/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/DmlRecoveryIT.java deleted file mode 100644 index 4f04e79..0000000 --- a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/DmlRecoveryIT.java +++ /dev/null @@ -1,132 +0,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 - * - * 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. - */ -package org.apache.asterix.installer.transaction; - -import java.io.File; -import java.io.FilenameFilter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; -import java.util.logging.Logger; - -import org.apache.asterix.test.base.RetainLogsRule; -import org.apache.asterix.test.common.TestExecutor; -import org.apache.asterix.testframework.context.TestCaseContext; -import org.apache.commons.io.FileUtils; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TestRule; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameters; - -@RunWith(Parameterized.class) -public class DmlRecoveryIT { - - // variable to indicate whether this test will be executed - - private static final Logger LOGGER = Logger.getLogger(RecoveryIT.class.getName()); - private static final String PATH_ACTUAL = "target" + File.separator + "rttest" + File.separator; - - private static final String TESTSUITE_PATH_BASE = "../asterix-app/src/test/resources/runtimets/"; - - private TestCaseContext tcCtx; - private static File asterixInstallerPath; - private static File installerTargetPath; - private static String managixHomeDirName; - private static String managixHomePath; - private static String scriptHomePath; - private static String reportPath; - private static ProcessBuilder pb; - private static Map<String, String> env; - private final TestExecutor testExecutor = new TestExecutor(); - - @Rule - public TestRule retainLogs = new RetainLogsRule(managixHomePath, reportPath, this); - - @BeforeClass - public static void setUp() throws Exception { - File outdir = new File(PATH_ACTUAL); - outdir.mkdirs(); - - asterixInstallerPath = new File(System.getProperty("user.dir")); - installerTargetPath = new File(asterixInstallerPath, "target"); - reportPath = new File(installerTargetPath, "failsafe-reports").getAbsolutePath(); - managixHomeDirName = installerTargetPath.list(new FilenameFilter() { - @Override - public boolean accept(File dir, String name) { - return new File(dir, name).isDirectory() && name.startsWith("asterix-installer") - && name.endsWith("binary-assembly"); - } - })[0]; - managixHomePath = new File(installerTargetPath, managixHomeDirName).getAbsolutePath(); - LOGGER.info("MANAGIX_HOME=" + managixHomePath); - - pb = new ProcessBuilder(); - env = pb.environment(); - env.put("MANAGIX_HOME", managixHomePath); - scriptHomePath = asterixInstallerPath + File.separator + "src" + File.separator + "test" + File.separator - + "resources" + File.separator + "transactionts" + File.separator + "scripts"; - env.put("SCRIPT_HOME", scriptHomePath); - - TestExecutor.executeScript(pb, - scriptHomePath + File.separator + "dml_recovery" + File.separator + "configure_and_validate.sh"); - TestExecutor.executeScript(pb, - scriptHomePath + File.separator + "dml_recovery" + File.separator + "stop_and_delete.sh"); - - TestExecutor.executeScript(pb, - scriptHomePath + File.separator + "dml_recovery" + File.separator + "create_and_start.sh"); - - } - - @AfterClass - public static void tearDown() throws Exception { - File outdir = new File(PATH_ACTUAL); - FileUtils.deleteDirectory(outdir); - TestExecutor.executeScript(pb, - scriptHomePath + File.separator + "dml_recovery" + File.separator + "stop_and_delete.sh"); - TestExecutor.executeScript(pb, - scriptHomePath + File.separator + "dml_recovery" + File.separator + "shutdown.sh"); - - } - - @Parameters - public static Collection<Object[]> tests() throws Exception { - - Collection<Object[]> testArgs = new ArrayList<Object[]>(); - TestCaseContext.Builder b = new TestCaseContext.Builder(); - for (TestCaseContext ctx : b.build(new File(TESTSUITE_PATH_BASE))) { - if (ctx.getTestCase().getFilePath().equals("dml")) { - testArgs.add(new Object[] { ctx }); - } - } - return testArgs; - } - - public DmlRecoveryIT(TestCaseContext tcCtx) { - this.tcCtx = tcCtx; - } - - @Test - public void test() throws Exception { - testExecutor.executeTest(PATH_ACTUAL, tcCtx, pb, true); - } -} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/RecoveryIT.java ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/RecoveryIT.java b/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/RecoveryIT.java deleted file mode 100644 index 0e7ac8b..0000000 --- a/asterixdb/asterix-installer/src/test/java/org/apache/asterix/installer/transaction/RecoveryIT.java +++ /dev/null @@ -1,128 +0,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 - * - * 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. - */ -package org.apache.asterix.installer.transaction; - -import java.io.File; -import java.io.FilenameFilter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; -import java.util.logging.Logger; - -import org.apache.asterix.test.base.RetainLogsRule; -import org.apache.asterix.test.common.TestExecutor; -import org.apache.asterix.test.runtime.HDFSCluster; -import org.apache.asterix.testframework.context.TestCaseContext; -import org.apache.commons.io.FileUtils; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TestRule; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameters; - -@RunWith(Parameterized.class) -public class RecoveryIT { - - private static final Logger LOGGER = Logger.getLogger(RecoveryIT.class.getName()); - private static final String PATH_ACTUAL = "target" + File.separator + "rttest" + File.separator; - private static final String PATH_BASE = "src/test/resources/transactionts/"; - private static final String HDFS_BASE = "../asterix-app/"; - private TestCaseContext tcCtx; - private static File asterixInstallerPath; - private static File installerTargetPath; - private static String managixHomeDirName; - private static String managixHomePath; - private static String scriptHomePath; - private static String reportPath; - private static ProcessBuilder pb; - private static Map<String, String> env; - private final TestExecutor testExecutor = new TestExecutor(); - - @Rule - public TestRule retainLogs = new RetainLogsRule(managixHomePath, reportPath, this); - - @BeforeClass - public static void setUp() throws Exception { - File outdir = new File(PATH_ACTUAL); - outdir.mkdirs(); - - asterixInstallerPath = new File(System.getProperty("user.dir")); - installerTargetPath = new File(asterixInstallerPath, "target"); - reportPath = new File(installerTargetPath, "failsafe-reports").getAbsolutePath(); - managixHomeDirName = installerTargetPath.list(new FilenameFilter() { - @Override - public boolean accept(File dir, String name) { - return new File(dir, name).isDirectory() && name.startsWith("asterix-installer") - && name.endsWith("binary-assembly"); - } - })[0]; - managixHomePath = new File(installerTargetPath, managixHomeDirName).getAbsolutePath(); - LOGGER.info("MANAGIX_HOME=" + managixHomePath); - - pb = new ProcessBuilder(); - env = pb.environment(); - env.put("MANAGIX_HOME", managixHomePath); - scriptHomePath = asterixInstallerPath + File.separator + "src" + File.separator + "test" + File.separator - + "resources" + File.separator + "transactionts" + File.separator + "scripts"; - env.put("SCRIPT_HOME", scriptHomePath); - - TestExecutor.executeScript(pb, scriptHomePath + File.separator + "setup_teardown" + File.separator - + "configure_and_validate.sh"); - TestExecutor.executeScript(pb, scriptHomePath + File.separator + "setup_teardown" + File.separator - + "stop_and_delete.sh"); - HDFSCluster.getInstance().setup(HDFS_BASE); - } - - @AfterClass - public static void tearDown() throws Exception { - File outdir = new File(PATH_ACTUAL); - FileUtils.deleteDirectory(outdir); - File dataCopyDir = new File( - managixHomePath + File.separator + ".." + File.separator + ".." + File.separator + "data"); - FileUtils.deleteDirectory(dataCopyDir); - TestExecutor.executeScript(pb, scriptHomePath + File.separator + "setup_teardown" + File.separator - + "stop_and_delete.sh"); - TestExecutor.executeScript(pb, scriptHomePath + File.separator + "setup_teardown" + File.separator - + "shutdown.sh"); - HDFSCluster.getInstance().cleanup(); - } - - @Parameters(name = "RecoveryIT {index}: {0}") - public static Collection<Object[]> tests() throws Exception { - Collection<Object[]> testArgs = new ArrayList<Object[]>(); - TestCaseContext.Builder b = new TestCaseContext.Builder(); - for (TestCaseContext ctx : b.build(new File(PATH_BASE))) { - testArgs.add(new Object[] { ctx }); - } - return testArgs; - } - - public RecoveryIT(TestCaseContext tcCtx) { - this.tcCtx = tcCtx; - } - - @Test - public void test() throws Exception { - testExecutor.executeTest(PATH_ACTUAL, tcCtx, pb, false); - } - -} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/Vagrantfile ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/Vagrantfile b/asterixdb/asterix-installer/src/test/resources/clusterts/Vagrantfile deleted file mode 100644 index 781a4da..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/Vagrantfile +++ /dev/null @@ -1,76 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# 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. - -# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" - -Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - - config.vm.provision "file", source: "id_rsa", destination: "/home/vagrant/.ssh/id_rsa" - config.vm.provision "file", source: "id_rsa.pub", destination: "/home/vagrant/.ssh/id_rsa.pub" - config.vm.provision "file", source: "known_hosts", destination: "/home/vagrant/.ssh/known_hosts" - config.vm.provision "file", source: "hosts", destination: "/home/vagrant/hosts" - - config.vm.provision "shell", inline: "mv /home/vagrant/hosts /etc/hosts" - config.vm.provision "shell", privileged: false, inline: "chmod 400 /home/vagrant/.ssh/id_rsa" - config.vm.provision "shell", privileged: false, inline: "cat /home/vagrant/.ssh/id_rsa.pub >> /home/vagrant/.ssh/authorized_keys" - config.vm.provision "shell", privileged: false, inline: "chmod 600 /home/vagrant/.ssh/authorized_keys" - $java_inst = <<-END - wget -q --no-cookies --no-check-certificate \ - --header 'Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' \ - 'http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.rpm' \ - -O /tmp/jdk.rpm; - - sudo yum -y localinstall /tmp/jdk.rpm; - sudo yum -y install unzip; - - END - config.vm.provision "shell", inline: $java_inst - - config.vm.define "nc2" do |nc| - nc.vm.box = "bento/centos-6.7" - nc.vm.hostname = "nc2" - nc.vm.network "private_network", ip: "10.10.0.4" - config.vm.provider "virtualbox" do |v| - v.memory = 3096 - v.cpus = 2 - end - end - config.vm.define "nc1" do |nc| - nc.vm.box = "bento/centos-6.7" - nc.vm.hostname = "nc1" - nc.vm.network "private_network", ip: "10.10.0.3" - config.vm.provider "virtualbox" do |v| - v.memory = 3096 - v.cpus = 2 - end - end - - config.vm.define "cc" do |cc| - cc.vm.box = "bento/centos-6.7" - cc.vm.hostname = "cc" - cc.vm.network "private_network", ip: "10.10.0.2" - config.vm.provider "virtualbox" do |v| - v.memory = 1024 - v.cpus = 1 - end - end - -end http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/cluster.xml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/cluster.xml b/asterixdb/asterix-installer/src/test/resources/clusterts/cluster.xml deleted file mode 100644 index 5ad3921..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/cluster.xml +++ /dev/null @@ -1,56 +0,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 - ! - ! 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. - !--> -<cluster xmlns="cluster"> - - <name>vagrant</name> - - <username>vagrant</username> - - <working_dir> - <dir>/vagrant/managix-working</dir> - <NFS>true</NFS> - </working_dir> - - <log_dir>/home/vagrant/logs/</log_dir> - <txn_log_dir>/home/vagrant/tx_logs</txn_log_dir> - <iodevices>/home/vagrant/p1,/home/vagrant/p2</iodevices> - - <store>storage</store> - - <java_home>/usr/java/latest</java_home> - - <master_node> - <id>cc</id> - <client_ip>10.10.0.2</client_ip> - <cluster_ip>10.10.0.2</cluster_ip> - <client_port>1098</client_port> - <cluster_port>1099</cluster_port> - <http_port>8888</http_port> - </master_node> - <node> - <id>nc1</id> - <cluster_ip>10.10.0.3</cluster_ip> - <nc_api_port>19004</nc_api_port> - </node> - <node> - <id>nc2</id> - <cluster_ip>10.10.0.4</cluster_ip> - <nc_api_port>19005</nc_api_port> - </node> -</cluster> http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/cluster_with_replication.xml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/cluster_with_replication.xml b/asterixdb/asterix-installer/src/test/resources/clusterts/cluster_with_replication.xml deleted file mode 100644 index 003b3c8..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/cluster_with_replication.xml +++ /dev/null @@ -1,65 +0,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 - ! - ! 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. - !--> -<cluster xmlns="cluster"> - - <name>vagrant</name> - - <username>vagrant</username> - - <working_dir> - <dir>/vagrant/asterix/managix-working</dir> - <NFS>true</NFS> - </working_dir> - - <log_dir>/home/vagrant/asterix/logs/</log_dir> - <txn_log_dir>/home/vagrant/asterix/tx_logs</txn_log_dir> - <iodevices>/home/vagrant/asterix/p1,/home/vagrant/asterix/p2</iodevices> - - <store>storage</store> - - <java_home>/usr/java/latest</java_home> - <metadata_node>nc1</metadata_node> - - <data_replication> - <enabled>true</enabled> - <replication_port>2000</replication_port> - <replication_factor>2</replication_factor> - <auto_failover>true</auto_failover> - <replication_time_out>10</replication_time_out> - </data_replication> - - <master_node> - <id>cc</id> - <client_ip>10.10.0.2</client_ip> - <cluster_ip>10.10.0.2</cluster_ip> - <client_port>1098</client_port> - <cluster_port>1099</cluster_port> - <http_port>8888</http_port> - </master_node> - <node> - <id>nc1</id> - <cluster_ip>10.10.0.3</cluster_ip> - <nc_api_port>19004</nc_api_port> - </node> - <node> - <id>nc2</id> - <cluster_ip>10.10.0.4</cluster_ip> - <nc_api_port>19005</nc_api_port> - </node> -</cluster> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/hosts ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/hosts b/asterixdb/asterix-installer/src/test/resources/clusterts/hosts deleted file mode 100644 index 9c68525..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/hosts +++ /dev/null @@ -1,24 +0,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 -# -# 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. -# -127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 -::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 -10.10.0.2 cc -10.10.0.3 nc1 -10.10.0.4 nc2 -10.10.0.5 nc3 http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa b/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa deleted file mode 100644 index 7d6a083..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI -w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP -kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2 -hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO -Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW -yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd -ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1 -Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf -TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK -iqwZN0mwpwU7YSyJhlT4YV1F3n4YjLswM5wJs2oqm0jssQu/BT0tyEXNDYBLEF4A -sClaWuSJ2kjq7KhrrYXzagqhnSei9ODYFShJu8UWVec3Ihb5ZXlzO6vdNQ1J9Xsf -4m+2ywKBgQD6qFxx/Rv9CNN96l/4rb14HKirC2o/orApiHmHDsURs5rUKDx0f9iP -cXN7S1uePXuJRK/5hsubaOCx3Owd2u9gD6Oq0CsMkE4CUSiJcYrMANtx54cGH7Rk -EjFZxK8xAv1ldELEyxrFqkbE4BKd8QOt414qjvTGyAK+OLD3M2QdCQKBgQDtx8pN -CAxR7yhHbIWT1AH66+XWN8bXq7l3RO/ukeaci98JfkbkxURZhtxV/HHuvUhnPLdX -3TwygPBYZFNo4pzVEhzWoTtnEtrFueKxyc3+LjZpuo+mBlQ6ORtfgkr9gBVphXZG -YEzkCD3lVdl8L4cw9BVpKrJCs1c5taGjDgdInQKBgHm/fVvv96bJxc9x1tffXAcj -3OVdUN0UgXNCSaf/3A/phbeBQe9xS+3mpc4r6qvx+iy69mNBeNZ0xOitIjpjBo2+ -dBEjSBwLk5q5tJqHmy/jKMJL4n9ROlx93XS+njxgibTvU6Fp9w+NOFD/HvxB3Tcz -6+jJF85D5BNAG3DBMKBjAoGBAOAxZvgsKN+JuENXsST7F89Tck2iTcQIT8g5rwWC -P9Vt74yboe2kDT531w8+egz7nAmRBKNM751U/95P9t88EDacDI/Z2OwnuFQHCPDF -llYOUI+SpLJ6/vURRbHSnnn8a/XG+nzedGH5JGqEJNQsz+xT2axM0/W/CRknmGaJ -kda/AoGANWrLCz708y7VYgAtW2Uf1DPOIYMdvo6fxIB5i9ZfISgcJ/bbCUkFrhoH -+vq/5CIWxCPp0f85R4qxxQ5ihxJ0YDQT9Jpx4TMss4PSavPaBH3RXow5Ohe+bYoQ -NE5OgEXk2wVfZczCZpigBKbKZHNYcelXtTt/nP3rsCuGcM4h53s= ------END RSA PRIVATE KEY----- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa.pub ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa.pub b/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa.pub deleted file mode 100644 index f762934..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/clusterts/known_hosts ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/clusterts/known_hosts b/asterixdb/asterix-installer/src/test/resources/clusterts/known_hosts deleted file mode 100644 index 273f9f3..0000000 --- a/asterixdb/asterix-installer/src/test/resources/clusterts/known_hosts +++ /dev/null @@ -1,6 +0,0 @@ -::1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4DTPG2/P073Ak5htIlGYxFh9BYo3bwxBW/SZ1+MDtBUGSEFG0wP4dDRNxwzdmc2EB5JbiAb4t2wLtlFJUbhZUuhxxv2WP4Uastt+U2CWe8+/OsSCAieDv9+dvhT2YxkyAwSCFjyv9T+ftE7YyuIqgBoDTcsvCGzhcl80xd/mQuboneYdR8A0Q2cbd47BQ1D+76HW3l0t51N4fsvbds/LdkXtqVqCadiTKuZ/Ki9JkWlIwffF1IvtARdkW5hyA2fkdJcNBGcfIlxcEvXUvEcIi2FVdY+rJTR9014SrspPtfTyPe4mMgwNQGGT1dm9tnjhq/N6WrYOQ8J3HUn+r7tO5w== -127.0.0.1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw== -nc1,10.10.0.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw== -nc2,10.10.0.4 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw==10.10.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw== -10.10.0.4 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw== -10.10.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9gfVcSU968DdflnfJkup3em0MFX13uUTxsiaPisyahjcc++d+9yo+OL5Avffznal9Ev9hzptYclUw9Rx1fSs09g6w8qRiaRLHhYw3mgAer6vG9NZxaj2i2TAVUjdPKZDOSgtFzvPZiwWfhdqi6CmzMRi3MO5G3LzIRzB+qjMitgJ4p/R0mLTik40KTBQNxgN5EmegoANjyBDbdvBKf4vQvMwYGvByq4rMDyDCC8JgcR+B1kR8xNKwDYZFokuSrmAw6PXUmjyW6FaWaUFvrqaj64l1yHqLPcZDTbcSzum6+RaR5Gg2upfs3ahICOzzlnwnwtZxznWKU+rNd4T29cHOw== \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/docker/Dockerfile ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/docker/Dockerfile b/asterixdb/asterix-installer/src/test/resources/docker/Dockerfile deleted file mode 100644 index 1b0193c..0000000 --- a/asterixdb/asterix-installer/src/test/resources/docker/Dockerfile +++ /dev/null @@ -1,54 +0,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 -# -# 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. - -FROM centos -MAINTAINER AsterixDB Team - -RUN echo 'LANG="en_US.UTF-8"' > /etc/sysconfig/i18n ;echo 'ZONE="America/Los_Angeles"' > /etc/sysconfig/clock ;cp -a /usr/share/zoneinfo/America/Los_Angeles /etc/localtime -RUN echo "include_only=.us" >> /etc/yum/pluginconf.d/fastestmirror.conf -RUN yum -y update -RUN yum install -y unzip java-1.8.0-openjdk openssh-server openssh-clients python-setuptools wget curl net-tools - -RUN sshd-keygen -RUN sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config - -RUN useradd asterix -G wheel -s /bin/bash -m -RUN echo 'asterix:asterix' | chpasswd -RUN echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers -RUN echo 'Host *' >> /etc/ssh/ssh_config -RUN echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config - -CMD ["/usr/sbin/sshd", "-D"] - -RUN mkdir /asterixdb -RUN mkdir /asterixdb/asterix -RUN mkdir /asterixdb/data -COPY asterix-installer*.zip . -RUN unzip asterix-installer*.zip -d /asterixdb/asterix-installer/ -COPY id_rsa /root/.ssh/id_rsa -COPY id_rsa.pub /root/.ssh/id_rsa.pub -COPY cluster-config.xml /asterixdb/ - -RUN cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys -RUN chmod 600 /root/.ssh/id_rsa* -RUN chmod 700 /root/.ssh/authorized_keys - -ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0 -ENV JAVA_OPTS -Xmx2048m - -EXPOSE 19001 19002 8888 19003 50031 15001 http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/docker/cluster-config.xml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/docker/cluster-config.xml b/asterixdb/asterix-installer/src/test/resources/docker/cluster-config.xml deleted file mode 100644 index ed82a55..0000000 --- a/asterixdb/asterix-installer/src/test/resources/docker/cluster-config.xml +++ /dev/null @@ -1,80 +0,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 - ! - ! 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. - !--> -<cluster xmlns="cluster"> - - <name>asterix</name> - - <username>root</username> - - <working_dir> - <dir>/asterixdb/asterix/managix-working</dir> - <NFS>false</NFS> - </working_dir> - - <log_dir>/asterixdb/data/logs/</log_dir> - <txn_log_dir>/asterixdb/data/tx_logs</txn_log_dir> - <iodevices>/asterixdb/data/p1,/asterixdb/data/p2</iodevices> - - <store>storage</store> - - <java_home>/usr/lib/jvm/jre-1.8.0</java_home> - <metadata_node>nc1</metadata_node> - - <high_availability> - <enabled>true</enabled> - <data_replication> - <strategy>chained_declustering</strategy> - <replication_port>2016</replication_port> - <replication_time_out>30</replication_time_out> - <replication_factor>2</replication_factor> - </data_replication> - <fault_tolerance> - <strategy>auto</strategy> - </fault_tolerance> - </high_availability> - - <master_node> - <id>cc</id> - <client_ip>172.20.0.2</client_ip> - <cluster_ip>172.20.0.2</cluster_ip> - <client_port>1098</client_port> - <cluster_port>1099</cluster_port> - <http_port>8888</http_port> - </master_node> - <node> - <id>nc1</id> - <cluster_ip>172.20.0.3</cluster_ip> - <nc_api_port>19004</nc_api_port> - </node> - <node> - <id>nc2</id> - <cluster_ip>172.20.0.4</cluster_ip> - <nc_api_port>19005</nc_api_port> - </node> - <node> - <id>nc3</id> - <cluster_ip>172.20.0.5</cluster_ip> - <nc_api_port>19006</nc_api_port> - </node> - <node> - <id>nc4</id> - <cluster_ip>172.20.0.6</cluster_ip> - <nc_api_port>19007</nc_api_port> - </node> -</cluster> http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/docker/docker-compose.yml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/docker/docker-compose.yml b/asterixdb/asterix-installer/src/test/resources/docker/docker-compose.yml deleted file mode 100644 index 224b0a9..0000000 --- a/asterixdb/asterix-installer/src/test/resources/docker/docker-compose.yml +++ /dev/null @@ -1,116 +0,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 -# -# 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. - -version: "3.1" - -services: - cc: - image: asterix-test - container_name: cc - stdin_open: true - tty: true - volumes: - - ./asterix:/asterix - deploy: - resources: - limits: - memory: 1024M - networks: - asterix_net: - ipv4_address: 172.20.0.2 - ports: - - "19001:19001" - - nc1: - image: asterix-test - container_name: nc1 - stdin_open: true - tty: true - volumes: - - ./asterix:/asterix - deploy: - resources: - limits: - memory: 2560M - networks: - asterix_net: - ipv4_address: 172.20.0.3 - ports: - - "6001:15001" - - nc2: - image: asterix-test - container_name: nc2 - stdin_open: true - tty: true - volumes: - - ./asterix:/asterix - deploy: - resources: - limits: - memory: 2560M - networks: - asterix_net: - ipv4_address: 172.20.0.4 - ports: - - "6002:15001" - - nc3: - image: asterix-test - container_name: nc3 - stdin_open: true - tty: true - volumes: - - ./asterix:/asterix - deploy: - resources: - limits: - memory: 2560M - networks: - asterix_net: - ipv4_address: 172.20.0.5 - ports: - - "6003:15001" - - nc4: - image: asterix-test - container_name: nc4 - stdin_open: true - tty: true - volumes: - - ./asterix:/asterix - deploy: - resources: - limits: - memory: 2560M - networks: - asterix_net: - ipv4_address: 172.20.0.6 - ports: - - "6004:15001" - - -networks: - asterix_net: - driver: bridge - driver_opts: - com.docker.network.enable_ipv6: "false" - ipam: - driver: default - config: - - subnet: 172.20.0.0/24 http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/docker/id_rsa ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/docker/id_rsa b/asterixdb/asterix-installer/src/test/resources/docker/id_rsa deleted file mode 100644 index 7d6a083..0000000 --- a/asterixdb/asterix-installer/src/test/resources/docker/id_rsa +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI -w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP -kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2 -hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO -Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW -yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd -ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1 -Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf -TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK -iqwZN0mwpwU7YSyJhlT4YV1F3n4YjLswM5wJs2oqm0jssQu/BT0tyEXNDYBLEF4A -sClaWuSJ2kjq7KhrrYXzagqhnSei9ODYFShJu8UWVec3Ihb5ZXlzO6vdNQ1J9Xsf -4m+2ywKBgQD6qFxx/Rv9CNN96l/4rb14HKirC2o/orApiHmHDsURs5rUKDx0f9iP -cXN7S1uePXuJRK/5hsubaOCx3Owd2u9gD6Oq0CsMkE4CUSiJcYrMANtx54cGH7Rk -EjFZxK8xAv1ldELEyxrFqkbE4BKd8QOt414qjvTGyAK+OLD3M2QdCQKBgQDtx8pN -CAxR7yhHbIWT1AH66+XWN8bXq7l3RO/ukeaci98JfkbkxURZhtxV/HHuvUhnPLdX -3TwygPBYZFNo4pzVEhzWoTtnEtrFueKxyc3+LjZpuo+mBlQ6ORtfgkr9gBVphXZG -YEzkCD3lVdl8L4cw9BVpKrJCs1c5taGjDgdInQKBgHm/fVvv96bJxc9x1tffXAcj -3OVdUN0UgXNCSaf/3A/phbeBQe9xS+3mpc4r6qvx+iy69mNBeNZ0xOitIjpjBo2+ -dBEjSBwLk5q5tJqHmy/jKMJL4n9ROlx93XS+njxgibTvU6Fp9w+NOFD/HvxB3Tcz -6+jJF85D5BNAG3DBMKBjAoGBAOAxZvgsKN+JuENXsST7F89Tck2iTcQIT8g5rwWC -P9Vt74yboe2kDT531w8+egz7nAmRBKNM751U/95P9t88EDacDI/Z2OwnuFQHCPDF -llYOUI+SpLJ6/vURRbHSnnn8a/XG+nzedGH5JGqEJNQsz+xT2axM0/W/CRknmGaJ -kda/AoGANWrLCz708y7VYgAtW2Uf1DPOIYMdvo6fxIB5i9ZfISgcJ/bbCUkFrhoH -+vq/5CIWxCPp0f85R4qxxQ5ihxJ0YDQT9Jpx4TMss4PSavPaBH3RXow5Ohe+bYoQ -NE5OgEXk2wVfZczCZpigBKbKZHNYcelXtTt/nP3rsCuGcM4h53s= ------END RSA PRIVATE KEY----- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/docker/id_rsa.pub ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/docker/id_rsa.pub b/asterixdb/asterix-installer/src/test/resources/docker/id_rsa.pub deleted file mode 100644 index f762934..0000000 --- a/asterixdb/asterix-installer/src/test/resources/docker/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/asterix-configuration.xml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/asterix-configuration.xml b/asterixdb/asterix-installer/src/test/resources/integrationts/asterix-configuration.xml deleted file mode 100644 index 9583485..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/asterix-configuration.xml +++ /dev/null @@ -1,261 +0,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 - ! - ! 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. - !--> -<asterixConfiguration xmlns="asterixconf"> - - <property> - <name>nc.java.opts</name> - <value>-Xmx4096m -Dnode.Resolver="org.apache.asterix.external.util.IdentitiyResolverFactory"</value> - <description>JVM parameters for each Node Contoller (NC)</description> - </property> - - <property> - <name>cc.java.opts</name> - <value>-Xmx1024m -Dnode.Resolver="org.apache.asterix.external.util.IdentitiyResolverFactory"</value> - <description>JVM parameters for each Cluster Contoller (CC) - </description> - </property> - - <property> - <name>max.wait.active.cluster</name> - <value>60</value> - <description>Maximum wait (in seconds) for a cluster to be ACTIVE (all nodes are available) - before a submitted query/statement can be executed. (Default = 60 seconds) - </description> - </property> - - <property> - <name>storage.buffercache.pagesize</name> - <value>128KB</value> - <description>The page size in bytes for pages in the buffer cache. - (Default = "131072" // 128KB) - </description> - </property> - - <property> - <name>storage.buffercache.size</name> - <value>512MB</value> - <description>The size of memory allocated to the disk buffer cache. - The value should be a multiple of the buffer cache page size(Default - = "536870912" // 512MB) - </description> - </property> - - <property> - <name>storage.buffercache.maxopenfiles</name> - <value>214748364</value> - <description>The maximum number of open files in the buffer cache. - (Default = "214748364") - </description> - </property> - - <property> - <name>storage.memorycomponent.pagesize</name> - <value>128KB</value> - <description>The page size in bytes for pages allocated to memory - components. (Default = "131072" // 128KB) - </description> - </property> - - <property> - <name>storage.memorycomponent.numpages</name> - <value>256</value> - <description>The number of pages to allocate for a memory component. - This budget is shared by all the memory components of the primary - index and all its secondary indexes across all I/O devices on a node. - Note: in-memory components usually has fill factor of 75% since - the pages are 75% full and the remaining 25% is un-utilized. (Default = 256) - </description> - </property> - - <property> - <name>storage.metadata.memorycomponent.numpages</name> - <value>64</value> - <description>The number of pages to allocate for a memory component. - (Default = 64) - </description> - </property> - - <property> - <name>storage.memorycomponent.numcomponents</name> - <value>2</value> - <description>The number of memory components to be used per lsm index. - (Default = 2) - </description> - </property> - - <property> - <name>storage.memorycomponent.globalbudget</name> - <value>1GB</value> - <description>The total size of memory in bytes that the sum of all open memory - components cannot exceed. Consider this as the buffer cache for all memory - components of all indexes in a node. When this budget is fully used, a victim - dataset will be chosen. The chosen dataset must be evicted and closed to make - a space for another dataset. (Default = 512MB) - </description> - </property> - - <property> - <name>storage.lsm.bloomfilter.falsepositiverate</name> - <value>0.01</value> - <description>The maximum acceptable false positive rate for bloom - filters associated with LSM indexes. (Default = "0.01" // 1%) - </description> - </property> - - <property> - <name>txn.log.buffer.numpages</name> - <value>8</value> - <description>The number of in-memory log buffer pages. (Default = "8") - </description> - </property> - - <property> - <name>txn.log.buffer.pagesize</name> - <value>512KB</value> - <description>The size of pages in the in-memory log buffer. (Default = - "524288" // 512KB) - </description> - </property> - - <property> - <name>txn.log.partitionsize</name> - <value>2GB</value> - <description>The maximum size of a log file partition allowed before - rotating the log to the next partition. (Default = "2147483648" // - 2GB) - </description> - </property> - - <property> - <name>txn.log.checkpoint.lsnthreshold</name> - <value>67108864</value> - <description>The size of the window that the maximum LSN is allowed to - be ahead of the checkpoint LSN by. (Default = ""67108864" // 64M) - </description> - </property> - - <property> - <name>txn.log.checkpoint.pollfrequency</name> - <value>120</value> - <description>The time in seconds between that the checkpoint thread - waits between polls. (Default = "120" // 120s) - </description> - </property> - - <property> - <name>txn.log.checkpoint.history</name> - <value>0</value> - <description>The number of old log partition files to keep before - discarding. (Default = "0") - </description> - </property> - - <property> - <name>txn.lock.escalationthreshold</name> - <value>1000</value> - <description>The number of entity level locks that need to be acquired - before the locks are coalesced and escalated into a dataset level - lock. (Default = "1000") - </description> - </property> - - <property> - <name>txn.lock.shrinktimer</name> - <value>5000</value> - <description>The time in milliseconds to wait before deallocating - unused lock manager memory. (Default = "5000" // 5s) - </description> - </property> - - <property> - <name>txn.lock.timeout.waitthreshold</name> - <value>60000</value> - <description>The time in milliseconds to wait before labeling a - transaction which has been waiting for a lock timed-out. (Default = - "60000" // 60s) - </description> - </property> - - <property> - <name>txn.lock.timeout.sweepthreshold</name> - <value>10000</value> - <description>The time in milliseconds the timeout thread waits between - sweeps to detect timed-out transactions. (Default = "10000" // 10s) - </description> - </property> - - <property> - <name>compiler.sortmemory</name> - <value>32MB</value> - <description>The amount of memory in bytes given to sort operations. - (Default = "33554432" // 32MB) - </description> - </property> - - <property> - <name>compiler.joinmemory</name> - <value>32MB</value> - <description>The amount of memory in bytes given to join operations. - (Default = "33554432" // 32MB) - </description> - </property> - - <property> - <name>compiler.groupmemory</name> - <value>32MB</value> - <description>The amount of memory in bytes given to group-by operations. - (Default = "33554432" // 32MB) - </description> - </property> - - <property> - <name>compiler.framesize</name> - <value>128KB</value> - <description>The Hyracks frame size that the compiler configures per - job. (Default = "131072" // 128KB) - </description> - </property> - - <property> - <name>compiler.pregelix.home</name> - <value>~/pregelix</value> - </property> - - <property> - <name>web.port</name> - <value>19001</value> - <description>The port for the ASTERIX web interface. (Default = 19001) - </description> - </property> - - <property> - <name>api.port</name> - <value>19002</value> - <description>The port for the ASTERIX API server. (Default = 19002) - </description> - </property> - - <property> - <name>log.level</name> - <value>INFO</value> - <description>The minimum log level to be displayed. (Default = INFO) - </description> - </property> - -</asterixConfiguration> http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.1.ddl.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.1.ddl.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.1.ddl.aql deleted file mode 100644 index f188629..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.1.ddl.aql +++ /dev/null @@ -1,41 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -create type TestTypedAdapterOutputType as closed { - tweetid: int64, - message-text: string -} - -create dataset TweetsTestAdapter(TestTypedAdapterOutputType) -primary key tweetid; - -create feed TestTypedAdapterFeed -using "testlib#test_typed_adapter" ( -("num_output_records"="5"), -("type-name"="TestTypedAdapterOutputType")); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.2.update.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.2.update.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.2.update.aql deleted file mode 100644 index 40aec53..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.2.update.aql +++ /dev/null @@ -1,34 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -set wait-for-completion-feed "true"; - -connect feed TestTypedAdapterFeed to dataset TweetsTestAdapter; - -start feed TestTypedAdapterFeed; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.3.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.3.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.3.query.aql deleted file mode 100644 index 3df9d2b..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-adapters/typed_adapter/typed_adapter.3.query.aql +++ /dev/null @@ -1,32 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -for $x in dataset TweetsTestAdapter -order by $x.tweetid -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.1.ddl.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.1.ddl.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.1.ddl.aql deleted file mode 100644 index 5f3d322..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.1.ddl.aql +++ /dev/null @@ -1,54 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -create type TweetInputType as closed { - id: string, - username : string, - location : string, - text : string, - timestamp : string -} - -create type TweetOutputType as closed { - id: string, - username : string, - location : string, - text : string, - timestamp : string, - topics : {{string}} -} - -create feed TweetFeed -using localfs -(("type-name"="TweetInputType"), -("path"="asterix_nc1://../../../../../../asterix-app/data/twitter/obamatweets.adm"), -("format"="adm")); - -create dataset TweetsFeedIngest(TweetOutputType) -primary key id; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.2.update.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.2.update.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.2.update.aql deleted file mode 100644 index 9642992..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.2.update.aql +++ /dev/null @@ -1,35 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -set wait-for-completion-feed "true"; - -connect feed TweetFeed to dataset TweetsFeedIngest -apply function testlib#parseTweet; - -start feed TweetFeed; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.3.sleep.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.3.sleep.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.3.sleep.aql deleted file mode 100644 index 18bbbbc..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.3.sleep.aql +++ /dev/null @@ -1,26 +0,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 - * - * 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. - */ -/* - * Description : Create a socket feed with a client that pushes - * 10 records. The feed is connected to a dataset that is then - * queried for the data. - * Expected Res : Success - * Date : 24th Feb 2016 - */ -10000 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.4.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.4.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.4.query.aql deleted file mode 100644 index 8879fa8..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-feeds/feed_ingest/feed_ingest.4.query.aql +++ /dev/null @@ -1,32 +0,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 - * - * 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. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - The feed simulator simulates feed from a file in the local fs. - Associate with the feed an external user-defined function. The UDF - finds topics in each tweet. A topic is identified by a #. - Begin ingestion and apply external user defined function - * Expected Res : Success - * Date : 23rd Apr 2013 - */ -use dataverse externallibtest; - -for $x in dataset TweetsFeedIngest -order by $x.id -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.1.ddl.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.1.ddl.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.1.ddl.aql deleted file mode 100644 index db88912..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.1.ddl.aql +++ /dev/null @@ -1,24 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -create type CountryCapitalType if not exists as closed { -country: string, -capital: string -}; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.2.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.2.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.2.query.aql deleted file mode 100644 index 863da20..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/getCapital/getCapital.2.query.aql +++ /dev/null @@ -1,23 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -let $input:=["England","Italy","China","United States","India","Jupiter"] -for $country in $input -return testlib#getCapital($country) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.1.ddl.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.1.ddl.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.1.ddl.aql deleted file mode 100644 index ab247b4..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.1.ddl.aql +++ /dev/null @@ -1,27 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -create type TextType if not exists as closed { -id: int32, -text: string -}; - -create dataset Check(TextType) -primary key id; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.2.update.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.2.update.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.2.update.aql deleted file mode 100644 index eaf3f09..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.2.update.aql +++ /dev/null @@ -1,24 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -insert into dataset Check ( -{"id": 1, "text":"university of california, irvine"} -); - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.3.update.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.3.update.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.3.update.aql deleted file mode 100644 index df0d2e2..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.3.update.aql +++ /dev/null @@ -1,25 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -insert into dataset Check ( - for $x in dataset Check - let $y:=testlib#toUpper($x) - return $y -); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.4.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.4.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.4.query.aql deleted file mode 100644 index a1ced1e..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/insert-from-select/insert-from-select.4.query.aql +++ /dev/null @@ -1,24 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -for $x in dataset Check -where $x.id < 0 -order by $x.id -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/mysum/mysum.1.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/mysum/mysum.1.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/mysum/mysum.1.query.aql deleted file mode 100644 index 616df0d..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/mysum/mysum.1.query.aql +++ /dev/null @@ -1,22 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -let $x:=testlib#mysum(3,4) -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.1.ddl.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.1.ddl.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.1.ddl.aql deleted file mode 100644 index c6ccb43..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.1.ddl.aql +++ /dev/null @@ -1,25 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -create type TextType if not exists as closed { -id: int32, -text: string -}; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.2.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.2.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.2.query.aql deleted file mode 100644 index 08661d6..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-functions/toUpper/toUpper.2.query.aql +++ /dev/null @@ -1,23 +0,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 - * - * 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. - */ -use dataverse externallibtest; - -let $input:={"id": int32("1"), "text":"university of california, irvine"} -let $x:=testlib#toUpper($input) -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/dataverseDataset/dataverseDataset.1.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/dataverseDataset/dataverseDataset.1.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/dataverseDataset/dataverseDataset.1.query.aql deleted file mode 100644 index 341fbc2..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/dataverseDataset/dataverseDataset.1.query.aql +++ /dev/null @@ -1,21 +0,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 - * - * 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. - */ -for $x in dataset Metadata.Dataverse -order by $x.DataverseName -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/5dcf139e/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/functionDataset/functionDataset.1.query.aql ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/functionDataset/functionDataset.1.query.aql b/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/functionDataset/functionDataset.1.query.aql deleted file mode 100644 index ca06e3b..0000000 --- a/asterixdb/asterix-installer/src/test/resources/integrationts/library/queries/library-metadata/functionDataset/functionDataset.1.query.aql +++ /dev/null @@ -1,21 +0,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 - * - * 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. - */ -for $x in dataset Metadata.Function -order by $x.Name -return $x
