[
https://issues.apache.org/jira/browse/BEAM-3214?focusedWorklogId=106554&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-106554
]
ASF GitHub Bot logged work on BEAM-3214:
----------------------------------------
Author: ASF GitHub Bot
Created on: 29/May/18 10:19
Start Date: 29/May/18 10:19
Worklog Time Spent: 10m
Work Description: iemejia commented on a change in pull request #5499:
[BEAM-3214] Add integration test for HBaseIO.
URL: https://github.com/apache/beam/pull/5499#discussion_r191373129
##########
File path:
sdks/java/io/hbase/src/test/java/org/apache/beam/sdk/io/hbase/HBaseIOIT.java
##########
@@ -0,0 +1,176 @@
+/*
+ * 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.beam.sdk.io.hbase;
+
+import java.io.IOException;
+import java.nio.charset.StandardCharsets;
+import org.apache.beam.sdk.io.GenerateSequence;
+import org.apache.beam.sdk.io.common.HashingFn;
+import org.apache.beam.sdk.io.common.IOTestPipelineOptions;
+import org.apache.beam.sdk.io.common.TestRow;
+import org.apache.beam.sdk.options.PipelineOptionsFactory;
+import org.apache.beam.sdk.testing.PAssert;
+import org.apache.beam.sdk.testing.TestPipeline;
+import org.apache.beam.sdk.transforms.Combine;
+import org.apache.beam.sdk.transforms.Count;
+import org.apache.beam.sdk.transforms.DoFn;
+import org.apache.beam.sdk.transforms.ParDo;
+import org.apache.beam.sdk.values.PCollection;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HColumnDescriptor;
+import org.apache.hadoop.hbase.HTableDescriptor;
+import org.apache.hadoop.hbase.TableName;
+import org.apache.hadoop.hbase.client.Admin;
+import org.apache.hadoop.hbase.client.Connection;
+import org.apache.hadoop.hbase.client.ConnectionFactory;
+import org.apache.hadoop.hbase.client.Mutation;
+import org.apache.hadoop.hbase.client.Put;
+import org.apache.hadoop.hbase.client.Result;
+import org.apache.hadoop.hbase.util.Bytes;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * A test of {@link org.apache.beam.sdk.io.hbase.HBaseIOIT} on an independent
HBase instance.
+ *
+ * <p>This test requires a running instance of HBase. Pass in connection
information using
+ * PipelineOptions:
+ * <pre>
+ *
+ * ./gradlew clean integrationTest -p sdks/java/io/hbase/
-DintegrationTestPipelineOptions='[
+ * "--hbaseServerName=1.2.3.4"]' -DintegrationTestRunner=direct
+ * --tests org.apache.beam.sdk.io.hbase.HBaseIOIT
+ *
+ * </pre>
+ *
+ */
+@RunWith(JUnit4.class)
+public class HBaseIOIT {
Review comment:
Do you use IntelliJ if so can you please format this file with the
google-java-plugin (this is not mandatory but it is what most people here use
and probably will be automatized in the future).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 106554)
Time Spent: 3h (was: 2h 50m)
> Add an integration test for HBaseIO Read/Write transforms
> ---------------------------------------------------------
>
> Key: BEAM-3214
> URL: https://issues.apache.org/jira/browse/BEAM-3214
> Project: Beam
> Issue Type: Test
> Components: io-java-hbase
> Reporter: Chamikara Jayalath
> Assignee: Kamil Szewczyk
> Priority: Major
> Time Spent: 3h
> Remaining Estimate: 0h
>
> We should add an small scale integration test for HBaseIO that can be run as
> a part of 'beam_PostCommit_Java_MavenInstall' and
> 'beam_PostCommit_Java_ValidatesRunner*' Jenkins test suites.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)