Joe McDonnell has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17570


Change subject: [PROTOTYPE] IMPALA-10711: Allow customizing startup's 
filesystem check
......................................................................

[PROTOTYPE] IMPALA-10711: Allow customizing startup's filesystem check

At startup, Impala runs JniFrontend::checkFileSystem() to verify
that it can list the root directory of the filesystem. Some
deployments would like to restrict Impala to a subdirectory
of the filesystem. In that circumstance, Impala may not have
access to the root of the filesystem and the startup check
will fail.

This adds the startup parameter: startup_filesystem_check_directories
to specify the directories to check in JniFrontend::checkFileSystem()
at startup. For deployments that are restricted to a subdirectory,
startup_filesystem_check_directories=/some/subdirectory would
check /some/subdirectory rather than /. This parameter allows for
a list of directories in case it is useful to verify multiple
locations (such as different s3 buckets). If set to the empty string,
no directories will be checked.

Testing:
 - Hand testing locally

TODO:
 - Add tests

Change-Id: I68e6802424f16002c90a37b3ae2490721525e58d
---
M be/src/util/backend-gflag-util.cc
M common/thrift/BackendGflags.thrift
M fe/src/main/java/org/apache/impala/service/BackendConfig.java
M fe/src/main/java/org/apache/impala/service/JniFrontend.java
4 files changed, 44 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/70/17570/1
--
To view, visit http://gerrit.cloudera.org:8080/17570
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68e6802424f16002c90a37b3ae2490721525e58d
Gerrit-Change-Number: 17570
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <[email protected]>

Reply via email to