fiware cygnus - unable to load synk for test - fiware

I am trying to follow the quick start guide for Fiware Cygnus described here.
Actually, when I try to start Cygnus from command line, this is the error I get:
time=2018-06-06T14:40:54.315UTC | lvl=ERROR | trans= | srv= | subsrv= | function=run | comp=Cygnus | msg=org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable[142] : Failed to load configuration data. Exception follows.
org.apache.flume.FlumeException: Unable to load sink type: com.telefonica.iot.cygnus.sinks.NGSITestSink, class: com.telefonica.iot.cygnus.sinks.NGSITestSink
I found similar questions on this topic, but not with this specific problem.
Thank you for your support!

Related

Euca CC initlization issue

After manual installation of EUCA-CC, When try to initialize cloud -clcadmin-initialize-cloud- Getttng the error-
ERROR | initdb: directory "/var/lib/eucalyptus/db/data" exists but is not empty ERROR | If you want to create a new database system, either remove or empty directory "/var/lib/eucalyptus/db/data" or run intdb
ERROR | initdb: directory "/var/lib/eucalyptus/db/data" exists but is not empty
ERROR | If you want to create a new database system, either remove or empty
ERROR | the directory "/var/lib/eucalyptus/db/data" or run initdb
ERROR | with an argument other than "/var/lib/eucalyptus/db/data".
ERROR | java.lang.RuntimeException: java.lang.RuntimeException: Database initialization failed with error code: 1
java.lang.RuntimeException: Database initialization failed with error code: 1
Any pointers are appreciated!
tried deleting db file and downgraded Java from 11 to 8.

Error in sonarqube configuration using command prompt

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error: Could not create the Java Virtual Machine.
jvm 1 | Error: A fatal exception has occurred. Program will exit.
jvm 1 | Unrecognized option: --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
wrapper | JVM exited while loading the application.
wrapper | JVM Restarts disabled. Shutting down.
wrapper | <-- Wrapper Stopped
note the jdk path and that in sonarqube config file
then open command prompt and add ----------Sonarstart

Why Spring Batch is creating lower case table on MySql on my Ubuntu 20.04 machine?

