Using namespace

15 views
Skip to first unread message

aswath

unread,
Apr 27, 2014, 10:03:22 PM4/27/14
to app-engine-...@googlegroups.com
Hello,
Java mapreduce recently added namespace support.  I could not get an example or more documentation on using this feature.  
How do I use the namespace in the mapreduce. 

-Aswath
Message has been deleted

Arie Ozarov

unread,
Apr 28, 2014, 3:10:33 PM4/28/14
to app-engine-...@googlegroups.com
Just provide the desired namespace to DatastoreInput constructor. (e.g. new DatastoreInput("kind1", SHARD_COUNT, "namespace1"))

Aswath Narayana

unread,
May 7, 2014, 12:21:35 AM5/7/14
to app-engine-...@googlegroups.com
Hi, 
Can I provide a list of namespaces?

What if I have to run the mapreduce job for 1000+ namespaces.

-Aswath

Regards,
Aswath
Veersoft Solutions
No.49. Lakshminarayanapura, 60ft Road, Adjacent to AECS Layout,
Kundanahalli, Bangalore - 560 037 Karnataka India


On Tue, Apr 29, 2014 at 12:40 AM, Arie Ozarov <oza...@google.com> wrote:
Just provide the desired namespace to DatastoreInput constructor. (e.g. new DatastoreInput("kind1", SHARD_COUNT, "namespace1"))

--
You received this message because you are subscribed to the Google Groups "Google App Engine Pipeline API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-engine-pipeli...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arie Ozarov

unread,
May 7, 2014, 12:31:28 PM5/7/14
to app-engine-...@googlegroups.com
No, you can only provide one namespace. The Datastore does not provide a way to use one query for multiple namespaces.
You could create many MR jobs (one for each namespace) and tie them together using a parent pipeline.
Feel free to create a feature request @ https://code.google.com/p/appengine-mapreduce/issues/ 

Arie.
Reply all
Reply to author
Forward
0 new messages