Rakesh,

You could use
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/PigServer.html#PigServer%28org.apache.pig.ExecType,%20java.util.Properties%29

You can specify your own properties via this constructor.

Something like,

Properties properties = PropertiesUtil.loadDefaultProperties();  //If
you want to load defaults
properties.set("foo","bar");
PigServer pigServer = new PigServer(ExecType.MAPREDUCE, properties);


Thanks,
Prashant

On Mon, Feb 6, 2012 at 2:56 PM, rakesh sharma
<[email protected]>wrote:

>
> Hi All,
> I am using PigServer to execute pig scripts. It picks up the HDFS
> configuration from hadoop configuration files residing in the classpath. I
> am wondering if there is a way to pass these values to PigServer and
> eliminate the need of having HDFS configuration files.
> Thanks,Rakesh

Reply via email to