This file contains hidden or 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
dmytro@...:~/projects/gradledemo2$ ./gradlew dependencies | |
> Task :dependencies | |
------------------------------------------------------------ | |
Root project 'gradledemo2' | |
------------------------------------------------------------ | |
annotationProcessor - Annotation processors and their dependencies for source set 'main'. | |
No dependencies |
This file contains hidden or 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
plugins { | |
id 'scala' | |
id 'application' | |
} | |
group = 'org.example' | |
version = '1.0-SNAPSHOT' | |
repositories { | |
mavenCentral() |
This file contains hidden or 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
plugins { | |
id 'scala' | |
id 'application' | |
} | |
group = 'org.example' | |
version = '1.0-SNAPSHOT' | |
repositories { | |
mavenCentral() |
This file contains hidden or 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
plugins { | |
id 'scala' | |
id 'application' | |
} | |
group = 'org.example' | |
version = '1.0-SNAPSHOT' | |
repositories { | |
mavenCentral() |
This file contains hidden or 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
package com.example | |
object SMain { | |
def main(args: Array[String]): Unit = { | |
println("hi") | |
} | |
} |
This file contains hidden or 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
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects2/scala3demo2/target/scala-3.3.3/classes$ cd org/public_domain/ | |
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects2/scala3demo2/target/scala-3.3.3/classes/org/public_domain$ ls | |
main.class Main.class Main$.class main.tasty Main.tasty | |
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects2/scala3demo2/target/scala-3.3.3/classes/org/public_domain$ cd .. | |
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects2/scala3demo2/target/scala-3.3.3/classes/org$ cd .. | |
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects2/scala3demo2/target/scala-3.3.3/classes$ javap org.public_domain.Main | |
Compiled from "Main.scala" | |
public final class org.public_domain.Main { | |
public static void main(); | |
} |
This file contains hidden or 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
{ | |
"ExportSchema" : [ | |
{ | |
"Application" : "fuzzitDwh", | |
"EntityType" : "4", | |
"CountryCode" : "AT", | |
"ExportType" : "DIFF", | |
"ExportUtcDateTime" : "2021-12-15T01:45:01", | |
"LastExportUtcDateTime" : "2021-12-14T10:19:37", | |
"FileName" : "UL_DataLake_fuzzitDwh_MaterialExternal_AT_DIFF_20211215_014501.json" |
This file contains hidden or 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.SparkContext | |
object Main { | |
val sc = new SparkContext("local[1]", "SimpleProg") | |
val nums = sc.parallelize(List(1, 2, 3, 4)) | |
//println(nums.reduce((a, b) => a - b)) | |
def main(args: Array[String]): Unit = { |
This file contains hidden or 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.SparkContext | |
object Main { | |
val sc = new SparkContext("local[1]", "SimpleProg") | |
val nums = sc.parallelize(List(1, 2, 3, 4)) | |
println(nums.reduce((a, b) => a - b)) | |
def main(args: Array[String]): Unit = { |
This file contains hidden or 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 com.fasterxml.jackson.core.Version | |
import com.fasterxml.jackson.databind.{Module, ObjectMapper} | |
import org.apache.spark.sql.SparkSession | |
object App { | |
val spark = SparkSession.builder | |
.master("local") | |
.appName("Spark app") | |
.getOrCreate() |
NewerOlder