Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BEAD200AEF for ; Sat, 28 May 2016 17:45:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5AAF4160A1A; Sat, 28 May 2016 15:45:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A1FC3160939 for ; Sat, 28 May 2016 17:45:32 +0200 (CEST) Received: (qmail 4736 invoked by uid 500); 28 May 2016 15:45:31 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Delivered-To: moderator for issues@hbase.apache.org Received: (qmail 96382 invoked by uid 99); 27 May 2016 12:53:36 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.289 X-Spam-Level: * X-Spam-Status: No, score=1.289 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=denodo-com.20150623.gappssmtp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denodo-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=e72p9oWbwxzunTB+AptXMx49PXLty8wqM+3q3ZCSBWg=; b=Pa0gPnyiBx+JbGf5y9FoQPrp04sVJC6LFpaI20eoZ2cDoZBe9o/SQRNzLOkKE8x/+w Hu7/Ru978WMmgO9q6VgOh/yJk9uheDnCZrNEmPQAii2M+ikSdwWzbdYyytUWojWUPzy3 DPB9YSIBS1E53e85GyPxPkflY+Mot1+rM14Gkbogop6SIRYBsZbZtKGVhndMncyaeWlv MtaNjOiOrhxl9KSW3+T+bogpJENipjNFV534Ln0qBTwlnhbqW+VaYkPDdpAax7mvRsX1 ia0wELnppl4J/gHs+hskmof02Q/WvMKoRRxZFxDRl6sY+gqawVjlfsFzAXAjG0EpQPET o2aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=e72p9oWbwxzunTB+AptXMx49PXLty8wqM+3q3ZCSBWg=; b=JyA43pdkivHsoTXujRtSe/8Da5W2bjn7hcLozW1XbEbFi1wkYamZqKR6JjpSm/J9bF pmEa46duKxTHGQ5V7juuR7D96o7HLvZwMOe41MCaR9qA+y9og1EJQKWLgChYnoHilZoW ScsvpXwcxysXZQmswRZlTPY043QrjmkU4z6HVBFTOj5c8zgmSOdi0jifbb2xZ1hGFkBI NDQkjEftRqfQ0AxDPxMuX3VeqTtPxWHBlkaY/ljKhzhShMchh0xE8nIM/z8K6FLrRN2a 6Zn28lDAlGOTZ710INhishOiCPwrScQF0p8PD+Ku0158B/qbpHD2pPGw21qJluv1QiO+ HyIQ== X-Gm-Message-State: ALyK8tJs+IDIJeQ4aDJ3K0k3GZOudFHf5rHiOXaFxlRjv6hTkdVNonmJn/2yyFVyghlKwrn/A1nxhRyEt06Q3VdY MIME-Version: 1.0 X-Received: by 10.25.24.151 with SMTP id 23mr3822998lfy.103.1464353607349; Fri, 27 May 2016 05:53:27 -0700 (PDT) Date: Fri, 27 May 2016 14:53:27 +0200 Message-ID: Subject: exception not descriptive relationed to zookeeper.znode.parent From: Pablo Leira To: issues@hbase.apache.org Content-Type: multipart/alternative; boundary=001a113f254a9793190533d26475 archived-at: Sat, 28 May 2016 15:45:33 -0000 --001a113f254a9793190533d26475 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have just updated a client of hbase from version 0.96.2-hadoop2 to 1.2.1 (hbase-client). With the old version with the property zookeeper.znode.parent of the file hbase-site.xml bad configured (p.e. with the value "hbase" instead of "hbase-secure" our "hbase-unsecure" ) . I was obtaining the following error: =E2=80=9CThe node /hbase (/hbase-unsecure or /hbase-secure) is not in ZooKe= eper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.=E2=80=9C But with the new version I was obtaining the following trace: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetr= yingCaller.java:208) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:326) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java= :301) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstructio= n(ClientScanner.java:166) at org.apache.hadoop.hbase.client.ClientScanner.(ClientScanner.java:161) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:794) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:6= 02) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.jav= a:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at com.denodo.connect.hadoop.hbase.HBaseConnector.doRun(HBaseConnector.java:19= 8) at com.denodo.connect.hadoop.hdfs.wrapper.AbstractSecureHadoopWrapper.run(Abst= ractSecureHadoopWrapper.java:110) at com.denodo.vdb.misc.datasource.MyDataSource$1$1.doRun(Unknown Source) at com.denodo.vdb.engine.wrapper.raw.my.MyAccessImpl.doRun(Unknown Source) at com.denodo.vdb.engine.wrapper.RawAccess.run(Unknown Source) at com.denodo.vdb.engine.thread.g.a(Unknown Source) at com.denodo.vdb.engine.thread.ReusableThread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.getMetaReplicaNodes(ZooK= eeperWatcher.java:489) at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(Meta= TableLocator.java:558) at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getMetaRegionLocation(ZooK= eeperRegistry.java:61) at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.= locateMeta(ConnectionManager.java:1211) at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.= locateRegion(ConnectionManager.java:1178) at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionL= ocations(RpcRetryingCallerWithReadReplicas.java:305) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCall= ableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCall= ableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetr= yingCaller.java:200) ... 15 more This is my code: final Configuration hbaseConfig =3D getHBaseConfig(inputValues); /** Connection to the cluster. A single connection shared by all application threads. */ Connection connection =3D null; /** A lightweight handle to a specific table. Used from a single thread. */ Table table =3D null; try { final TableName tableName =3D TableName.valueOf(inputValues.get(ParameterNaming.CONF_TABLE_NAME)); connection =3D ConnectionFactory.createConnection(hbaseConfig); Admin admin= =3D connection.getAdmin(); if (!admin.tableExists(tableName)) { The last line where the exception is thrown. Are there any way to obtain a exception more specific than NullPointerException, because in the previous version this exception it was more descriptive. Or maybe my code is not correct. Thanks Regards Pablo --001a113f254a9793190533d26475--