Hi All,
   I am unable to compile  MapReduceSpecification.of  .It does work when i
select
//new DatastoreOutput(1)), but incase of new GoogleCloudStorageFileOutput("
images.sb.a-cti.com/staging/test", "result.txt", "text/plain", 1)), . This
show compile error not sure if i am missing something .

 I have tried replacing with different Marshallers but the result was same
.

Could some one put some light on this.


@RequestMapping("/accountJDOCounter")

public void accountJDOCounter(HttpServletRequest request,
HttpServletResponse response){

  try{



      String entityClassName = request.getParameter("entityClassName");

       String entityKind = request.getParameter("entityKind");

         if(entityKind == null){

         response.getWriter().write("Error");

         return;

         }

     MapReduceSettings settings = newMapReduceSettings().setWorkerQueueName(
"default").setControllerQueueName("default").setBucketName("
images.sb.a-cti.com/staging/test");

   logger.info("Creating job15");

   String jobId = MapReduceJob.start(

  MapReduceSpecification.of(

   "AccountJDO",

   new DatastoreInput(entityKind, 10),

   new AccountCounterMapper(),

   Marshallers.getStringMarshaller(),

   Marshallers.getLongMarshaller(),

   new AccountCounterReducer(),

   //new InMemoryOutput<KeyValue<String, Long>>(2)),

   new GoogleCloudStorageFileOutput("images.sb.a-cti.com/staging/test",
"result.txt", "text/plain", 1)),

   //new DatastoreOutput(1)),

   settings);

  // jobId is used to monitor, see step 5) below

    response.getWriter().write("jobId " + jobId);

   logger.info("JobId " + jobId);

   }catch(Exception e){

 StringWriter sw = new StringWriter();

 PrintWriter pw = new PrintWriter(sw);

 e.printStackTrace(pw);

 logger.info("Error " + sw.toString());

 }

  }

-- 
Thanks,
Pravanjan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to