Member since
04-28-2019
1
Post
0
Kudos Received
0
Solutions
04-28-2019
12:09 PM
Hi, I don't know why even after completing sbt 0.13 installation and setting up JAVA_HOME to 1.8 , when I run sbt command getting below error: Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.pom Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.jar Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.pom Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.jar Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.pom Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.jar Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.2.8/ivys/ivy.xml Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.2.8/ivys/ivy.xml :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved dependency: org.scala-sbt#sbt;1.2.8: not found Error during sbt execution: Error retrieving required libraries (see /home/cloudera/.sbt/boot/update.log for complete log) Error: Could not retrieve sbt 1.2.8 Even JAVA_HOME is set to 1.8 but when typing which java it's pointing to 1.7. Irrespective of all I am able to run scala and execute using :paste in REPL mode. Please help me in setting up Java and SBT correctly. Please find my ~/.bash_profile below: [cloudera@quickstart bin]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin PATH=$PATH:/opt/scala-2.12.6/bin:/opt/sbt-launcher-packaging-0.13.13/bin export PATH export JAVA_HOME=/usr/java/jdk1.8.0_211 export JAVA_HOME export JRE_HOME=${JAVA_HOME} export JDK_HOME=${JAVA_HOME} export PYSPARK_PYTHON=/usr/local/bin/python3
... View more
Labels: