Ted,
What triggerAndWait does is perform a rest call to a specified url and then
waits until the status message that gets returned by that url in a json a
field says complete. The issues is I put a println at the very top of the
method and that doesn't get printed out, and I know that println isn't
causing an issues because there is an exception that I throw further down
the line and that exception is what I am currently getting, but none of the
println along the way are showing:
def triggerAndWait(url: String, pollInterval: Int = 1000 * 30,
timeOut: Int = 1000 * 60 * 60, connectTimeout: Int = 30000,
readTimeout: Int = 30000, requestMethod: String = "GET"): Boolean = {
println("Entering triggerAndWait function - url: " + url +
" pollInterval: " + pollInterval.toString() + " timeOut: " +
timeOut.toString() + " connectionTimeout: " +
connectTimeout.toString() + " readTimeout: " + readTimeout.toString()
+
" requestMethod: " + requestMethod)
.....
Thanks,
KP
On Mon, Mar 28, 2016 at 1:52 PM, Ted Yu <[email protected]> wrote:
> Can you describe what gets triggered by triggerAndWait ?
>
> Cheers
>
> On Mon, Mar 28, 2016 at 1:39 PM, kpeng1 <[email protected]> wrote:
>
>> Hi All,
>>
>> I am currently trying to debug a spark application written in scala. I
>> have
>> a main method:
>> def main(args: Array[String]) {
>> ...
>> SocialUtil.triggerAndWait(triggerUrl)
>> ...
>>
>> The SocialUtil object is included in a seperate jar. I launched the
>> spark-submit command using --jars passing the SocialUtil jar. Inside the
>> triggerAndWait function I have a println statement that is the first thing
>> in the method, but it doesn't seem to be coming out. All println that
>> happen inside the main function directly are appearing though. I was
>> wondering if anyone knows what is going on in this situation and how I can
>> go about making the println in the SocialUtil object appear.
>>
>> Thanks,
>>
>> KP
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-spark-user-list.1001560.n3.nabble.com/println-not-appearing-in-libraries-when-running-job-using-spark-submit-master-local-tp26617.html
>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>