Install Spark stand-alone environment on Spark Ubuntu18

Install JDK, the steps are omitted,

mjduan@mjduan-ubuntu:~$ java -version
java version "1.8.0_111"Java(TM) SE Runtime Environment(build 1.8.0_111-b14)
Java HotSpot(TM)64-Bit Server VM(build 25.111-b14, mixed mode)

Install Scala, download link

...

# scala
export SCALA_HOME=/opt/software/tool/scala2.12export PATH=$SCALA_HOME/bin:$PATH
mjduan@mjduan-ubuntu:~$ source ~/.bashrc 
mjduan@mjduan-ubuntu:~$ scala -version
Scala code runner version 2.12.8-- Copyright 2002-2018, LAMP/EPFL and Lightbend, Inc.

Install Spark, download link

mjduan@mjduan-ubuntu:~$ tail -f ~/.bashrc 
......

# scala
export SCALA_HOME=/opt/software/tool/scala2.12export PATH=$SCALA_HOME/bin:$PATH

# spark
export SPARK_HOME=/opt/software/tool/spark
export PATH=$SPARK_HOME/bin:$PATH
mjduan@mjduan-ubuntu:~$ source ~/.bashrc 
mjduan@mjduan-ubuntu:~$ spark-shell 
2019- 03- 0818:02:36 WARN  Utils:66- Your hostname, mjduan-ubuntu resolves to a loopback address:127.0.1.1; using 192.168.43.214instead(on interfacewlp2s0)2019-03-0818:02:36 WARN  Utils:66- Set SPARK_LOCAL_IP if you need to bind to another address
2019- 03- 0818:02:37 WARN  NativeCodeLoader:62- Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
Spark context Web UI available at http://192.168.43.214:4040
Spark context available as'sc'(master = local[*], app id = local-1552039363367).
Spark session available as'spark'.
Welcome to
      ____              __
  / __/__  ___ _____//__
 _\ \ / _ \/ _ `/ __/  '_//___/.__/\_,_/_//_/\_\   version 2.4.0/_/
         
Using Scala version 2.11.12(Java HotSpot(TM)64-Bit Server VM, Java 1.8.0_111)
Type in expressions to have them evaluated.
Type :help for more information.

scala>

Enter http://192.168.43.214:4040 in the browser to see the UI interface.

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

Install Spark stand-alone environment on Spark Ubuntu18
Docker ubuntu: install python-PIL-image environment on 14.04
Install Hadoop system environment on Ubuntu 18.04
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Centos 7.4 install stand-alone Spark
Install Python3 on Ubuntu 14.04
Install rJava on Ubuntu18
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
Docker practice (1): install Docker on Ubuntu 16.04
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install QQ robot on Ubuntu 16.04
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu14.0464 Ros environment install halcon13.01
Install scrapy framework on ubuntu
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
Install Odoo 11 stack on Ubuntu 16.04
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
Install Docker on Ubuntu 18.04 offline
Install and configure Mono production environment on Ubuntu Server
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
Deploy JobConverter + Ibreoffice environment on Ubuntu
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
How to install Vagrant on Ubuntu 20.04
Install botan2 encryption library on ubuntu
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04