Building Spark with mvn fails - scala

I am trying to build spark 1.5.0. I am using this command:
sh ./make-distribution.sh --name 2.6.0 --tgz -Phadoop-2.6 -Phive
But get the following error code:
Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-launcher_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed.
Also I get this error message:
Required file not found: scala-compiler-2.10.4.jar
Does anybody know, how I can fix this problem?
Thank you very much in advance.

Shutdown zinc first. See the documentation here
./build/zinc-<version>/bin/zinc -shutdown

Related

lombok : cannot find a simbol : build failed with gradle

My setting is like this..
Ecliplse 2020-03,
gradle 6.3
lombok 1.18.12
dependencies
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
failed commands
./gradle build -x test
./gradlew build -x test
When building the program with this settings, I always got the cannot find the symbol error .
The slf4j Tag also looks like that isn't understood by the build.gradle.
What should I try??
What' wrong with that??
Please help me find the cause of this problem..
I tried all searched ways to solve the problem.
But the error message did not change anything.
After all, I found that the directory that I commanded "gradle build" is not the same with it of source code that I was working...
When I check the right directory everythin goes well.
Thanks.

I am unable to build mongodb-binding with YCSB

I am trying to build mongodb-async driver with YCSB (0.15.0) version. I am running it on Clear Linux OS, and have MONGODB version 4.0.5 and mvn -version is 3.6.0.
I am running the command "mvn -pl com.yahoo.ycsb:mongodb-binding -am clean package" from my home directory of YCSB, and get the following error:
Could not resolve dependencies for project com.yahoo.ycsb:mongodb-bindin
g:jar:0.16.0-SNAPSHOT: Failed to collect dependencies at com.allanbank:mongodb-async-driver:jar:2.10.1: Failed to read artifact des
criptor for com.allanbank:mongodb-async-driver:jar:2.10.1: Could not transfer artifact com.allanbank:mongodb-async-driver:pom:2.10.
1 from/to allanbank (http://www.allanbank.com/repo/): Connect to www.allanbank.com:80 [www.allanbank.com/206.210.70.161] failed: Co
nnection timed out (Connection timed out) -> [Help 1]
Can someone please point me what might be going wrong. Thanks in advance
I think you have to configure the JAVA_HOME in the .mavenrc by adding:
expot JAVA_HOME=your path (eg: export JAVA_HOME=/usr/lib/jvm/java-8-oracle/) into this file

XGBoost4J successfully built but can't import ml.dmlc.xgboost4j.java.{DMatrix => JDMatrix}

I carefully followed the installation instructions from here, paid attention to set JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/
The installation through mvn package returns BUILD SUCCESS. However, when I tried to run BasicWalkThrough.scala from the example folder I got an error on
<console>:14: error: not found: value ml
import ml.dmlc.xgboost4j.java.{DMatrix => JDMatrix}
Can anybody help to fix this please?
OS:OSX 10.12
You need to run spark-shell with conf option pointing to your built xboost jar:
./bin/spark-shell --conf spark.jars=/xgboost/jvm-packages/xgboost4j-example/target/xgboost4j-example-0.8-SNAPSHOT-jar-with-dependencies.jar

How to integrate spring-batch in Wildfly

Does anyone know how to integrate spring-batch into a standalone wildfly (8.x)
instead of jberet ??
I tried to follow the instructions on this page : http://www.radcortez.com/spring-batch-as-wildfly-module/
I disabled all the Arquillian stuff and was able to run mvn process-resources
but when im trying to run mvn wildfly:execute-commands -P install-spring-batch im getting an error :
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.1.Final:execute-commands (default-cli) on project wildfly-spring-batch: Execution default-cli of goal org.wildfly.plugins:wildfly-maven-plugin:1.0.1.Final:execute-commands failed: Failed to process file 'C:\workspace\spring-batch\target\scripts\wildfly-add-spring-batch.cli': Command execution failed for command ' --resources=${wildfly.module.classpath}'. Failed to locate C:\workspace\spring-batch\${wildfly.module.classpath}
My understanding was that these path's would be generated during the run, but i will have to investigate further

OpenHab build failed with Maven

I am trying to set OpenHab IDE using the link:
https://github.com/openhab/openhab/wiki/IDE-Setup
I tryied the pure eclipse instraction but my build have failed announcing this error:
[ERROR] Failed to execute goal com.savage7.maven.plugins:maven-external-dependen
cy-plugin:0.4:resolve-external (resolve-install-external-dependencies) on projec
t org.openhab.io.multimedia.tts.marytts: Read timed out -> [Help 1]
I use Maven 3.3.1
Thanks in advance for your help
Actually the cause of the problem is that the hardware target was not successfully set.