Error while building Spark 1.2.1 on Windows 7 using sbt - sbt

I am trying to build Spark 1.2.1 on Windows with the help of sbt, and I'm running into the following issue:
Edit: The command I ran was sbt/sbt assembly
[info] Set current project to spark-parent (in build file:/C:/Programming/spark-1.2.1/)
[error] Expected symbol
[error] Not a valid command: /
[error] /sbt
[error] ^
Any help would be greatly appreciated.
I used the latest sbt Windows installer to install sbt and have Git installed on my machine.

Related

Cmake error at CmakeLists.txt:3 (include)

I am trying to build the R package with GPU support to run xgboost following these steps, in ubuntu 20.04:
XGboost was installed from Rstudio with install.packages("xgboost")
cmake is installed from terminal with the command: sudo snap install cmake --classic
CMake version 3.21.2 was installed and verified
The terminal command:cmake .. -DUSE_CUDA=ON -DR_LIB=ON is used from the ~xgboost/build/
directory following the procedure from here, but it shows several errors related to the CMakeLists.txt file as shown below ...I downloaded the CMakeLists.txt file from GitHub, and placed it in the ~/xgboost/ path, but errors keep showing
How may I correct those errors? Thank you in advance for any advice!
This is my ubuntu 20.04 terminal
------- ubuntu 20.04 terminal ---
ricardo#ricardo:~/R/x86_64-pc-linux-gnu-library/3.6/xgboost/build$
cmake .. -DUSE_CUDA=ON -DR_LIB=ON
CMake Error at CMakeLists.txt:3 (include):
include could not find requested file:
cmake/Utils.cmake
-- CMake version 3.21.2
CMake Error at CMakeLists.txt:20 (include):
include could not find requested file:
/home/ricardo/R/x86_64-pc-linux-gnu-library/3.6/xgboost/cmake/FindPrefetchIntrinsics.cmake
CMake Error at CMakeLists.txt:21 (find_prefetch_intrinsics):
Unknown CMake command "find_prefetch_intrinsics".
-- Configuring incomplete, errors occurred!
See also "/home/ricardo/R/x86_64-pc-linux-gnu-library/3.6/xgboost/build/CMakeFiles/CMakeOutput.log".

SBT fails to launch on ARM64 Apple silicon with error Could not find required component 'xsbti'

When I launch SBT 1.5 using the command which in turn launches version 0.13 for the project
❯ sbt -v
[sbt_options] declare -a sbt_options='()'
[process_args] java_version = '8'
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-jar
/opt/homebrew/Cellar/sbt/1.5.0/libexec/bin/sbt-launch.jar
[info] Loading global plugins from /Users/viswanath/.sbt/0.13/plugins
[info] Updating {file:/Users/viswanath/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
I get the following error
[error] (compile:compileIncremental) sbt.InvalidComponent: Could not find required component 'xsbti'
on my MacBookPro with M1 processor (a.k.a Apple silicon) on ARM64 architecture. Any clue on how to fix this problem?
Note: Bundled SBT runs fine on IntelliJ
Try installing with SDKMAN
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java
sdk install sbt
sbt compile
Bumped up the project's SBT version to 1.5.0 and the problem disappeared. See this githib issue for more information.
Alternatively, check this workaround on SBT 1.5.0 for launching SBT in interactive mode.
sbt -Dsbt.boot.directory=/tmp/boot1 -Dsbt.launcher.coursier=false

Can’t find JavaFX, in CircleCI, after upgrading to Java 10

I just upgraded my project from Java 8 to Java 10. It successfully builds in IntelliJ and locally running mvn --batch-mode package, but when I try to build in CircleCI I get:
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[5,26] package javafx.application does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[6,19] package javafx.fxml does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[7,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[8,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/ConnectController.java:[9,28] package javafx.scene.control does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[5,19] package javafx.fxml does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[6,20] package javafx.scene does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[8,26] package javafx.scene.input does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[9,26] package javafx.scene.input does not exist
[ERROR] /home/circleci/repo/src/main/java/tech/dashman/dashman/controllers/common/Controller.java:[10,27] package javafx.scene.layout does not exist
Is this because JavaFX is not installed?
I tried adding
sudo apt-get install openjfx
to my config file on top of the circleci/openjdk:10-jdk-browsers, which I’m not sure whether it’s the one I should be using or not and that seems to install openjfx for Java 8.
I haven’t added a module-info.java, in case that’s relevant.

Installation failed trying to install MySQL ODBC connector on macOS High Sierra

I'm trying to install this mysql odbc connector on my macOS High Sierra machine, but I get this error:
I tried installing it using installer in the hopes of getting information about what went wrong:
➜ ~ sudo installer -pkg Desktop/mysql-connector-odbc-5.3.9-macos10.12-x86-64bit.pkg -target / -verbose
installer: Package name is MySQL Connector/Odbc 5.3.9
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing MySQL Connector/Odbc 5.3.9….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
But that doesn't help. Do you have any tips on how I can debug this and get the connector installed? Thanks.
I just noticed this:
on this page: https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html
After installing iODBC (http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads) it was able to install the connector.
I know I'm reviving an old thread, but having just had this exact problem/issue, and not solving with the iodbc installation, I thought I'd post the solution that worked for me. Use the commmand line... open terminal and run...
pip install mysql-connector-python
or
pip install mysql-connector
For those on an Apple Silicone Mac, this might be caused by having the wrong version of iODBC installed. Make sure to install the one labeled arm64 from iODBS website

Instal devStack on Ubuntu14.04 faild

I run ./stack.sh to install OpenStack but failed with
[ERROR] ./stack.sh:198 If you wish to run this script anyway run with FORCE=yes
So I use this cmd FORCE=yes ./stack.sh to install OpenStack on Ubuntu but failed as:
[ERROR] /opt/stack/devstack/functions-common:602 git call failed: [git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master]
I search this error but I got nothing from google, can someone help me to resolve this problem?
Many Thanks!

Resources