HBase default SCAN parameters

If you are looking for default scan request parameters, here they are: Parameter Default value startRow HConstants.EMPTY_START_ROW stopRow HConstants.EMPTY_END_ROW maxVersions 1 batch -1 allowPartialResults false storeLimit -1 storeOffset 0 caching -1 maxResultSize -1L cacheBlocks true reversed false timeRange TimeRange.allTime() asyncPrefetch null small false mvccReadPoint -1L limit -1 readType Scan.ReadType.DEFAULT needCursorResult false

READ MORE

Return value from ExecutorService

Let’s imagine that we have a task: And the code for its execution: And we need to get the return value after completing the task. For this, Runnable must be replaced with Callable: And when sending a task to an ExecutorService, you need to use submit method instead of execute, and capture a Future<Object> object:

READ MORE

Determine versions of dependencies of library Maven

Imagine you need to determine the version of Apache commons-lang dependency in ZooKeeper 3.6.2. The easiest way to do this is to find the artifact page in the mvn repository. For ZooKeeper 3.6.2: https://mvnrepository.com/artifact/org.apache.zookeeper/zookeeper/3.6.2.  On the page, you need to find the Compile Dependencies section, and find the required dependency there. In our case, the commons-lang 2.6 dependency […]

READ MORE