diff --git a/.travis.yml b/.travis.yml
index f392338..9eb65e5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,9 +23,15 @@ dist: trusty
# that requires full git history, enable this
# before_install: git fetch --unshallow
+
language: java
jdk:
- - oraclejdk8
+ - oraclejdk9
+
+addons:
+ apt:
+ packages:
+ - oracle-java9-installer
cache:
directories:
@@ -33,13 +39,16 @@ cache:
env:
MAVEN_SKIP_RC=true
- MAVEN_OPTS="-Xmx2g"
+ MAVEN_OPTS="-Xmx2g --add-modules=ALL-SYSTEM"
# workaround added: https://github.com/travis-ci/travis-ci/issues/4629
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
-
install: true
-script: mvn clean install -DskipTests -T 4 -q -Pitests
+script:
+ - sudo mkdir -p /usr/lib/jvm/java-9-oracle/../lib/
+ - sudo jar -cf /usr/lib/jvm/java-9-oracle/../lib/tools.jar /etc/services
+ - mvn --version
+ - mvn clean install -DskipTests -q -Pitests -DskipSparkTests
diff --git a/accumulo-handler/pom.xml b/accumulo-handler/pom.xml
index edac1b1..a35019a 100644
--- a/accumulo-handler/pom.xml
+++ b/accumulo-handler/pom.xml
@@ -19,7 +19,7 @@
org.apache.hive
hive
- 3.0.0-SNAPSHOT
+ 3.0.0-9-SNAPSHOT
../pom.xml
diff --git a/beeline/pom.xml b/beeline/pom.xml
index b0a9a0b..7a17342 100644
--- a/beeline/pom.xml
+++ b/beeline/pom.xml
@@ -19,7 +19,7 @@
org.apache.hive
hive
- 3.0.0-SNAPSHOT
+ 3.0.0-9-SNAPSHOT
../pom.xml
@@ -29,7 +29,6 @@
..
- 1.6.6
diff --git a/beeline/src/test/org/apache/hive/beeline/TestBeelineArgParsing.java b/beeline/src/test/org/apache/hive/beeline/TestBeelineArgParsing.java
deleted file mode 100644
index 2884cc8..0000000
--- a/beeline/src/test/org/apache/hive/beeline/TestBeelineArgParsing.java
+++ /dev/null
@@ -1,334 +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.hive.beeline;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.PrintStream;
-import java.nio.file.Files;
-import java.nio.file.Paths;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.apache.hive.common.util.HiveTestUtils;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameters;
-
-/**
- * Unit test for Beeline arg parser.
- */
-@RunWith(Parameterized.class)
-public class TestBeelineArgParsing {
- private static final Logger LOG = LoggerFactory.getLogger(TestBeelineArgParsing.class.getName());
-
- private static final String dummyDriverClazzName = "DummyDriver";
-
- private String connectionString;
- private String driverClazzName;
- private String driverJarFileName;
- private boolean defaultSupported;
-
- public TestBeelineArgParsing(String connectionString, String driverClazzName, String driverJarFileName,
- boolean defaultSupported) {
- this.connectionString = connectionString;
- this.driverClazzName = driverClazzName;
- this.driverJarFileName = driverJarFileName;
- this.defaultSupported = defaultSupported;
- }
-
- public class TestBeeline extends BeeLine {
-
- String connectArgs = null;
- List properties = new ArrayList();
- List queries = new ArrayList();
-
- @Override
- boolean dispatch(String command) {
- String connectCommand = "!connect";
- String propertyCommand = "!properties";
- if (command.startsWith(connectCommand)) {
- this.connectArgs = command.substring(connectCommand.length() + 1, command.length());
- } else if (command.startsWith(propertyCommand)) {
- this.properties.add(command.substring(propertyCommand.length() + 1, command.length()));
- } else {
- this.queries.add(command);
- }
- return true;
- }
-
- public boolean addlocaldrivername(String driverName) {
- String line = "addlocaldrivername " + driverName;
- return getCommands().addlocaldrivername(line);
- }
-
- public boolean addLocalJar(String url){
- String line = "addlocaldriverjar " + url;
- return getCommands().addlocaldriverjar(line);
- }
- }
-
- @Parameters public static Collection