Cara Intall Apache Spark di Linux




 1. Install Java

     Memeriksa apakah java SDK (Standar Development Kit) dan JRE(Java Runtime Environment) sudah terinstall di OS kita
$ java -version


 Pada gambar diatas telihat versi java SDK yang digunakan ialah versi 1.8.0_131
serta versi JRE 1.8.0_131 serta telah terinstall.


Jika belum diinstall,kita bisa mendownload SDK dan JRE terlebih dahulu di
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Setelah itu ekstrak filenya kemudian masukkan kedalam PATH Environment

2.  Install Scala


 - Download scala di http://www.scala-lang.org/download/
 - Ekstraks file scala
$ tar xvf scala-2.12.3.tgz
$ sudo -i
# cd /home/nisty/Downloads/
# mv scala-2.12.3 /usr/local/scala/
# exit
$ export PATH=$PATH:/usr/local/scala/bin
$ scala -version 
















3. Install Apache Spark

- Download Apache Spark di https://spark.apache.org/downloads.html
$ tar xvf spark-2.2.0-bin-hadoop2.7.tgz
$ sudo -i
# cd /home/nisty/Downloads/
# mv spark-2.2.0-bin-hadoop2.7 /usr/local/spark/
$ export PATH=$PATH:/usr/local/spark/bin
$ spark-shell


Untuk menjalankan di user interface web akses browser dengan alamat http://192.168.1.23:4040 terlihat pada gambar diatas itu adalah alamatnya .
Bisa jadi alamatnya berbeda, sesuaikan dengan alamat yg diberikan.



Share:

How To Reset Root Password on Ubuntu 16.04




1. Edit Grub Menu with press "e"











2. Find the line "linux" and add script below at the end of that line

rw init=/bin/bash














3. Mount with to see read/write flags
root@(none):/# mount | grep -w /











4. Reset Password with command below
root@(none):/# passwd










5. Reboot your system

root@(none):/# exec /sbin/init
Share:

How To Disable a Keyboard Key in Linux


Okee.. then

Connect a USB keyboard in there, or get into the machine using ssh.

Open a terminal, and run xev. It will show some stuff on screen (too much stuff, but don't worry). You will notice that it will show some more stuff if you move your mouse, as well.

Then, press the key combination you want to disable. The info in the screen will change, and you will have to look for the keycode value.

Run something like this, changing <value> for the value you got for the keycode in the last step:

xmodmap -e 'keycode <value>='
For example, if I want to disable the ~ key ( Shift + ` ), I would have to run:

xmodmap -e 'keycode 49='

I hope this helps! okee thanks you..
Share: