May 2017
Intermediate to advanced
294 pages
7h 33m
English
$ spark-shell
scala> val businesses = spark.read.format("json").load ("s3a://sparkcookbook/yelpdata/ yelp_academic_dataset_business.json")
scala> businesses.printSchema root |-- address: string (nullable = true) |-- attributes: array (nullable = true) | |-- element: string (containsNull = true) |-- business_id: string (nullable = true) |-- categories: array (nullable = true) | |-- element: string (containsNull = true) |-- city: string (nullable = true) |-- hours: array (nullable = true) | |-- element: string (containsNull = true) |-- is_open: long (nullable = true) |-- latitude: double (nullable = true) ...Read now
Unlock full access