time.google.com
time1.google.com
time2.google.com
time3.google.com
#!/bin/bash | |
# Install Quake 3: Arena on a mac | |
set -e # exit on error | |
if [ ! -d ${HOME}/ioq3 ]; then | |
(cd ${HOME} && git clone https://github.com/ioquake/ioq3) | |
else | |
(cd ${HOME}/ioq3 && git pull --rebase) |
#!/bin/sh | |
# | |
# Resource script for Minio | |
# | |
# Description: Manages Minio as an OCF resource in | |
# an Active-Passive High Availability setup. | |
# | |
# Author: Ricardo Branco <[email protected]> : Initial script for minio server | |
# License: GNU General Public License (GPL) | |
# |
import org.apache.spark.sql.DataFrame | |
def dataFrameToDDL(dataFrame: DataFrame, tableName: String): String = { | |
val columns = dataFrame.schema.map { field => | |
" " + field.name + " " + field.dataType.simpleString.toUpperCase | |
} | |
s"CREATE TABLE $tableName (\n${columns.mkString(",\n")}\n)" | |
} | |
import spark.sqlContext.implicits._ |