From issues-return-17481-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Fri May 4 11:14:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9A391180634 for ; Fri, 4 May 2018 11:14:07 +0200 (CEST) Received: (qmail 22843 invoked by uid 500); 4 May 2018 09:14:06 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 22834 invoked by uid 99); 4 May 2018 09:14:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2018 09:14:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 22B31C05FD for ; Fri, 4 May 2018 09:14:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nttlxz4s1EkA for ; Fri, 4 May 2018 09:14:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 143705FBBA for ; Fri, 4 May 2018 09:14:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CDD39E12C1 for ; Fri, 4 May 2018 09:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 55E412129E for ; Fri, 4 May 2018 09:14:00 +0000 (UTC) Date: Fri, 4 May 2018 09:14:00 +0000 (UTC) From: "wan kun (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KYLIN-3367) Add the compatibility for new version of hbase MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-3367?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] wan kun updated KYLIN-3367: --------------------------- Description:=20 The Hbase version is 1.4.3. The newly hbase version add some new method in= =C2=A0*{{Table}}*=C2=A0and=C2=A0*{{ResultScanner}}*=C2=A0interface. So we should add the implementation method. org.apache.hadoop.hbase.client.ResultScanner.java =C2=A0 {code:java} /** * Allow the client to renew the scanner's lease on the server. * @return true if the lease was successfully renewed, false otherwise. */ boolean renewLease(); /** * @return the scan metrics, or {@code null} if we do not enable metrics. */ ScanMetrics getScanMetrics(); {code} {code:java} org.apache.hadoop.hbase.client.Table.java /** * Set timeout (millisecond) of each operation in this Table instance, will= override the value * of hbase.client.operation.timeout in configuration. * Operation timeout is a top-level restriction that makes sure a blocking = method will not be * blocked more than this. In each operation, if rpc request fails because = of timeout or * other reason, it will retry until success or throw a RetriesExhaustedExc= eption. But if the * total time being blocking reach the operation timeout before retries exh= austed, it will break * early and throw SocketTimeoutException. * @param operationTimeout the total timeout of each operation in milliseco= nd. */ public void setOperationTimeout(int operationTimeout); /** * Get timeout (millisecond) of each operation for in Table instance. */ public int getOperationTimeout(); /** * Get timeout (millisecond) of each rpc request in this Table instance. * * @returns Currently configured read timeout * @deprecated Use getReadRpcTimeout or getWriteRpcTimeout instead */ @Deprecated int getRpcTimeout(); /** * Set timeout (millisecond) of each rpc request in operations of this Tabl= e instance, will * override the value of hbase.rpc.timeout in configuration. * If a rpc request waiting too long, it will stop waiting and send a new r= equest to retry until * retries exhausted or operation timeout reached. *

