Commit Graph

6 Commits

Author SHA1 Message Date
Michael Brown
1cfe77dbaa IMPALA-4427: leopard: make DOCKER_IMAGE_NAME required
This patch now requires users of the Leopard framework to supply a
DOCKER_IMAGE_NAME. The cloudera/impala image isn't being maintained, and
until Apache Impala (incubating) decides to publish its own image, no
default image name is possible. It is still possible to run the Leopard
framework against a homegrown Docker image that has Apache Impala
(incubating) and PostgreSQL installed: simply build such an image and
export the DOCKER_IMAGE_NAME environment variable before running the
controller.

While here, fix some flake8 non-indent problems.

Testing: short Leopard controller / query generator run.

Change-Id: Ic1cb96cb5c9a894f40e0892f3bdd3f3d0158e887
Reviewed-on: http://gerrit.cloudera.org:8080/4936
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Reviewed-by: Jim Apple <jbapple@cloudera.com>
Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
Tested-by: Jim Apple <jbapple@cloudera.com>
2016-11-04 20:35:17 +00:00
Dan Hecht
ffa7829b70 IMPALA-3918: Remove Cloudera copyrights and add ASF license header
For files that have a Cloudera copyright (and no other copyright
notice), make changes to follow the ASF source file header policy here:

http://www.apache.org/legal/src-headers.html#headers

Specifically:
1) Remove the Cloudera copyright.
2) Modify NOTICE.txt according to
   http://www.apache.org/legal/src-headers.html#notice
   to follow that format and add a line for Cloudera.
3) Replace or add the existing ASF license text with the one given
   on the website.

Much of this change was automatically generated via:

git grep -li 'Copyright.*Cloudera' > modified_files.txt
cat modified_files.txt | xargs perl -n -i -e 'print unless m#Copyright.*Cloudera#i;'
cat modified_files_txt | xargs fix_apache_license.py [1]

Some manual fixups were performed following those steps, especially when
license text was completely missing from the file.

[1] https://gist.github.com/anonymous/ff71292094362fc5c594 with minor
    modification to ORIG_LICENSE to match Impala's license text.

Change-Id: I2e0bd8420945b953e1b806041bea4d72a3943d86
Reviewed-on: http://gerrit.cloudera.org:8080/3779
Reviewed-by: Dan Hecht <dhecht@cloudera.com>
Tested-by: Internal Jenkins
2016-08-09 08:19:41 +00:00
Taras Bobrovytsky
82af47c7af Switch query generator to randomness db by default
Currently the leopard query generator framework uses functional
database by default. This patch switches the default database to
"randomness", which contains more interesting data and wider tables
than functional. This patch makes it possible to optionally generate
and load the "randomness" database on the target machine. There is
also a nested schema parsing bug fix.

Change-Id: Idea0a095b42cc584cf3b52801385c9a991342218
Reviewed-on: http://gerrit.cloudera.org:8080/1987
Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
Tested-by: Internal Jenkins
2016-02-03 00:14:28 +00:00
Taras Bobrovytsky
f3d2f6bd7e IMPALA-2898: Fix the leopard framework (qgen)
Some recent commits broke the query generator leopard framework, for
example QueryResultComparator requires a different number of arguments.

Additional changes:
- Added better support for running the query generator in nested types
  mode
- Keeping track of the number of queries that returned data
- Made it easier to control behavior from a central place by adding
  flags to controller.py

Change-Id: I8f47c52097ccd53df4233b88eea887ce5fab1955
Reviewed-on: http://gerrit.cloudera.org:8080/1968
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: Internal Jenkins
2016-01-30 06:02:09 +00:00
Casey Ching
d202d6a967 Use "impala-python" (virtualenv) instead of system python
Python tests and infra scripts will now use "python" from the virtualenv
via $IMPALA_HOME/bin/impala-python. Some scripts could be simplified now
that python 2.6 and a dependable set of third-party libraries are
available but that is not done as part of this commit.

Change-Id: If1cf96898d6350e78ea107b9026b12ba63a4162f
Reviewed-on: http://gerrit.cloudera.org:8080/603
Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
Tested-by: Internal Jenkins
2015-08-06 02:09:09 +00:00
Taras Bobrovytsky
e33452cb54 Add self-serve framework to the Query Generator
Allows running the query generator continuously. Produces several reports per day. Reports
are presented as a web page which allows the user to conveniently examine the issues in
the report. The user can also start a custom run against a private Impala branch using the
web interface.

Change-Id: If2bfca34904f78f40e15a9c84b1be42fca014b9d
Reviewed-on: http://gerrit.cloudera.org:8080/309
Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
Tested-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
2015-06-16 02:39:05 +00:00