Thanks Lewis for the explanation. It sums up everything you need to know
about AvroRPC.

@Pavindu, you were running the file manager using Intellij IDEA right?
Before running that, make sure you have built the file manager project with
`mvn clean install -DskipTests`.


On Thu, 10 Jun 2021 at 05:33, lewis john mcgibbney <lewi...@apache.org>
wrote:

> Hi Pavindu,
>
> Avro provides:
> * Rich data structures.
> * A compact, fast, binary data format.
> * A container file, to store persistent data.
> * Remote procedure call (RPC).
> * Simple integration with dynamic languages. Code generation is not
> required to read or write data files nor to use or implement RPC protocols.
> Code generation as an optional optimization, only worth implementing for
> statically typed languages.
>
> The Avro specification (https://avro.apache.org/docs/current/spec.html)
> states "A Schema is represented in JSON by one of..."
>
> In OODT, this means that all objects are modeled as Avro schemas. In the
> case of Filemgr, all of the Avro schemas live in source code management in
> https://github.com/apache/oodt/tree/master/filemgr/src/main/avro/types
> and are compiled into the OODT POJOs at compile time courtesy of the
> avro-maven-plugin
> https://github.com/apache/oodt/blob/master/filemgr/pom.xml#L247-L295
>
> Please let me know if you have any questions.
> lewismc
>
> On Tue, Jun 8, 2021 at 9:15 PM <dev-digest-h...@oodt.apache.org> wrote:
>
> >
> > dev Digest 9 Jun 2021 04:15:16 -0000 Issue 1518
> >
> > Topics (messages 9049 through 9049)
> >
> > cannot resolve avrotypes in oodt filemgr
> >         9049 by: Pavindu Lakshan
> >
> > Administrivia:
> >
> > ---------------------------------------------------------------------
> > To post to the list, e-mail: dev@oodt.apache.org
> > To unsubscribe, e-mail: dev-digest-unsubscr...@oodt.apache.org
> > For additional commands, e-mail: dev-digest-h...@oodt.apache.org
> >
> > ----------------------------------------------------------------------
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: Pavindu Lakshan <pavindulaks...@gmail.com>
> > To: dev@oodt.apache.org
> > Cc:
> > Bcc:
> > Date: Wed, 9 Jun 2021 09:45:04 +0530
> > Subject: cannot resolve avrotypes in oodt filemgr
> > Hi all,
> >
> > When I'm trying to ingest a product, I'm getting the following error.
> >
> > *NullPointerException: null of
> > org.apache.oodt.cas.filemgr.structs.avrotypes.AvroProductType*
> >
> > Also in the IntelliJ IDE, I am getting the error *Cannot resolve symbol
> > 'avrotypes'*
> >
> > Turns out, there is no avrotypes struct
> > in filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs. But they
> are
> > imported in AvroFileManagerClient.java[1].
> >
> > Can someone point me out a way to fix this error? Sorry if I'm missing
> > something obvious.
> >
> > Thanks and regards,
> > Pavindu
> >
> >  [1]
> >
> >
> https://github.com/apache/oodt/blob/master/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java
> >
>
>
> --
> http://home.apache.org/~lewismc/
> http://people.apache.org/keys/committer/lewismc
>

Reply via email to