HBASE-22832 Removed deprecated method from HFileOutputFormat2
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
0553aa4451
commit
ef887e5292
|
@ -48,7 +48,6 @@ import org.apache.hadoop.hbase.CellComparator;
|
|||
import org.apache.hadoop.hbase.CellUtil;
|
||||
import org.apache.hadoop.hbase.HConstants;
|
||||
import org.apache.hadoop.hbase.HRegionLocation;
|
||||
import org.apache.hadoop.hbase.HTableDescriptor;
|
||||
import org.apache.hadoop.hbase.KeyValue;
|
||||
import org.apache.hadoop.hbase.PrivateCellUtil;
|
||||
import org.apache.hadoop.hbase.TableName;
|
||||
|
@ -117,19 +116,6 @@ public class HFileOutputFormat2
|
|||
this.regionLocator = regionLocator;
|
||||
}
|
||||
|
||||
/**
|
||||
* The modification for the returned HTD doesn't affect the inner TD.
|
||||
* @return A clone of inner table descriptor
|
||||
* @deprecated since 2.0.0 and will be removed in 3.0.0. Use {@link #getTableDescriptor()}
|
||||
* instead.
|
||||
* @see #getTableDescriptor()
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-18241">HBASE-18241</a>
|
||||
*/
|
||||
@Deprecated
|
||||
public HTableDescriptor getHTableDescriptor() {
|
||||
return new HTableDescriptor(tableDesctiptor);
|
||||
}
|
||||
|
||||
public TableDescriptor getTableDescriptor() {
|
||||
return tableDesctiptor;
|
||||
}
|
||||
|
|
|
@ -787,7 +787,7 @@ public class TestHFileOutputFormat2 {
|
|||
}
|
||||
else {
|
||||
RegionLocator regionLocator = tableInfo.get(0).getRegionLocator();
|
||||
HFileOutputFormat2.configureIncrementalLoad(job, tableInfo.get(0).getHTableDescriptor(),
|
||||
HFileOutputFormat2.configureIncrementalLoad(job, tableInfo.get(0).getTableDescriptor(),
|
||||
regionLocator);
|
||||
assertEquals(regionLocator.getAllRegionLocations().size(), job.getNumReduceTasks());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue