hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ugiwgh" <ugi...@gmail.com>
Subject Stop at CallObjectMethod when daemon running
Date Mon, 10 Dec 2012 12:53:16 GMT
I collect hadoop job info with JNI. My program run as daemon with apr API. But it didn't go
on running at the function "CallObjectMethod". Any one has this experience. Any help will
be appreciated.


Following is code pieces.
-------------------------
	jmethodID get_all_jobs_id = get_method(env,client_class,"getAllJobs","()[Lorg/apache/hadoop/mapred/JobStatus;");
	if(get_all_jobs_id == NULL)
        {
		return false;
	}
     jclass job_status_class = create_class(env,"org/apache/hadoop/mapred/JobStatus");
    if(job_status_class == NULL)
    {
        return false;
    }
    jarray job_status_array = (*env)->CallObjectMethod(env,client_obj,get_all_jobs_id);
    js_num = (*env)->GetArrayLength(env,job_status_array);
    jmethodID get_run_status_id = get_method(env,job_status_class,"getRunState","()I");

-GHui
Mime
View raw message