Skip to main content

Posts

Solution for "Caused by: java.io.IOException: Cannot run program "bazel""

Today I started to play around with TensorFlow 2.0 for Java. TensorFlow - git As usual, git clone git@github.com:tensorflow/java.git And then cd to java Next, nano /home/oleg/Downloads/tika/java/tensorflow-core/tensorflow-core-api/.bazelrc build --incompatible_restrict_string_escapes=false ctrl + X Next, if you've got: ModuleNotFoundError: No module named 'numpy' sudo pip3 install -U numpy And now, just re-build. mvn clean install .  
Recent posts

Spring WebFlux, Boot 2 and reactive mysql

In this post I will describe an web application which contains of: Spring WebFlux, Spring Boot 2, Mysql r2dbc and a lot of fun. My set up: Ubuntu 18.04 64-bit Java 8 (Oracle) docker 18.09.7 mysql  Ver 8.0.17 for Linux on x86_64 (MySQL Community Server - GPL) Next, Mysql runs as a docker container with exposed ports, I could connect to it outside. I've created a schema and inserted data using *.sql scripts. One for creation if exists and the second one for insertion. Next, created a gradle project with the following dependencies: buildscript { ext { springFrameworkVersion = '5.2.0.M3' springBootVersion = '2.1.9.RELEASE' springDataR2dbc = '1.0.0.RC1' applicationName = 'be-board-allocator' junitFive = '5.5.2' } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RE