w.println("register /mydir/lib/hadoop-tools-0.20.201.0-SNAPSHOT.jar");
w.println("register /mydir/lib/jackson-core-asl-1.4.2.jar");
w.println("register /mydir/lib/jackson-mapper-asl-1.4.2.jar");
w.close();
MRScriptState ss = MRScriptState.get();
ss.setScript(new File("test.pig"));
Configuration conf = new Configuration();
MapReduceOper mro = new MapReduceOper(new OperatorKey());
ss.addSettingsToConf(mro, conf);
String s = conf.get("pig.script");
String script = new String(Base64.decodeBase64(s.getBytes()));
String expected =