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
== Parsed Logical Plan == | |
OverwriteByExpression RelationV2[id#61L] prodhive.jzhuge.wso_244_so_1633558130, true, Map(matchByName -> true), true | |
+- Repartition 4, false | |
+- Sort [id#3L ASC NULLS FIRST], true | |
+- Project [id#0L AS id#3L] | |
+- Range (0, 100000, step=1, splits=Some(6)) | |
== Analyzed Logical Plan == | |
OverwriteByExpression RelationV2[id#61L] prodhive.jzhuge.wso_244_so_1633558130, true, Map(matchByName -> true), true | |
+- Repartition 4, false |
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.SparkConf | |
import org.apache.spark.sql.SparkSession | |
import org.apache.spark.sql.types._ | |
import org.slf4j.{Logger, LoggerFactory} | |
object Main { | |
val logger: Logger = LoggerFactory.getLogger(this.getClass) | |
private lazy val sparkConf: SparkConf = new SparkConf() | |
.setMaster("local[*]") |
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
-Xms1024m | |
-Xmx3072m | |
-Xss64m | |
-Dfile.encoding=UTF-8 | |
-Djava.net.preferIPv4Stack=true | |
-Dsun.io.useCanonCaches=false | |
-XX:+AggressiveOpts | |
-XX:+AlwaysPreTouch | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+CMSIncrementalMode |
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
## This is an example of executing code when your zenpack gets installed (or removed) | |
## This __init__.py file should be located at ZenPacks.namespace.Name/ZenPacks/namespace/Name/__init__.py | |
## This code should be carefully added to your zenpack so as not to accidently overwrite key methods ( | |
''' | |
Here begins the non default code | |
''' | |
# Import all the things. |