Hi, I have recently created a new application to copy entities to from an 
older application.

I have done this in order to test my map reduce jobs safely as I have seem 
to be un-able to get it working properly LOCALLY. (see: 
https://groups.google.com/forum/#!topic/google-appengine-java/BA4SrhGLF9k)

I have read in GAE 1.5.3 RELEASE NOTES 
(http://googleappengine.blogspot.com/2011/08/app-engine-153-sdk-released.html) 
the below:

*Datastore Admin* - You can now enable the Datastore 
Admin<http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html> 
function 
from the Admin Console. This will allow Java users to make use of this 
functionality, like deleting all entities of a certain kind, without having 
to upload a Python version of their application. And for Python developers, 
you no longer need to enable this in your app.yaml file.

In this process I kept getting a 403 error which I believe may be linked to 
this not being properly set up (I don't know if this has to be configured 
in the Java version anywhere since it is not yet documented for Java): 

remoteapi_CUSTOM_ENVIRONMENT_AUTHENTICATION = (
'HTTP_X_APPENGINE_INBOUND_APPID', ['source appid here'])

So with no documentation to aid me, I decided to do it the Python way. This 
seemed pretty simple to set up and this is what I did:

1. Make a python Hello World app (with correct app.yaml config and 
appengine-config.py file for the remoteapi_CUSTOM_ENVIRONMENT_AUTHENTICATION
)
2. Deploy the python application & set it as the default version
3. Make sure both Datastore Admin areas are enabled (also making sure that 
the source application is READ ONLY mode).
4. Choose the Kinds in the source app to copy across.
5. Click the copy button.

Then this is where I hit more problems...
How long should it take to copy entities? (it does say quite a while) - I 
have maybe less than 10GBytes of data to copy to the target application and 
still the Job status is:

Active (0 steps completed, 1 active) - This was to copy only 1 Kind which 
was 783 KBytes.

I saw: Copy job with id 
<https://ah-builtin-python-bundle-dot-latest-dot-acsoft-test.appspot.com/_ah/mapreduce/detail?mapreduce_id=158524493308560DDC11C>....
 
kicked off.

Then the following:

Loading Job Status...   KeyError: "Could not find job with ID u'......'"
Overview
   
   
Counters
   
   
Mapper statusShardStatusDescriptionLast work itemTime elapsed
What does this mean? I have a few my jobs now because I was unaware that 
anything actually worked properly until I realised that appended to the end 
of the Datastore Admin page was a list of my jobs and statuses.

They have all been in the following state for over 2 hours (surely at least 
one kinds should have copied by now given their small sizes?):

Copying all ..., ..., ..., ..., ..., ... entities to app_idActive (0 steps 
completed, 6 active)Copying all ... entities to app_idActive (0 steps 
completed, 1 active)



Sorry if it is a bit of an essay, I try to be as informative as possible.


Thanks for any replies,

Mark


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/JxjxM8KrdfIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to