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
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
------- | |
screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
screen -r docker | |
# enter, then disconnect with Ctrl-a d | |
screen -S docker -p 0 -X stuff $(printf root\\r\\n) | |
screen -r docker |
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
import org.apache.spark.sql._ | |
import org.apache.spark.sql.hive.HiveContext | |
val sqlContext = new HiveContext( sc ) | |
import sqlContext._ | |
// Let's build a table with two columns with types String and Array[String] | |
val schema = StructType( | |
Array( | |
StructField("name", StringType, false), | |
StructField("friends", ArrayType(StringType, true), false) |