I am working on a Spring Batch project (running on Spring Boot) and I am running into a nagging problem.
Basically untill now I used H2 database. In order to go in production (on an Ubuntu 20.04 machine) I am trying to replace it with MySql.
This was my application.properties initial configuration (using H2 database):
#Database Configuration
spring.datasource.url=jdbc:h2:mem:springbatch;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=
So I replaced these configuration with these new configuration using MySql instead H2:
spring.datasource.platform=mysql
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/spring
spring.datasource.username=andrea
spring.datasource.password=Aprile_12_Test
spring.datasource.initialization-mode=always
As you can see the initialization mode is set to always so running my Spring Batch application the tables will be created into my spring MySql database. Tables are created but they are lowercase (into the used schema-mysql.sql file are all uppercase:
mysql> show tables;
+------------------------------+
| Tables_in_spring |
+------------------------------+
| BATCH_JOB_EXECUTION |
| BATCH_JOB_INSTANCE |
| DATABASECHANGELOG |
| DATABASECHANGELOGLOCK |
| batch_job_execution |
| batch_job_execution_context |
| batch_job_execution_params |
| batch_job_instance |
| batch_step_execution |
| batch_step_execution_context |
+------------------------------+
It seems to be the cause of some error because then it doesn't create other table using table with uppercase reference.
Why am I facing this problem? What can I do to solve this? Exist a way to specify to use uppercase name as defined into the .sql file?
Solved by myself allowing Spring Boot\Batch to create the database table the first time. Into application.properties::
spring.datasource.initialization-mode=always
removing liquidebase library from pom.xml:
<!--
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<scope>runtime</scope>
</dependency>
-->
Finnally disabling database table creation into the application.properties:
spring.datasource.initialization-mode=never
Finnally running the batch. The problems seems to be liquidbase.

Problems with installing nvidia grid driver

I want to use gpu acceleration for my android emulator in a compute engine instance.
I added tesla t4 gpu and now trying to install the gpu grid driver according to here.
I use ubuntu 20. please advise
https://cloud.google.com/compute/docs/gpus/install-grid-drivers
I get an error:
in file included from /tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/nvidia/nv-rsync.c:24:
/tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/common/inc/nv-linux.h:1775:6: error: "NV_BUILD_MODULE_INSTA
NCES" is not defined, evaluates to 0 [-Werror=undef]
1775 | #if (NV_BUILD_MODULE_INSTANCES != 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
c1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/nvidia/nv_uvm_int
erface.o] Error 1
/tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/nvidia/nvlink_linux.c: In function ‘nvlink_sleep’:
/tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/nvidia/nvlink_linux.c:570:5: error: implicit declaration of
function ‘do_gettimeofday’; did you mean ‘efi_gettimeofday’? [-Werror=implicit-function-declaration]
570 | do_gettimeofday(&tm_aux);
| ^~~~~~~~~~~~~~~
| efi_gettimeofday
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel/nvidia/nvlink_lin
ux.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1731: /tmp/selfgz11598/NVIDIA-Linux-x86_64-410.92-grid/kernel] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-1021-gcp'
make: *** [Makefile:79: modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find sug
gestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.co
m.
(END)
The document you are using to install NVIDIA GRID® drivers for virtual workstations, only contains examples of the commands needed to install the GRID drivers.
The example contained in that guide, is for installing the NVIDIA 410.92 driver, this driver is for GRID7.1, but I recommend to use the latest version of GRID, you can consult the following table to see the drivers available.
I’ve reproduced this scenario on my own project and I was able to install GRID11.0, using the NVIDIA 450.51.05 driver.
I’m using an instance with the following characteristics:
Machine type: n1-standard-1 (1 vCPU, 3.75 GB memory)
GPUs: 1 x NVIDIA Tesla T4
OS ubuntu-minimal-2004-focal-v20200702
Keep in mind that you need to have the option Enable Virtual Workstation (NVIDIA GRID) enabled at the creation moment to avoid issues.
I used the following commands for this installation:
user#instance-1:~$ curl -O https://storage.googleapis.com/nvidia-drivers-us-public/GRID/GRID11.0/NVIDIA-Lin
ux-x86_64-450.51.05-grid.run
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 139M 100 139M 0 0 72.2M 0 0:00:01 0:00:01 --:--:-- 72.1M
user#instance-1:~$ sudo bash NVIDIA-Linux-x86_64-450.51.05-grid.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 450.51.05.....................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
........................................................................
user#instance-1:~$ nvidia-smi
Mon Jul 27 21:11:17 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.05 Driver Version: 450.51.05 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 On | 00000000:00:04.0 Off | 0 |
| N/A 73C P8 21W / 70W | 0MiB / 15109MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
In my case I needed to install some dependencies like the gcc compiler, and I only used the command
$ sudo apt install build-essential
I hope this information is useful for you.

GGTS: Grails errors during making project org.codehaus.groovy.control.MultipleCompilationErrorsException

I know that this question have been discussed many time, but i didn't find solution for resolve my situation.. here is: I had started a new project in GGTS 3.4. I used Java JRE 7. In Preferences of GGTS, Java (Installed JREs) has this location:
C:\Program Files\Java\jdk1.7.0_51 and tools.jar included in jre's.
Also I have those settings in my Environment Variables:
C:\grails-2.2.4
C:\Program Files\Groovy\Groovy-2.2.1
c:\Program Files\Java\jdk1.7.0_51
PATH: %GROOVY_HOME%\bin;C:\grails-2.2.4\bin;%JAVA_HOME%\bin
startGrails.bat have been started using console
So, when I tried to make new project by File - New -Grails Project, I had an error:
Loading Grails 2.2.4 | Configuring classpath | Error
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
_CreateApp: 1: unexpected char: 0x0 # line 1, column 1. 1 error | Error at
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
| Error at
org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
| Error at
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
| Error at
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
| Error at
org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359) |
Error at
org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:137)
| Error at
org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108)
| Error at
org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236) |
Error at
org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:162)
| Error at
org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:903)
| Error at
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:566)
| Error at
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:542)
| Error at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:519)
| Error at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:498)bla
bla bla
please, provide a solution for resolve this problem.
Cheers!