Giter Site home page Giter Site logo

yangboz / spring-boot-elasticsearch-lire-docker Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 5.0 18 MB

Spring-boot+ElasticSearch+LIRE+SwaggerUI RESTful.

Home Page: http://smartkit.info

License: MIT License

Java 1.94% CSS 5.78% HTML 0.51% JavaScript 91.77% Shell 0.01%
swagger swagger-ui elasticsearch lire spring-boot elasticsearch-lire facial-analysis docker architecture

spring-boot-elasticsearch-lire-docker's Introduction

spring-boot-elasticsearch-LIRE-docker

Walk through Spring-boot with ElasticSearch microservices RESTful.

Image of Architecture

1.How to install ElasticSearch-2.4.1?

MacOSX:

brew install elasticsearch

Ubuntu:

wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.1/elasticsearch-2.4.1.deb

dpkg -i elasticsearch-2.4.1.deb

Docker:

docker pull smartkit/eip-ielk:s241_l240_k461

2.How to start up ElasticSearch?

MacOSX:

elasticsearch --config=/usr/local/opt/elasticsearch/libexec/config/elasticsearch.yml

Ubuntu: bin/elasticsearch -Des.insecure.allow.root=true -d

Docker:

docker run smartkit/eip-ielk:s241_l240_k461

3.How to start up Spring-boot?

git clone https://github.com/yangboz/spring-boot-elasticsearch-LIRE-docker
cd spring-boot-elasticsearch-LIRE-docker
mvn spring-boot:run

4.Docker containerize it

mvn package && java -jar target/spring-boot-elasticsearch-LIRE-docker-0.0.1.jar

mvn package docker:build -DpushImage

5.Where is the RESTful result?

http://localhost:8084/api/static/index.html

6.Facial analysis(flandmark)

6.1.Face Detection

6.2.Facial Feature Extraction

6.4.Face Recognition/Classification

References:

ElasticSearch: https://www.elastic.co/

LIRE: https://github.com/dermotte/lire

Spring-boot-elasticsearch 1.0: http://www.javacodegeeks.com/2015/03/head-first-elastic-search-on-java-with-spring-boot-and-data-features.html

Upgrade to Elasticsearch 2.0: https://jira.spring.io/browse/DATAES-211

ElasticSearch-LIRE:

https://www.elastic.co/blog/found-getting-started-with-lire-and-elasticsearch

https://github.com/yangboz/elasticsearch-imageStr

Spring-boot-docker: https://spring.io/guides/gs/spring-boot-docker/

ElasticSearch with Hadoop: https://www.elastic.co/products/hadoop

https://db-blog.web.cern.ch/blog/prasanth-kothuri/2016-03-integrating-hadoop-and-elasticsearch-part-1-loading-and-querying

Facial Analysis: http://openimaj.org/tutorial/pt07.html

Troubleshoots

http://ignaciosuay.com/how-to-connect-spring-boot-to-elasticsearch-2-x-x/

https://github.com/spring-projects/spring-data-elasticsearch/wiki/Spring-Data-Elasticsearch---Spring-Boot---version-matrix

http://stackoverflow.com/questions/35157642/nosuchmethoderror-com-google-common-util-concurrent-moreexecutors-directexecuto

http://stackoverflow.com/questions/33544863/java-elasticsearch-client-always-null

spring-projects/spring-boot#4341

http://stackoverflow.com/questions/38937412/spring-boot-embedded-tomcat-not-starting

TODO

1.Using Index/Mapping/SearchRequestBuilder(ElasticSearch API)/ImageQueryBuilder(ElasticSearch-imageStr plugin) to re-factory.

2.Using MicroService architecture to seperate openIMAJ and ElasticSearch services.

spring-boot-elasticsearch-lire-docker's People

Contributors

yangboz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spring-boot-elasticsearch-lire-docker's Issues

curl is fine except ES with RestTemplate

  • {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"my_index","node":"_we_qSCaQqOQhC71Ke1yjA","reason":{"type":"parse_exception","reason":"Failed to derive xcontent"}}]},"status":400}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.