oleewere bc3bd62f07 AMBARI-20858. Reupload missing config files for Log Search collections (oleewere) 8 سال پیش
..
ambari-infra-solr-plugin 79e676c2a8 AMBARI-19822. Add infra-solr-plugin for authorization (with Kerberos) (oleewere) 8 سال پیش
ambari-logsearch-appender 336209a0a0 AMBARI-18077. Clean up Log Search Appender and improve speed (Miklos Gergely via oleewere) 8 سال پیش
ambari-logsearch-assembly 79e676c2a8 AMBARI-19822. Add infra-solr-plugin for authorization (with Kerberos) (oleewere) 8 سال پیش
ambari-logsearch-it 39ffb74f22 Update ambari-logsearch-it version to 2.5.0.0.0 (oleewere) 8 سال پیش
ambari-logsearch-logfeeder 6adc5856c5 AMBARI-20766 Log Feeder fill cluster name if it is not set (mgergely) 8 سال پیش
ambari-logsearch-portal bc3bd62f07 AMBARI-20858. Reupload missing config files for Log Search collections (oleewere) 8 سال پیش
ambari-logsearch-solr-client 49ba891ce9 AMBARI-19727. Extend security.json of Infra Solr as a configuration property in Ambari (oleewere) 8 سال پیش
docker 9bc97c4b99 AMBARI-20378. Logfeeder: add de-duplication support (oleewere) 8 سال پیش
README.md d78f303160 AMBARI-18076. JBehave and docker based Integration Test Framework for Log Search components (oleewere) 8 سال پیش
pom.xml 79e676c2a8 AMBARI-19822. Add infra-solr-plugin for authorization (with Kerberos) (oleewere) 8 سال پیش

README.md

Log Search

Setup local environment with docker

Prerequisites

Install docker For Mac OS X use Docker Machine

Build and start Log Search in docker container

# to see available commands: run start-logsearch without arguments
cd docker
./logsearch-docker build-and-run

If you run the script at first time, it will generate you a new Profile file inside docker directory, in that file you should set AMBARI_LOCATION (point to the local ambari root folder) and MAVEN_REPOSITORY_LOCATION (point to local maven repository location). These will be used as volumes for the docker container. If Profile is generated for first time use ./logsearch-docker start command to start container without rebuild the project/container again.

After the logsearch container is started you can enter to it with following command:

docker exec -it logsearch bash

Package build process

  1. Check out the code from GIT repository

  2. On the logsearch root folder (ambari/ambari-logsearch), please execute the following Maven command to build RPM/DPKG:

    mvn -Dbuild-rpm clean package
    

    or

    mvn -Dbuild-deb clean package
    
  3. Generated RPM/DPKG files will be found in ambari-logsearch-assembly/target folder

Running Integration Tests

By default integration tests are not a part of the build process, you need to set ${it.skip} variable to true (docker needed here too)

# from ambari-logsearch folder
mvn clean integration-test -Dit.skip=false

Also you can run from the IDE, but make sure all of the ambari logsearch modules are built.