Commit Graph

295 Commits

Author SHA1 Message Date
Zachary Tong 15e8cf7bcb Consolidate GetJob/GetJobs (elastic/elasticsearch#342)
In the same vein of GetBucket/GetBuckets and GetCategory/GetCategories.

This one was a bit more involved, since previously GetJobs didn't support 
configuring the various metrics. So now all metrics can be configured when 
requesting both a single job, or a range of jobs. It also unifies the request 
body handling between the two and adds POST handlers.

And similar to the other refactorings, the SingleDoc response is gone in 
favor of always returning an array of hits.

Original commit: elastic/x-pack-elasticsearch@ac47bb9bf6
2016-11-21 16:31:01 -05:00
Colin Goodheart-Smithe c8ef5c64de Adds kibana plugin to gradle build (elastic/elasticsearch#354)
This change moves the kibana app to a `kibana` directory at the root of the repository and adds gradle tasks to build the kibana app as part of `gradle check`. The kibana build can be muted by running `gradle check -Pxpack.kibana.build=false`

Original commit: elastic/x-pack-elasticsearch@f6ebb2d62b
2016-11-21 17:56:55 +00:00
Dimitris Athanasiou 63e40d9c72 Remove DataStreamer and DataStreamerThread (elastic/elasticsearch#353)
These classes are no longer needed. They used to be
necessary in order to handle compressed data and sending
data to multiple jobs. Compressed data is now handled
by elasticsearch and multi-job upload is no longer supported.

Original commit: elastic/x-pack-elasticsearch@08a9f29855
2016-11-21 16:30:10 +00:00
David Kyle be0b8575c1 Remove averageBucketProcessingTime from Job (elastic/elasticsearch#351)
Original commit: elastic/x-pack-elasticsearch@60703caa1b
2016-11-21 16:30:01 +00:00
David Roberts c6d52cd949 Fix a knock-on effect of removing JobLogs
Original commit: elastic/x-pack-elasticsearch@501fcda045
2016-11-21 15:49:26 +00:00
David Roberts c1d8b31b0e Remove redundant JobLogs class (elastic/elasticsearch#348)
Now we no longer have a log directory per job we don't need the functionality
to delete those directories.

Fixes elastic/elasticsearch#346

Original commit: elastic/x-pack-elasticsearch@a18beb0519
2016-11-21 15:36:50 +00:00
David Roberts f9dde66678 Add a simple license validation argument to the C++ processes (elastic/elasticsearch#339)
NOT the controller process, as this cannot take arguments when
started as a daemon by Elasticsearch

Closes elastic/elasticsearch#253

Original commit: elastic/x-pack-elasticsearch@14ea155caa
2016-11-21 11:26:10 +00:00
Martijn van Groningen b11f238791 fix test bug
Original commit: elastic/x-pack-elasticsearch@9f1584e48f
2016-11-21 11:53:03 +01:00
David Kyle 7c66c3a553 Remove dataCounts and modelSizeStats from Job (elastic/elasticsearch#333)
* Remove DataCounts and ModelSizeStats from Job

* Delete unused ElasticsearchJobDetailsMapper

Conflicts:
	elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchJobDetailsMapper.java
	elasticsearch/src/test/java/org/elasticsearch/xpack/prelert/job/persistence/ElasticsearchJobDetailsMapperTests.java

* Add missing mappings for DataCounts

Fixes yaml test failures

* Add test to assert revert a model snapshot sets DataCounts.latest_record_timestamp

* Resolve merge errors

* Add NORELEASE for persisting dataCounts in cluster update

Original commit: elastic/x-pack-elasticsearch@46099d4db6
2016-11-21 10:18:18 +00:00
Colin Goodheart-Smithe 617a1b65d2 remove warning
Original commit: elastic/x-pack-elasticsearch@73fae7a8fe
2016-11-21 09:28:42 +00:00
Colin Goodheart-Smithe f9de2fdc74 Remove unused headers and variables
Original commit: elastic/x-pack-elasticsearch@c720e2f8cc
2016-11-18 16:57:00 +00:00
Colin Goodheart-Smithe 06df439db0 Moves Java code to fit x-pack style structure
This change moves the Java code from `/java/apps/engine-node` to `/elasticsearch` so it matches the structure required by X-Pack. This will make it easier to get the gradle build working correct and building the full Pack zip.

Original commit: elastic/x-pack-elasticsearch@2fd6539e85
2016-11-18 16:35:00 +00:00
David Roberts 85b5220c59 cppClean task should remove old cppdistribution contents
The `git clean` we used to do at the beginning of the build used to take
care of this, but due to long paths on Windows we can no longer use this

Original commit: elastic/x-pack-elasticsearch@3210c7507b
2016-11-18 13:44:41 +00:00
Martijn van Groningen a77f6df3f2 attempt to always download latest snapshot
Original commit: elastic/x-pack-elasticsearch@869760c9df
2016-11-18 09:34:18 +01:00
David Roberts 155ee948ef Strip the C++ binaries when built via gradle to reduce download size (elastic/elasticsearch#323)
By default this isn't done when building directly with make, so developers
should still have debugging symbols in binaries they build themselves

Original commit: elastic/x-pack-elasticsearch@64cd92431b
2016-11-17 19:34:39 +00:00
Colin Goodheart-Smithe 83f2997ee0 Add infrastructure to the build for documentation (elastic/elasticsearch#320)
Original commit: elastic/x-pack-elasticsearch@7efa8c3f98
2016-11-17 14:07:20 +00:00
David Roberts cd04814cfb Change the Jenkins build entry point from shell script to gradle (elastic/elasticsearch#317)
Other related changes:
1) The Windows build is now done on Windows Server 2012r2
2) The Windows build is now done using Visual Studio 2013 Express (closes elastic/elasticsearch#256)
3) set_env.sh is only used with the C++ build
4) It is no longer necessary to set PRELERT_SRC_HOME if building via gradle -
   this environment variable IS still required for make, but gradle sets
   PRELERT_SRC_HOME before calling make
5) No build tools are loaded from the Prelert NAS
6) The version number for C++ components is now picked up from the same
   gradle.properties as the version number for Java components (closes elastic/elasticsearch#37)
7) "make test" now propagates error returns even when PRELERT_KEEP_GOING is
   defined - this means gradle only needs to check the return code of make
8) The C++ processes now print out Elasticsearch BV as the copyright owner

Jenkins implications:
1) Jenkins installs gradle 2.13 as part of the build process
2) Jenkins now does the build by executing these gradle tasks: cppAll, pluginAll
3) Jenkins must define the JAVA_HOME environment variables
4) The Jenkins slave running on Windows now has a standard setup, i.e. using
   cmd for its shell instead of Git bash
5) 64 bit Git for Windows is used on Windows build slaves instead of 32 bit
   msysgit

Original commit: elastic/x-pack-elasticsearch@01c863bfd0
2016-11-17 13:12:26 +00:00
Colin Goodheart-Smithe c6dadacb29 Changes the build to track elasticsearch 5.1.0-SNAPSHOT (elastic/elasticsearch#248)
Original commit: elastic/x-pack-elasticsearch@af689298f7
2016-11-07 09:27:22 +00:00
David Roberts 3033674607 Fix some Jenkins build issues (elastic/elasticsearch#221)
1) The C++ 3rd party libraries need to be copied to cppdistribution
   before gradle assemble runs
2) Use gradle check instead of gradle test in the build
3) We don't need Maven or pbzip2 any more
4) Make new_version.sh script update the right files
5) Keep a copy of the built plugin after the build

Outstanding TODOs:

1) Versioning needs to be brought in line with Elasticsearch
2) We are building a plugin per platform rather than one containing
   all platforms - we need a step that runs when all platforms have
   completed to create a single plugin
3) Strip the C++ binaries so the uploads aren't so big

Original commit: elastic/x-pack-elasticsearch@0cf32e134f
2016-11-02 15:41:12 +00:00
David Roberts f08faff040 Removed old Java projects (elastic/elasticsearch#208)
They'll soon cease to work at all when $PRELERT_HOME is removed

Any remaining code that needs to be ported can be copied from the analytics-dev branch

Original commit: elastic/x-pack-elasticsearch@1f2d97b429
2016-11-01 10:19:17 +00:00
Colin Goodheart-Smithe 68ecc10ea7 Adds ide build gradle config (elastic/elasticsearch#203)
Makes the ides work the same as the main ES project

Original commit: elastic/x-pack-elasticsearch@3ca9d78ea9
2016-10-31 13:05:32 +00:00
David Roberts 3ea5e62e98 Upgrade the analytics-dev branch to use GA Elasticsearch and Kibana 5.0 (elastic/elasticsearch#188)
Disabled the build of the incomplete engine-node project as it no longer
builds with the GA versions

Original commit: elastic/x-pack-elasticsearch@e07820f228
2016-10-28 11:16:35 +01:00
Martijn van Groningen 791f74ded9 5.0 upgrade
Original commit: elastic/x-pack-elasticsearch@9627dadb00
2016-10-26 17:35:10 +02:00
Martijn van Groningen 926c04c00d upgraded to 5.0.0-rc1
Original commit: elastic/x-pack-elasticsearch@687f9669db
2016-10-14 14:47:04 +02:00
polyfractal 55a828e15b Tweak Vagrant to use env variables for S3 boxes, update instructions
Original commit: elastic/x-pack-elasticsearch@20e657113e
2016-10-11 11:07:41 -04:00
polyfractal a2bc51da13 Add details about pre-baked vagrant box
Original commit: elastic/x-pack-elasticsearch@be7d4efad1
2016-10-06 10:09:59 -04:00
Zachary Tong 19868a97bf Add Vagrant build environment (elastic/elasticsearch#38)
This adds a vagrant configuration under /vagrant. This allows the user to provision a virtual machine with the entire build environment needed for compiling the C++ portion of the code (as well as the Java side, but that can be done easily outside of vagrant).

Original commit: elastic/x-pack-elasticsearch@12754bd80e
2016-10-05 10:00:13 -04:00
Martijn van Groningen 2af02b04e1 really remove old log4j from old engine-node module.
(only the engine-api-java module and its submodules remain to use old log4j)

Original commit: elastic/x-pack-elasticsearch@18a761eb9a
2016-10-04 20:08:24 +02:00
Dimitrios Athanasiou b4147acae0 Merge branch 'temp-phase-0'
Original commit: elastic/x-pack-elasticsearch@5954654cc4
2016-10-04 17:03:12 +01:00
Dimitrios Athanasiou aba1447b67 Upgrade engine-node to beta1 and clean up after merge
Original commit: elastic/x-pack-elasticsearch@745043a99a
2016-10-04 17:03:06 +01:00
Martijn van Groningen 9fa9dc3fa5 removed forked base test classes and let tests depend on provided base classes.
During tests we run now only with jar hell enabled, security manager remains to be disabled.

Original commit: elastic/x-pack-elasticsearch@06aebc5ec5
2016-10-04 17:03:04 +01:00
Tom Veasey 1ecd93497b Merge branch 'analytics-dev' into autoconfig
Original commit: elastic/x-pack-elasticsearch@5207fe6349
2016-10-04 16:14:00 +01:00
uboness 5ee82e4ae7 Initial X-Pack commit 2018-04-20 14:16:58 -07:00
David Roberts 9414b83e25 Updating version number
Original commit: elastic/x-pack-elasticsearch@027e5a6126
2016-10-04 09:18:52 +01:00
David Kyle c0f0c32ca3 Merge branch 'master' of github.com:elastic/prelert-legacy
Original commit: elastic/x-pack-elasticsearch@a7a91af704
2016-09-20 17:56:44 +01:00
David Roberts 23e340d084 Merge branch 'kibana_ui_5.0'
Original commit: elastic/x-pack-elasticsearch@12b6e17489
2016-09-20 17:29:05 +01:00
David Roberts 2d7b536848 Updating version number
Original commit: elastic/x-pack-elasticsearch@6427ca0255
2016-09-20 15:07:14 +01:00
David Roberts 8b21f8d43f Merge branch 'engine_migration_phase_0'
Original commit: elastic/x-pack-elasticsearch@b987d60447
2016-09-20 15:06:48 +01:00
David Kyle b991b34f0e Add engine-node project to the root gradle project
Builds the classes etc but does not copy any artefacts to the build area as the other projects do

Original commit: elastic/x-pack-elasticsearch@abc1301c70
2016-09-19 16:23:45 +01:00
David Roberts f37a86c880 Explicitly state source code encoding is UTF-8 in Gradle build files
Original commit: elastic/x-pack-elasticsearch@2f59b2c3a9
2016-09-19 15:00:38 +01:00
David Roberts 1b667b2584 Further split out C++ Gradle targets to make life easier for people without a C++ build environment
Original commit: elastic/x-pack-elasticsearch@eeca100a3b
2016-09-19 14:36:40 +01:00
David Roberts c0b1ac948c More Gradle migration changes
Original commit: elastic/x-pack-elasticsearch@2cdd825224
2016-09-19 14:08:35 +01:00
David Kyle 8b57199c55 Merge branch 'engine_migration_phase_0' of github.com:elastic/prelert-legacy into engine_migration_phase_0
Original commit: elastic/x-pack-elasticsearch@a8d1332e87
2016-09-16 17:30:53 +01:00
David Kyle f367ecf1e2 Build Native C++ binaries and Java code in a single gradle project.
C++ is built by calling make

Original commit: elastic/x-pack-elasticsearch@bd52bfd316
2016-09-16 17:30:45 +01:00
Martijn van Groningen 5b40acdc52 disable gradle deamon
Original commit: elastic/x-pack-elasticsearch@f93c69bf40
2016-09-14 11:05:31 +00:00