This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!npm install -g localtunnel | |
!lt --port 8081 > localtunnel.log 2>&1 & | |
!apt-get install openjdk-8-jdk-headless -qq > /dev/null | |
!wget -q https://downloads.apache.org/spark/spark-3.1.2/spark-3.1.2-bin-hadoop3.2.tgz | |
!tar -xvf spark-3.1.2-bin-hadoop3.2.tgz > /dev/null | |
!cat localtunnel.log | |
!tail -f "$(/content/spark-3.1.2-bin-hadoop3.2/sbin/start-slave.sh --memory 10G spark://xx.xx.xx.xx:7077 | cut -d ' ' -f 5)" |