You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by GitBox <gi...@apache.org> on 2018/05/24 08:16:22 UTC
[GitHub] shaofengshi closed pull request #137: add the compatibility for new
version of hbase
shaofengshi closed pull request #137: add the compatibility for new version of hbase
URL: https://github.com/apache/kylin/pull/137
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/server-base/src/main/java/org/apache/kylin/rest/security/MockHTable.java b/server-base/src/main/java/org/apache/kylin/rest/security/MockHTable.java
index 972eea9fc1..9eb9bb7239 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/security/MockHTable.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/security/MockHTable.java
@@ -61,6 +61,7 @@
import org.apache.hadoop.hbase.client.RowMutations;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.client.metrics.ScanMetrics;
import org.apache.hadoop.hbase.filter.CompareFilter;
import org.apache.hadoop.hbase.filter.Filter;
import org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel;
@@ -387,6 +388,14 @@ public Result next() throws IOException {
public void close() {
}
+
+ public boolean renewLease() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public ScanMetrics getScanMetrics() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
};
}
@@ -665,4 +674,41 @@ public boolean checkAndMutate(byte[] row, byte[] family, byte[] qualifier, Compa
throw new NotImplementedException();
}
+
+ public void setOperationTimeout(int operationTimeout) {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public int getOperationTimeout() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ /** @deprecated */
+ @Deprecated
+ public int getRpcTimeout() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ /** @deprecated */
+ @Deprecated
+ public void setRpcTimeout(int rpcTimeout) {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public int getWriteRpcTimeout() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public void setWriteRpcTimeout(int writeRpcTimeout) {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public int getReadRpcTimeout() {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
+ public void setReadRpcTimeout(int readRpcTimeout) {
+ throw new RuntimeException(this.getClass() + " does NOT implement this method.");
+ }
+
}
\ No newline at end of file
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services