Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNAP-618: update to hbase 0.98.X to be compatible with Spark's version #37

Merged
merged 1 commit into from
Mar 27, 2016

Conversation

sumwale
Copy link

@sumwale sumwale commented Mar 19, 2016

This will allow inclusion of hbase in our assembly jar avoiding user to include the jar and its dependencies explicitly. It also avoids the problems that will arise if some app were to use hbase deps of Spark (which comes in from hive-client) with HDFS support of GemXD.

  • added dependencies to hbase 0.98.X with excludes like in Spark and explicit inclusion of htrace-core required at runtime
    • corrected the Comparator hierarchy to now inherit from KVComparator with the interfaces like SerializedComparator
      now being abstract classes; fixed a number of overrides to be consistent with the new expected methods
      (see RawBytesComparator in hbase code for an example)
    • as a result of changing interfaces to abstract base, DelegatingSerializedComparator now extends
      CompositeSerializedComparator (which is somewhat out of place but required)
    • corrected the HFile creation to use HFileContextBuilder for the new HFileContext as required in new APIs
    • added an intermediate BytesComparator to wrap a SerializedCompator as a thin veneer to provide a
      Comparator<byte[]> on top of Comparator that SerializedCompator now implements (due to extending KVComparator)
    • commented out SchemaMetrics initialization which is now gone and should not be required with metrics2

 * added dependencies to hbase 0.98.X with excludes like in Spark and explicit inclusion of htrace-core required at runtime
 * corrected the Comparator hierarchy to now inherit from KVComparator with the interfaces like SerializedComparator
   now being abstract classes; fixed a number of overrides to be consistent with the new expected methods
   (see RawBytesComparator in hbase code for an example)
 * as a result of changing interfaces to abstract base, DelegatingSerializedComparator now extends
   CompositeSerializedComparator (which is somewhat out of place but required)
 * corrected the HFile creation to use HFileContextBuilder for the new HFileContext as required in new APIs
 * added an intermediate BytesComparator to wrap a SerializedCompator as a thin veneer to provide a
   Comparator<byte[]> on top of Comparator<Cell> that SerializedCompator now implements (due to extending KVComparator)
 * commented out SchemaMetrics initialization which is now gone and should not be required with metrics2
@sumwale
Copy link
Author

sumwale commented Mar 27, 2016

@hbhanawat Merging this PR. Will take care of any comments, if they are provided, subsequently.

@sumwale sumwale merged commit 410123e into snappy/master Mar 27, 2016
@sumwale sumwale deleted the SNAP-618 branch March 27, 2016 14:06
sumwale pushed a commit to sumwale/snappy-store that referenced this pull request Apr 30, 2021
SNAP-618: update to hbase 0.98.X to be compatible with Spark's version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants