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
Exception in thread "main" org.apache.spark.SparkException: Application application_1509398305238_0002 finished with failed status | |
at org.apache.spark.deploy.yarn.Client.run(Client.scala:1104) | |
at org.apache.spark.deploy.yarn.Client$.main(Client.scala:1150) | |
at org.apache.spark.deploy.yarn.Client.main(Client.scala) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:755) | |
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) |
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
/* | |
Prior to this, I would build up `cfgMap` from my command line options. | |
If `'config` exists, that will load the run time config file and overlay it on top of the default config. | |
*/ | |
// setup our default config | |
lazy val defaultConfig = ConfigFactory.parseResources("default.conf") | |
var conf = defaultConfig | |
// do we have a runtime config file? | |
val cfgFilePath = cfgMap.getOrElse('config, Nil) |
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
>>> sample = {"a":2,"b":{"c":44}} | |
>>> sample.get("b",{}).get("c") # is gross | |
>>> | |
>>> class nestdict(dict): | |
... def __floordiv__(self, k): | |
... v = self.get(k) | |
... if isinstance(v, dict): return nestdict(v) | |
... return v | |
... | |
>>> z = nestdict(sample) |
OlderNewer