HBASE-14377 JavaHBaseContextSuite isn't being run.
This commit is contained in:
parent
ae3176b9c0
commit
fda317cebb
|
@ -40,6 +40,7 @@
|
||||||
<spark.version>1.3.0</spark.version>
|
<spark.version>1.3.0</spark.version>
|
||||||
<scala.version>2.10.4</scala.version>
|
<scala.version>2.10.4</scala.version>
|
||||||
<scala.binary.version>2.10</scala.binary.version>
|
<scala.binary.version>2.10</scala.binary.version>
|
||||||
|
<surefire.skipSecondPart>true</surefire.skipSecondPart>
|
||||||
<top.dir>${project.basedir}/..</top.dir>
|
<top.dir>${project.basedir}/..</top.dir>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -329,6 +330,14 @@
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.hbase</groupId>
|
||||||
|
<artifactId>hbase-annotations</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>test-jar</type>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.hbase</groupId>
|
<groupId>org.apache.hbase</groupId>
|
||||||
<artifactId>hbase-hadoop-compat</artifactId>
|
<artifactId>hbase-hadoop-compat</artifactId>
|
||||||
|
@ -507,7 +516,6 @@
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<testSourceDirectory>src/test/scala</testSourceDirectory>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|
|
@ -39,19 +39,23 @@ import org.apache.hadoop.hbase.client.Scan;
|
||||||
import org.apache.hadoop.hbase.client.Table;
|
import org.apache.hadoop.hbase.client.Table;
|
||||||
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
|
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
|
||||||
import org.apache.hadoop.hbase.spark.example.hbasecontext.JavaHBaseBulkDeleteExample;
|
import org.apache.hadoop.hbase.spark.example.hbasecontext.JavaHBaseBulkDeleteExample;
|
||||||
|
import org.apache.hadoop.hbase.testclassification.MediumTests;
|
||||||
|
import org.apache.hadoop.hbase.testclassification.MiscTests;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
import org.apache.spark.api.java.*;
|
import org.apache.spark.api.java.*;
|
||||||
import org.apache.spark.api.java.function.Function;
|
import org.apache.spark.api.java.function.Function;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
import org.junit.experimental.categories.Category;
|
||||||
|
|
||||||
import scala.Tuple2;
|
import scala.Tuple2;
|
||||||
|
|
||||||
import com.google.common.io.Files;
|
import com.google.common.io.Files;
|
||||||
|
|
||||||
public class JavaHBaseContextSuite implements Serializable {
|
@Category({MiscTests.class, MediumTests.class})
|
||||||
|
public class TestJavaHBaseContext implements Serializable {
|
||||||
private transient JavaSparkContext jsc;
|
private transient JavaSparkContext jsc;
|
||||||
HBaseTestingUtility htu;
|
HBaseTestingUtility htu;
|
||||||
protected static final Log LOG = LogFactory.getLog(JavaHBaseContextSuite.class);
|
protected static final Log LOG = LogFactory.getLog(TestJavaHBaseContext.class);
|
||||||
|
|
||||||
|
|
||||||
byte[] tableName = Bytes.toBytes("t1");
|
byte[] tableName = Bytes.toBytes("t1");
|
Loading…
Reference in New Issue