The file is in LevelDB format by default: https://code.google.com/p/leveldb/
The MapReduce code contains support for reading and writing it, so that it
can be passed between one pipeline and another.
If you want to control the file format yourself I would recommend using the
Appengine GCS client: https://code.google.com/p/appengine-gcs-client/


On Wed, Mar 27, 2013 at 6:25 AM, Ranjit Chacko <rjcha...@gmail.com> wrote:

> I'm trying to create JSON representations of my models in the datastore
> and then write them to a file in Cloud Storage in a MapperPipeline.
>
> The map method looks something like this:
>
> def map_method(entity):
>   json_message = make_json_message(entity)
>   yield(json_message)
>
>
> and the params for the output_writer look something like this:
>
> "output_writer":{
>             "filesystem": "gs",
>             "gs_bucket_name": "json_export",
>             "mime_type": "text/utf-8"
>           }
>
> The pipeline completes successfully, but the file I'm getting in Cloud
> Storage seems to be in a binary format.
>
> How do I get a JSON file out that I can read?
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to