Oracle by Example brandingAdding Weather Data to the Object Store

section 0Before You Begin

In this 10-minute tutorial, you add weather data to your data lake and combine with the citi bike trip data.

This is the 4th tutorial in the Storing and Analyzing Data with Big Data Cloud series. Perform the tutorials sequentially.

What Do You Need?


section 1Download Weather Data and Upload to Object Store

  1. In the Big Data Cloud Console Notebook page, click Citi Bike Trip note.
  2. Copy code_snippet-a2.txt and paste it in the empty paragraph.
  3. Set the title as Download weather data and upload to Object Store.
  4. Run the paragraph and view the output.
    running paragraph
    Description of the illustration a4.jpg

section 3Read Weather Data and Register as a Spark SQL Table

In this section, you use Spark to read the weather data CSV file and register the data frame as a Spark SQL temp table.

  1. Copy code_snippet-b1.txt and paste it in the empty paragraph.
  2. Set the paragraph title as Spark Scala to read CSV and register as a temp view.
  3. Run the paragraph to read the weather data CSV file and register it as a temp view using Spark.
    Running paragraph
    Description of the illustration b3.jpg
  4. Run the following query in the next paragraph to retrieve the weather data.
  5. %sql
    select * from weather_temp
    where NAME like '%CENTRAL%'
    Running paragraph
    Description of the illustration b4.jpg

next stepNext Tutorial

Adding Calendar Data to the Object Store


more informationWant to Learn More?