You cannot use anything that uses JNI on App Engine. You'll have to see if 
you can configure this Snappy library to use a "pure Java" version, instead 
of trying to load a native library. See:

https://cloud.google.com/appengine/docs/java/runtime

On Wednesday, August 3, 2016 at 9:42:23 AM UTC-4, sudheer Aki wrote:
>
>
> Hi All,
>
>
>
> I am using pipeline code to read a file from Cloud storage.
>
>
>
> Code : 
>
>
> DataflowPipelineOptions options = 
> PipelineOptionsFactory.create().as(DataflowPipelineOptions.class);
> options.setRunner(BlockingDataflowPipelineRunner.class);
> options.setProject("projectId");
> options.setStagingLocation("StagingPath");
>
>     //PipelineOptions options = PipelineOptionsFactory.create();
>     // Then create the pipeline.
>     Pipeline p = Pipeline.create(options);
>         PCollection<String> lines = 
> p.apply(TextIO.Read.named("ReadDataFromStorage").from("source_Path"));
>
>
> When am running from local eclipse am able to read a file.
>
> But when i deployed to App engine i am getting below error.I am using 
> snappy-java-1.1.2.1.jar.Please see the error below and help me ASAP.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Error for /dataflow org.xerial.snappy.SnappyError: 
> [FAILED_TO_LOAD_NATIVE_LIBRARY] null at 
> org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:159) at 
> org.xerial.snappy.Snappy.(Snappy.java:47) at 
> org.xerial.snappy.SnappyOutputStream.(SnappyOutputStream.java:97) at 
> org.xerial.snappy.SnappyOutputStream.(SnappyOutputStream.java:89) at 
> org.xerial.snappy.SnappyOutputStream.(SnappyOutputStream.java:79) at 
> com.google.cloud.dataflow.sdk.util.SerializableUtils.serializeToByteArray(SerializableUtils.java:49)
>  
> at 
> com.google.cloud.dataflow.sdk.util.SerializableUtils.ensureSerializable(SerializableUtils.java:84)
>  
> at com.google.cloud.dataflow.sdk.io.Read$Bounded.(Read.java:108) at 
> com.google.cloud.dataflow.sdk.io.Read$Bounded.(Read.java:103) at 
> com.google.cloud.dataflow.sdk.io.Read.from(Read.java:62) at 
> com.google.cloud.dataflow.sdk.io.TextIO$Read$Bound.apply(TextIO.java:319)*
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e349b5f-3eca-45b9-a5a9-52451a9ce823%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to