* NOTE: This will set both the read and write timeout settings to the prov= ided value. * * @param rpcTimeout the timeout of each rpc request in millisecond. * * @deprecated Use setReadRpcTimeout or setWriteRpcTimeout instead */ @Deprecated void setRpcTimeout(int rpcTimeout); /** * Get timeout (millisecond) of each rpc read request in this Table instanc= e. */ int getReadRpcTimeout(); /** * Set timeout (millisecond) of each rpc read request in operations of this= Table instance, will * override the value of hbase.rpc.read.timeout in configuration. * If a rpc read request waiting too long, it will stop waiting and send a = new request to retry * until retries exhausted or operation timeout reached. * * @param readRpcTimeout */ void setReadRpcTimeout(int readRpcTimeout); /** * Get timeout (millisecond) of each rpc write request in this Table instan= ce. */ int getWriteRpcTimeout(); /** * Set timeout (millisecond) of each rpc write request in operations of thi= s Table instance, will * override the value of hbase.rpc.write.timeout in configuration. * If a rpc write request waiting too long, it will stop waiting and send a= new request to retry * until retries exhausted or operation timeout reached. * * @param writeRpcTimeout */ void setWriteRpcTimeout(int writeRpcTimeout); {code} =C2=A0 was: The Hbase version is 1.4.3. The newly hbase version add some new method in= =C2=A0*{{Table}}*=C2=A0and=C2=A0*{{ResultScanner}}*=C2=A0interface. So we should add the implementation method. ResultScanner.java =C2=A0 {code:java} /** * Allow the client to renew the scanner's lease on the server. * @return true if the lease was successfully renewed, false otherwise. */ boolean renewLease(); /** * @return the scan metrics, or {@code null} if we do not enable metrics. */ ScanMetrics getScanMetrics(); {code} {code:java} org.apache.hadoop.hbase.client.Table.java /** * Set timeout (millisecond) of each operation in this Table instance, will= override the value * of hbase.client.operation.timeout in configuration. * Operation timeout is a top-level restriction that makes sure a blocking = method will not be * blocked more than this. In each operation, if rpc request fails because = of timeout or * other reason, it will retry until success or throw a RetriesExhaustedExc= eption. But if the * total time being blocking reach the operation timeout before retries exh= austed, it will break * early and throw SocketTimeoutException. * @param operationTimeout the total timeout of each operation in milliseco= nd. */ public void setOperationTimeout(int operationTimeout); /** * Get timeout (millisecond) of each operation for in Table instance. */ public int getOperationTimeout(); /** * Get timeout (millisecond) of each rpc request in this Table instance. * * @returns Currently configured read timeout * @deprecated Use getReadRpcTimeout or getWriteRpcTimeout instead */ @Deprecated int getRpcTimeout(); /** * Set timeout (millisecond) of each rpc request in operations of this Tabl= e instance, will * override the value of hbase.rpc.timeout in configuration. * If a rpc request waiting too long, it will stop waiting and send a new r= equest to retry until * retries exhausted or operation timeout reached. *

* NOTE: This will set both the read and write timeout settings to the prov= ided value. * * @param rpcTimeout the timeout of each rpc request in millisecond. * * @deprecated Use setReadRpcTimeout or setWriteRpcTimeout instead */ @Deprecated void setRpcTimeout(int rpcTimeout); /** * Get timeout (millisecond) of each rpc read request in this Table instanc= e. */ int getReadRpcTimeout(); /** * Set timeout (millisecond) of each rpc read request in operations of this= Table instance, will * override the value of hbase.rpc.read.timeout in configuration. * If a rpc read request waiting too long, it will stop waiting and send a = new request to retry * until retries exhausted or operation timeout reached. * * @param readRpcTimeout */ void setReadRpcTimeout(int readRpcTimeout); /** * Get timeout (millisecond) of each rpc write request in this Table instan= ce. */ int getWriteRpcTimeout(); /** * Set timeout (millisecond) of each rpc write request in operations of thi= s Table instance, will * override the value of hbase.rpc.write.timeout in configuration. * If a rpc write request waiting too long, it will stop waiting and send a= new request to retry * until retries exhausted or operation timeout reached. * * @param writeRpcTimeout */ void setWriteRpcTimeout(int writeRpcTimeout); {code} =C2=A0 > Add the compatibility for new version of hbase > ---------------------------------------------- > > Key: KYLIN-3367 > URL: https://issues.apache.org/jira/browse/KYLIN-3367 > Project: Kylin > Issue Type: Bug > Components: REST Service > Affects Versions: v2.4.0 > Reporter: wan kun > Priority: Minor > > The Hbase version is 1.4.3. The newly hbase version add some new method i= n=C2=A0*{{Table}}*=C2=A0and=C2=A0*{{ResultScanner}}*=C2=A0interface. > So we should add the implementation method. > org.apache.hadoop.hbase.client.ResultScanner.java > =C2=A0 > {code:java} > /** > * Allow the client to renew the scanner's lease on the server. > * @return true if the lease was successfully renewed, false otherwise. > */ > boolean renewLease(); > /** > * @return the scan metrics, or {@code null} if we do not enable metrics. > */ > ScanMetrics getScanMetrics(); > {code} > {code:java} > org.apache.hadoop.hbase.client.Table.java > /** > * Set timeout (millisecond) of each operation in this Table instance, wi= ll override the value > * of hbase.client.operation.timeout in configuration. > * Operation timeout is a top-level restriction that makes sure a blockin= g method will not be > * blocked more than this. In each operation, if rpc request fails becaus= e of timeout or > * other reason, it will retry until success or throw a RetriesExhaustedE= xception. But if the > * total time being blocking reach the operation timeout before retries e= xhausted, it will break > * early and throw SocketTimeoutException. > * @param operationTimeout the total timeout of each operation in millise= cond. > */ > public void setOperationTimeout(int operationTimeout); > /** > * Get timeout (millisecond) of each operation for in Table instance. > */ > public int getOperationTimeout(); > /** > * Get timeout (millisecond) of each rpc request in this Table instance. > * > * @returns Currently configured read timeout > * @deprecated Use getReadRpcTimeout or getWriteRpcTimeout instead > */ > @Deprecated > int getRpcTimeout(); > /** > * Set timeout (millisecond) of each rpc request in operations of this Ta= ble instance, will > * override the value of hbase.rpc.timeout in configuration. > * If a rpc request waiting too long, it will stop waiting and send a new= request to retry until > * retries exhausted or operation timeout reached. > *

> * NOTE: This will set both the read and write timeout settings to the pr= ovided value. > * > * @param rpcTimeout the timeout of each rpc request in millisecond. > * > * @deprecated Use setReadRpcTimeout or setWriteRpcTimeout instead > */ > @Deprecated > void setRpcTimeout(int rpcTimeout); > /** > * Get timeout (millisecond) of each rpc read request in this Table insta= nce. > */ > int getReadRpcTimeout(); > /** > * Set timeout (millisecond) of each rpc read request in operations of th= is Table instance, will > * override the value of hbase.rpc.read.timeout in configuration. > * If a rpc read request waiting too long, it will stop waiting and send = a new request to retry > * until retries exhausted or operation timeout reached. > * > * @param readRpcTimeout > */ > void setReadRpcTimeout(int readRpcTimeout); > /** > * Get timeout (millisecond) of each rpc write request in this Table inst= ance. > */ > int getWriteRpcTimeout(); > /** > * Set timeout (millisecond) of each rpc write request in operations of t= his Table instance, will > * override the value of hbase.rpc.write.timeout in configuration. > * If a rpc write request waiting too long, it will stop waiting and send= a new request to retry > * until retries exhausted or operation timeout reached. > * > * @param writeRpcTimeout > */ > void setWriteRpcTimeout(int writeRpcTimeout); > {code} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)