Skip to main content
Dependencies:
  • ProphecySparkBasicsPython 0.0.1+
  • ProphecySparkBasicsScala 0.0.1+
Cluster requirements:
  • UC dedicated clusters 14.3+ supported
  • UC standard clusters 14.3+ supported
  • Livy clusters 3.0.1+ supported
The JSON (JavaScript Object Notation) file type:
  • Is human-readable, which simplifies how you debug and interact with data.
  • Has a flexible schema, which makes it easy to add or modify fields without changing the file format.

Parameters

Source

The Source gem reads data from JSON files and allows you to optionally specify the following additional properties.

Source properties

Supported corrupt record modes

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.

Target

The Target gem writes data to JSON files and allows you to optionally specify the following additional properties.

Target properties

Supported write modes

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.

Producing A Single Output File

We do not recommended this for extremely large data sets because it may overwhelm the worker node writing the file.
Due to Spark’s distributed nature, Prophecy writes output files as multiple separate partition files. If you want a single output file, such as reporting or exporting to an external system, use a Repartition gem in Coalesce mode with one output partition: