|
|
Jameson Li 2013-01-30, 10:24
Hi,
I want to collect the pig job's script context that the jobs commited in the hadoop cluster. And I find the pig.PigContext in the mapreduce userjob log ‘xxx_conf.xml’. My Question: 1,Is this item after deserialization contains the pig job's script context that I need? 2,How can I deserialization this string? (I find 'public class PigContext implements Serializable', but I don't know how it encoding.)
Thanks very much.
专注于Mysql,MSSQL,Oracle,Hadoop
Jameson Li 2013-01-31, 06:21
I can use org.apache.pig.impl.util.ObjectSerializer.deserialize(str) to deserialize this string. But after deserialize, I can't get the pig code context, and it seems the commit job's pig code is not serialized in the pigContext. 专注于Mysql,MSSQL,Oracle,Hadoop 2013/1/30 Jameson Li <[EMAIL PROTECTED]>
> Hi, > > I want to collect the pig job's script context that the jobs commited in > the hadoop cluster. > And I find the pig.PigContext in the mapreduce userjob log ‘xxx_conf.xml’. > My Question: > 1,Is this item after deserialization contains the pig job's script context > that I need? > 2,How can I deserialization this string? > (I find 'public class PigContext implements Serializable', but I don't > know how it encoding.) > > Thanks very much. > > 专注于Mysql,MSSQL,Oracle,Hadoop >
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext