Skip to content

Instantly share code, notes, and snippets.

# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/playframework
# you can then start/stop it using either initctl or start/stop/restart
# e.g.
# start playframework
# http://dominikdorn.com
description "Description of your app"
author "Dominik Dorn <[email protected]>"
version "1.0"
bash ; source var.sh ; source start.sh ; source create.sh
#cloud-config
# { { { variable } } }
packages:
- etcd
- jq
- traceroute
runcmd:
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
---------------------------------------------------------------------------
Py4JJavaError Traceback (most recent call last)
<command-634889928058462> in <module>()
17 #display(df.limit(5))
18
---> 19 toCSV = filter(None, list(map(xml_to_dict, xml.collect())))
20 keys = toCSV[0].keys()
21 #print(keys)
/databricks/spark/python/pyspark/rdd.py in collect(self)