Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running example #1

Closed
psugihara opened this issue Mar 10, 2013 · 5 comments
Closed

Error running example #1

psugihara opened this issue Mar 10, 2013 · 5 comments

Comments

@psugihara
Copy link

Hey, I'm trying to run the example relay server and it's throwing me an error when I do bin/start-example-relay.sh person:

databus2-example-relay-pkg $ Exception in thread "main" java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at com.linkedin.databus2.schemas.ResourceVersionedSchemaSetProvider.loadSchemas(ResourceVersionedSchemaSetProvider.java:61)
    at com.linkedin.databus2.schemas.FileSystemSchemaRegistryService.initializeSchemaSet(FileSystemSchemaRegistryService.java:133)
    at com.linkedin.databus2.schemas.FileSystemSchemaRegistryService.build(FileSystemSchemaRegistryService.java:56)
    at com.linkedin.databus2.schemas.StandardSchemaRegistryFactory.createSchemaRegistry(StandardSchemaRegistryFactory.java:50)
    at com.linkedin.databus.container.netty.HttpRelay.<init>(HttpRelay.java:117)
    at com.linkedin.databus2.relay.DatabusRelayMain.<init>(DatabusRelayMain.java:101)
    at com.linkedin.databus.relay.example.PersonRelayServer.<init>(PersonRelayServer.java:66)
    at com.linkedin.databus.relay.example.PersonRelayServer.main(PersonRelayServer.java:109)

Any ideas about what I'm doing wrong?
Thanks!

@phanindraganti
Copy link
Contributor

Hi, Peter !

        It seems like it is not able to find schemas required for starting the process. After building the package and untarring the tar ball, do you see the following four directories ?

bin
schemas_registry
conf
lib

--Phani

@psugihara
Copy link
Author

I'm seeing

bin conf lib logs maxScn var

I gather from conf/sources-person.json that it's using the uri jdbc:oracle:thin:person/person@devdb:1521:db. Does this mean I have to have an Oracle db running for the example to work? Can I use a MySQL database?

@phanindraganti
Copy link
Contributor

Hi Peter,

        The current version support Oracle only.

Thanks !
Phani

On Sun, Mar 10, 2013 at 4:39 PM, Peter Sugihara [email protected]:

I'm seeing

bin conf lib logs maxScn var

I see that in conf/sources-person.json that it's using the uri
jdbc:oracle:thin:person/person@devdb:1521:db. Does this mean I have to
have an Oracle db running for the example to work? Can I use a MySQL
database?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-14692172
.

@phanindraganti
Copy link
Contributor

Also - yes Oracle db should be running for the example to work. Having said that, it should be fairly straightfoward to write an adapter of choice that will push events into the relays and have the clients pull them out.

I am closing this ticket for now. Let us know if there are more questions.

@psugihara
Copy link
Author

Thanks for your help, Phani. I'm currently trying to use databus to keep a couple of Rails applications in sync. I'll let you know if I run into more trouble.

chavdar pushed a commit that referenced this issue Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants