Commit Graph

1288 Commits

Author SHA1 Message Date
Michael Stack 08693f66a8 HBASE-1217 Changed HColumnDescriptor so it now has blocksize, and compression
is not lzo, gz or none (rather than block, key or none).  Made changes to
shell so you can do this configuration therein.  Bloomfilter still not
hooked up.

HBASE-859 HStoreKey needs a reworking... binary keys work again.

HBASE-1211 NPE in retries exhausted exception


M src/test/org/apache/hadoop/hbase/TestHStoreKey.java
    Added tests comparing binary keys, plain, meta and root keys.
    Enabled the commented-out testHStoreKeyBorderCases.
M  src/test/org/apache/hadoop/hbase/HBaseTestCase.java
    Removed PUNCTUATION pollution of keys.
M src/test/org/apache/hadoop/hbase/regionserver/TestBloomFilters.java
    Use different compression type.
M src/test/org/apache/hadoop/hbase/regionserver/TestTimestamp.java
    Use new HCD constructor.
M src/test/org/apache/hadoop/hbase/regionserver/TestScanner.java
    Was using ROOT table but a plain hstorekey comparator; that won't
    work (have to be careful about which comparator is used on which
    table from here on out).
M src/test/org/apache/hadoop/hbase/regionserver/TestStoreFile.java
    getWriter now takes whether or not bloom filter, etc.
M  src/test/org/apache/hadoop/hbase/regionserver/TestCompaction.java
    Removed PUNCTUATION pollution.
M src/test/org/apache/hadoop/hbase/filter/TestStopRowFilter.java
M src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java
    Whitespace.
M src/test/org/apache/hadoop/hbase/io/hfile/TestHFile.java
    Pass compressor and whether bloomfilter.
M src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java
    Added new seek+scan test.
M src/java/org/apache/hadoop/hbase/HColumnDescriptor.java
    Added in BLOCKSIZE, changed COMPRESSION arguments.
    Removed DEFAULT_MAPFILE_INDEX_INTERVAL.
    Upped the version from 6 to 7.
M src/java/org/apache/hadoop/hbase/HStoreKey.java
    New object and raw byte comparators, one for each context of
    plain, meta, and root.  Use same code.  Other utility such
    as static creates that take a ByteBuffer or a byte array of
    a serialized HStoreKey.  Old compareTo methods are deprecated
    since they can return wrong answer if binary keys.
    New getBytes without creating Streams.
    Removed the old BeforeThisStoreKey trick.
    Custom vint math methods that work with ByteBuffers and byte []
    instead of streams.
M src/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java
    Fixup for new compression.
M src/java/org/apache/hadoop/hbase/regionserver/Memcache.java
    Pass in comparator to use.
M src/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
M src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
    Use right comparator comparing rows
M src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
M src/java/org/apache/hadoop/hbase/regionserver/HAbstractScanner.java
    Formatting.
M src/java/org/apache/hadoop/hbase/regionserver/HRegion.java
    Formatting.
    Might be issues here with key compares but no store in the
    context... leave it for now.
M src/java/org/apache/hadoop/hbase/regionserver/Store.java
    Use new comparators and hcd changes.
M src/java/org/apache/hadoop/hbase/regionserver/StoreFile.java
    Added override of HFile.Reader so could format the toString
    (so HFile doesn't have to know about HStoreKeys though thats
    what we put in there always -- let it just be about
    byte []).
M src/java/org/apache/hadoop/hbase/rest/parser/JsonRestParser.java
M src/java/org/apache/hadoop/hbase/rest/parser/XMLRestParser.java
M src/java/org/apache/hadoop/hbase/HTableDescriptor.java
    Fix up for new HCD.
M src/java/org/apache/hadoop/hbase/HRegionInfo.java
M src/java/org/apache/hadoop/hbase/master/MetaRegion.java
    Use Bytes.compareTo.
M src/java/org/apache/hadoop/hbase/io/HalfHFileReader.java
    (isTop): Added.
M src/java/org/apache/hadoop/hbase/io/RowResult.java
    Formatting.
M src/java/org/apache/hadoop/hbase/io/hfile/Compression.java
    Make getCompressionAlgorithmByName public.
M src/java/org/apache/hadoop/hbase/io/hfile/HFile.java
    Add in writer constructor that takes compression and bloom filter.
    Fix some of the comparator use.
M src/java/org/apache/hadoop/hbase/io/HbaseMapWritable.java
    Remove commented out code
M src/java/org/apache/hadoop/hbase/io/Cell.java
    Formatting.
M src/java/org/apache/hadoop/hbase/io/HBaseMapFile.java
    Use new comparator names.
A src/java/org/apache/hadoop/hbase/util/TestBytes.java
    Small bytes test.
M src/java/org/apache/hadoop/hbase/util/Bytes.java
    Some overrides to help when source is ByteBuffer.
    Added in some vint math utility.
M src/java/org/apache/hadoop/hbase/client/HTable.java
    Formatting.
M src/java/org/apache/hadoop/hbase/client/MetaScanner.java
    Use Bytes.compareTO.
M src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
    Use right comparator.
M src/java/org/apache/hadoop/hbase/client/UnmodifyableHColumnDescriptor.java
    Make it match HCD.
M src/java/org/apache/hadoop/hbase/client/RetriesExhaustedException.java
    Fix NPE
M src/java/org/apache/hadoop/hbase/client/ScannerCallable.java
    Formatting.
M bin/HBase.rb
    Support for new HCD.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@749546 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 06:48:33 +00:00
Jim Kellerman 8206da62c0 HBASE-1230 Document installation of HBase on Windows
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@749424 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 19:52:21 +00:00
Michael Stack 2ec433e990 HBASE-1188 Memory size of Java Objects - Make cacheable objects implement HeapSize
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748259 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 18:21:49 +00:00
Michael Stack e52b1ac411 HBASE-1189 Changing the map type used internally for HbaseMapWritable
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748256 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 18:17:46 +00:00
Michael Stack 5a9bdffadb HBASE-1221 When using ant -projecthelp to build HBase not all the important options show up.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748241 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 17:58:31 +00:00
Michael Stack 89bf878a87 HBASE-1210 Allow truncation of output for scan and get commands in shell
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748238 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 17:55:27 +00:00
Michael Stack 636307ebc5 HASE-1209 Make port displayed the same as is used in URL for RegionServer table in UI
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@748229 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 17:49:20 +00:00
Michael Stack f073189447 HBASE-61 Create an HBase-specific MapFile implementation
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@747672 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 05:59:26 +00:00
Michael Stack be84747ad3 HBASE-61 Create an HBase-specific MapFile implementation
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@747666 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 05:34:29 +00:00
Andrew Kyle Purtell 3ca8865ad6 HBASE-1198 OOME in IPC server does not trigger abort behavior
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@743660 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 08:56:49 +00:00
Andrew Kyle Purtell 0e83a2224c HBASE-1190 TableInputFormatBase with row filters scan too far
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@742146 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 19:32:54 +00:00
Jean-Daniel Cryans 3156618b75 Corrected the "via" stuff in CHANGES
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@742139 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 18:46:48 +00:00
Jean-Daniel Cryans 31823ff1a3 HBASE-1191 ZooKeeper ensureParentExists calls fail
on absolute path (via Nitay Joffe)
HBASE-1187  After disabling/enabling a table, the regions seems to
               be assigned to only 1-2 region servers


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@742137 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 18:37:00 +00:00
Andrew Kyle Purtell b741d8940c HBASE-1180 Add missing import statements to SampleUploader and remove unnecessary @Overrides
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@741669 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 18:45:03 +00:00
Andrew Kyle Purtell 554932bf63 HBASE-1184 HColumnDescriptor is too resrictive with family names
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@741317 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 22:24:59 +00:00
Andrew Kyle Purtell 08805166e8 HBASE-1175 HBA administrative tools do not work when specifying region name
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@741018 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 05:52:26 +00:00
Jean-Daniel Cryans 46d3e17942 HBASE-1181 src/saveVersion.sh bails on non-standard Bourne shells (e.g. dash)
(K M via Jean-Daniel Cryans)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@740425 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 20:33:49 +00:00
Andrew Kyle Purtell 80eae9d2af HBASE-1178 Add shutdown command to shell
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@740265 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 10:22:06 +00:00
Jean-Daniel Cryans a143336404 HBASE-1146 Replace the HRS leases with Zookeeper
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739612 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:05:35 +00:00
Jim Kellerman 0ce43735d1 HBASE-1164 Remove HBase private copy of SequenceFile (revert changes)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739578 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 17:47:16 +00:00
Andrew Kyle Purtell 4d56aebba2 HBASE-1167 JSP doesn't work in a git checkout
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739573 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 16:17:19 +00:00
Michael Stack a579f449e0 HBASE-1166 saveVersion.sh doesn't work with git
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739508 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 05:33:55 +00:00
Jim Kellerman 9aa57a7512 HBASE-1164 Remove HBase private copy of SequenceFile
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739392 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 19:54:14 +00:00
Michael Stack fb8e861bcf HBASE-1144 Store the ROOT region location in Zookeeper
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739118 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:24:05 +00:00
Michael Stack 2c6c26e139 HBASE-1144 Store the ROOT region location in Zookeeper
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739115 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:22:05 +00:00
Michael Stack f591f1dba6 HBASE-1144 Store the ROOT region location in Zookeeper
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@739112 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:20:05 +00:00
Jean-Daniel Cryans 86e3267abb HBASE-845 HCM.isTableEnabled doesn't really tell if it is, or not
HBASE-903   [shell] Can't set table descriptor attributes when I alter a table



git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@738927 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 16:51:26 +00:00
Jean-Daniel Cryans 476da38f1f HBASE-1147 Modify the scripts to use Zookeeper
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@738184 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 18:20:09 +00:00
Michael Stack 14734e4e81 HBASE-5121 Fix shell usage for format.width
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@737312 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 07:11:32 +00:00
Jim Kellerman 6c78d4e6a6 HBASE-1148 Always flush HLog on root or meta region updates
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@737241 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 23:09:37 +00:00
Jim Kellerman 542abcf26d HBASE-1121 Cluster confused about where -ROOT- is
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@737213 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 22:37:01 +00:00
Michael Stack b634e6a3cb HBASE-876 There are a large number of Java warnings in HBase
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736569 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 05:44:21 +00:00
Michael Stack d6f7713582 HBASE-1064 HBase REST xml/json improvements
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736504 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 00:24:35 +00:00
Michael Stack 7fa5fe946b HBASE-1064 HBase REST xml/json improvements
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736503 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 00:21:16 +00:00
Michael Stack e3665e1967 HBASE-1142 Cleanup thrift server; remove Text and profuse DEBUG messaging
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736495 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 23:51:15 +00:00
Michael Stack 618e917bfc Add generated metrics
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736413 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 21:11:19 +00:00
Jim Kellerman 8b53dd0396 HBASE-1121 Cluster confused about where -ROOT- is. This patch fixes "re-finding" the root region.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736371 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 18:42:31 +00:00
Jim Kellerman 8bd2b4d7bd HBASE-1138 Set default HLog block size.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736359 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 18:18:02 +00:00
Jim Kellerman 1dd27a5c82 HBASE-1138 Test that readers opened after a sync can see all data up to the sync (temporary until HADOOP-4379 is resolved)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736144 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 22:33:08 +00:00
Jean-Daniel Cryans a4971ab1a4 HBASE-1031 Add the Zookeeper jar
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736115 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 21:30:42 +00:00
Michael Stack e5bc60568c HBASE-896 Update jruby from 1.1.2 to 1.1.6
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736112 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 21:26:59 +00:00
Michael Stack 7fccb0258e HBASE-1134 HashFunction inadvertently destroys some randomness
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735947 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 06:37:29 +00:00
Michael Stack 781b10724f HBASE-876 There are a large number of Java warnings in HBase
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735946 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 06:32:36 +00:00
Michael Stack 4b49a9c162 HBASE-876 There are a large number of Java warnings in HBase
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735945 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 06:18:19 +00:00
Jim Kellerman 1f8c2aeeaa HBASE-1129 Master won't go down; stuck joined on rootScanner
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735911 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 02:06:17 +00:00
Michael Stack 997259ca50 HBASE-1139 Update Clover in build.xml
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735887 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 00:23:54 +00:00
Michael Stack ce2995c49d HBASE-1136 HashFunction inadvertently destroys some randomness; REVERTING
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735880 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:56:57 +00:00
Michael Stack 879fe35bbb HBASE-1140 'ant clean test' fails
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735869 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:04:54 +00:00
Michael Stack db5cfb802f HBASE-1130 PrefixRowFilter
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735868 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:00:19 +00:00
Michael Stack fae1734cd1 HBASE-1130 PrefixRowFilter
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735867 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:00:11 +00:00