Reading compressed text.

Adding the ability to read compressed text. Reading the compression type from the
file descriptors. Trying to homogenize a bit more the interface of the scanners.
Removing the LZO_TEXT file format, since it was not actually a file format.
Modifying the tests to load and test also text/{snap,gzip,bzip} databases.
Note that this patch requires some changes to Impala-lzo as well.

Change-Id: Ic0742ba11f106ba545050bdb71795efbff70ef74
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3549
Reviewed-by: Ippokratis Pandis <ipandis@cloudera.com>
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: Ippokratis Pandis <ipandis@cloudera.com>
Disable histogram UDA test for decimal vals due to IMPALA-1111

Change-Id: I21391e671896c9ebe52fd45accc2d290267ee0ac
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3641
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
[CDH4] Remove limits for tpch queries and restore them where possible.

Change-Id: I3a84fa3d1e0be6a675da50bea69345f83935cec3
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3480
Tested-by: jenkins
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
[CDH4] Add support for Sentry Service to Impala

Note: Sentry Service is not supported on CDH4, but this change ports the changes
from CDH5 to help with code divergence. Calls to Sentry Service APIs throw an
UnsupportedOperationException.

This change adds support for authorizing based on policy metadata read from the Sentry
Service. Authorization is role based and roles are granted to user groups. Each role
can have zero or more privileges associated with it, granting fine grained access to
specific catalog objects at server, URI, database, or table scope. This patch only
adds support to authorize against metadata read from the Sentry Policy Service, it does
not add support for GRANT/REVOKE statements in Impala.

The authorization metadata is read by the catalog server from the Sentry Service and
propagated to all nodes in the cluster in the "catalog-update" statestore topic. To
enable the Catalog Server to read policy metadata, the --sentry_config must be
set to a valid sentry-site.xml config file.

On the impalad side, we continue to support authorization based on a file-based provider.
To enable file based authorization set the --authorization_policy_file to a
non-empty value. If --authorization_policy_file is not set, authorization will be done
based on cached policy metadata received from the Catalog Server (via the statestore).

TODO: There are still some issues with the Sentry Service that require disabling some of
the authorization tests and adding some workarounds. I have added comments in the code
where these workarounds are needed.

Change-Id: I3765748d2cdbe00f59eefa3c971558efede38eb1
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2552
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3624
Tested-by: jenkins