There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
| path = "/public/yelp-dataset/yelp_review.csv" | |
| yelpReview = sc.newAPIHadoopFile(path, | |
| 'org.apache.hadoop.mapreduce.lib.input.TextInputFormat', | |
| 'org.apache.hadoop.io.LongWritable', | |
| 'org.apache.hadoop.io.Text', | |
| conf={'textinputformat.record.delimiter' : '\r'}) | |
| yelpReview.count() |
| package main | |
| import "syscall" | |
| func main() { | |
| // equivalent to (HANDLE)GetModuleHandle(NULL); in C | |
| handle, _, _ := syscall.Syscall( | |
| syscall.NewLazyDLL("kernel32.dll").NewProc("GetModuleHandleW").Addr(), | |
| 1, 0, 0, 0, |
| FROM jupyter/pyspark-notebook | |
| USER root | |
| # Add essential packages | |
| RUN apt-get update && apt-get install -y build-essential curl git gnupg2 nano apt-transport-https software-properties-common | |
| # Set locale | |
| RUN apt-get update && apt-get install -y locales \ | |
| && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ | |
| && locale-gen | |
| # Add config to Jupyter notebook | |
| COPY jupyter/jupyter_notebook_config.py /home/jovyan/.jupyter/ |
Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client
Tested on: Ubuntu 18.04, 20.04
Decide which version of the Oracle client to install
Download the Oracle client packages
| apt-get install -y libaio1 alien | |
| # Change version based on https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html | |
| # Example alternative: http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.5-basiclite-19.5.0.0.0-1.x86_64.rpm | |
| wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm | |
| sudo alien -i --scripts oracle-instantclient*.rpm | |
| rm -f oracle-instantclient*.rpm | |
| # Optionally install SQLPlus | |
| wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm | |
| sudo alien -i --scripts oracle-instantclient*.rpm |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *\command] | |
| @="cmd.exe /s /k pushd \"%V\"" | |
The instructions in this gist have some subtle problems and this gist will not be updated.