-
Notifications
You must be signed in to change notification settings - Fork 478
ACCUMULO-3602 BatchScanner optimization for AccumuloInputFormat #25
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
Closed
Closed
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
8da5933
Added support for grouping ranges per tablet when using AccumuloInput…
echeipesh 47a2fae
Avoid casts by using AccumuloInputSplit interface
echeipesh b4101a3
upgrade warning to exception if batch scan is requested but not avail…
echeipesh ad83769
close underlying scanner with the RecordReader
echeipesh 46a45c3
Upgrade AccumuloInputSplit to abstract class for code reuse
echeipesh 7a09974
merging upstream master
echeipesh 41e79cf
fix merge errors
echeipesh 7b3beeb
add batch scan setters/getters to AccumuloInputFormat
echeipesh c84c8c0
fix casting error
echeipesh 3549514
make findbugs happy
echeipesh 7ac1cef
test BatchInputSplit generation
echeipesh 9a47722
match code flow between mapred and mapreduce
echeipesh 23f6d40
test all splits for correct type, not just head
echeipesh 17fa276
Test MR job with BatchScan option enable
echeipesh 4614efe
remove unused import
echeipesh 4df19d7
Merge branch 'master' of https://github.com/apache/accumulo into ACCU…
echeipesh bc2a8ef
fix: broken merge, getting instance from job context
echeipesh 6a0bbff
fix: creating iterator before column family set
echeipesh a23d8dc
move BatchInputSplit and AccumuloInputSplit to 'impl' package
echeipesh c5d1728
BatchInputSplit constructor public
echeipesh 100813f
Deprecating RecordReaderBase.setupIterators with Scanner arguments
echeipesh 15bbef9
expand test for BatchScan option
echeipesh b2a8997
factor out setting common split configuration
echeipesh cde47bc
fix: isBatchScan is public and correct
echeipesh ecc659c
improve progress reporting on BatchInputSplit
echeipesh ab322a0
fix: null reference in BatchInputSplit.getProgress
echeipesh 951afd4
Preserving API of AbstractRecordReader.setupIterators
echeipesh 070aef0
fix: use the imported type
echeipesh 095b825
make deprecated AbstractRecordReader.setupIterators concrete with cal…
echeipesh fe8a1c2
unused import
echeipesh 3d4cb40
ACCUMULO-3602 Get findbugs passing on new IT
joshelser 6ed0175
Merge branch 'master' of https://github.com/apache/accumulo into ACCU…
echeipesh 089afec
Merge pull request #1 from joshelser/ACCUMULO-3602
echeipesh 00e7aa6
remove redundant conjunction
echeipesh 77702c1
AbstractRecordReader.setupIterators mad concrete and private, abstrac…
echeipesh 0157382
Check AccumuloInputFormat.getSplits for test success between testing …
echeipesh d3d628e
Removing configurable number of threads for BatchScan
echeipesh 1299fdf
Removing trailing space and unused imports
echeipesh 7a5c8c0
Expanded javadoc for setBatchScan
echeipesh 0f23369
Added mapred.InputFormatBase.setBatchan and isBatchScan
echeipesh eaeef80
killing whitespace
echeipesh 0b84321
merging upstream
echeipesh 4409db9
Added mention and a warning about AutoAdjustRanges
echeipesh e86541a
Added warning to AutoAdjustRanges and upgraded to exception
echeipesh 79af3e5
fix: missing semicolons
echeipesh 964bf3d
moving check down to after autoAdjust config is read
echeipesh c264325
tailing whitespace
echeipesh a1c59a9
re-adding setupIterators overload for 1.6 compatability
echeipesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
263 changes: 168 additions & 95 deletions
263
core/src/main/java/org/apache/accumulo/core/client/mapred/AbstractInputFormat.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
core/src/main/java/org/apache/accumulo/core/client/mapred/impl/BatchInputSplit.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package org.apache.accumulo.core.client.mapred.impl; | ||
|
|
||
| import java.io.IOException; | ||
| import java.util.Collection; | ||
|
|
||
| import org.apache.accumulo.core.data.Range; | ||
| import org.apache.hadoop.mapred.InputSplit; | ||
|
|
||
| /** | ||
| * The Class BatchInputSplit. Encapsulates Accumulo ranges for use in Map Reduce jobs. | ||
| * Can contain several Ranges per InputSplit. | ||
| */ | ||
| public class BatchInputSplit extends org.apache.accumulo.core.client.mapreduce.impl.BatchInputSplit implements InputSplit { | ||
|
|
||
| public BatchInputSplit() { | ||
| super(); | ||
| } | ||
|
|
||
| public BatchInputSplit(BatchInputSplit split) throws IOException { | ||
| super(split); | ||
| } | ||
|
|
||
| public BatchInputSplit(String table, String tableId, Collection<Range> ranges, String[] location) { | ||
| super(table, tableId, ranges, location); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing where this is implemented. Am I just blind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n/m, pulled it into Eclipse and realized it's just me :)