Apache Spark

TypeError: ‘Builder’ object is not callable

Change builder() to builder
From:
SparkSession.builder().appName("appName").getOrCreate()
To:
SparkSession.builder.appName("appName").getOrCreate()

Advertisements
Docker

Run Alpine, Ubuntu bash from docker image

Alpine Docker Image
docker pull apline
docker run -it alpine /bin/sh

docker run -it alpine /bin/bash will return:
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused “exec: \”/bin/bash\”: stat /bin/bash: no such file or directory”

Ubuntu Docker Image
docker pull ubuntu
docker run -it ubuntu /bin/bash