I've already seen this post . But I don't seem to be able to find applicationid on JavaSparkContext
.
Actually want I need is a unique id that identifies the application. I could just generate uuid and set it as app-name. Is there a better way?
Try this :-
JavaSC.env().conf().getAppId();
or
ctxt.getConf().getAppId()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.