hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clint Morgan <clint.mor...@troove.net>
Subject Re: hbase-0.20.3 scan exception
Date Tue, 16 Mar 2010 23:31:14 GMT
Can you track down where that NPE is? (looks like somewhere on the
regionserver). I the server stack should be in the logs..

-clint

2010/3/15  <y_823910@tsmc.com>:
>
> Hi,
>
> using hbase-0.20.3 create transactional indexed table and when I scan table
> insert more then 400,000 records it throws exception ,
> but if this table only 100,000 records it can scan completely.
>
>
> Exception in thread "main" java.lang.RuntimeException:
> org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact
> region server null for region , row '', but failed after 10 attempts.
> Exceptions:
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
> java.lang.NullPointerException
>
>      at
> org.apache.hadoop.hbase.client.tableindexed.IndexedTable$ScannerWrapper$1.hasNext(
> IndexedTable.java:227)
>
>
>
>                  try {
>
>                  table = new IndexedTable(conf ,
> Bytes.toBytes("TRANSACTIONAL_TABLE"));
>
>                  ResultScanner scanner =
>                        table.getIndexedScanner("INDEX_ID",
> Bytes.toBytes("group_1"),Bytes.toBytes("group_2") ,
>                              Bytes.toByteArrays("FAMILY:COL"),
>                              filter, Bytes.toByteArrays("FAMILY:COL"));
>
>                  List<byte[]> rowList = new ArrayList<byte[]>();
>                  byte[] row;
>
>                  int count = 0;
>                  for(Result result : scanner)
>                  {
>                        row = result.getRow();
>                        rowList.add(row);
>                        count++;
>                  }
>                  System.out.println("total records = " + count);
>                  scanner.close();
>
>                  Get get;
>
>                  for(byte[] rowKey : rowList)
>                  {
>                        get = new Get(rowKey);
>                        Result r = table.get(get);
>                  }
>                  table.close();
>
>            } catch (IOException e) {
>                  // TODO Auto-generated catch block
>                  e.printStackTrace();
>            }
>
>
> Best Regards,
> -----------------------------------------------------------------------------------
>
> Chih-Tung Yin 殷志同
>    707-2785
> BITD (Backend IT Development Dept.)
>    Taiwan Semiconductor Manufacturing Company, Ltd.
>    6, Creation Rd. 2, Hsinchu Science Park, Hsinchu, Taiwan 300-77, R.O.C.
> Email:y_ctyin@tsmc.com
>
>
>
>  ---------------------------------------------------------------------------
>                                                         TSMC
PROPERTY
>  This email communication (and any attachments) is proprietary information
>  for the sole use of its
>  intended recipient. Any unauthorized review, use or distribution by anyone
>  other than the intended
>  recipient is strictly prohibited.  If you are not the intended recipient,
>  please notify the sender by
>  replying to this email, and then delete this email and any copies of it
>  immediately. Thank you.
>  ---------------------------------------------------------------------------
>
>
>
>

Mime
View raw message